|
|
@@ -120,7 +120,7 @@ IZ_AppResult IZ_AppRun(struct IZ_App* app, u8 argc, const char* argv[]) { |
|
|
|
|
|
|
|
char asset_dir[255]; |
|
|
|
IZ_AssetResolveDir("weapon-operator", asset_dir); |
|
|
|
u16 sprite_slot_index = IZ_VideoGetNextFreeSpriteSlot(&app->video_state); |
|
|
|
u16 sprite_slot_index = IZ_VideoGetNextFreeSpriteSlot(&app->video_state, IZ_VIDEO_SPRITE_PRIORITY_MEDIUM); |
|
|
|
IZ_VideoLoadSprite(&app->video_state, (IZ_VideoLoadSpriteParams) { |
|
|
|
.dir = asset_dir, |
|
|
|
.filename = "sprite.svg", |
|
|
@@ -130,7 +130,7 @@ IZ_AppResult IZ_AppRun(struct IZ_App* app, u8 argc, const char* argv[]) { |
|
|
|
app->video_state.active_sprites[sprite_slot_index].sprite.position = (IZ_Vector2D) { 100.f, 100.f }; |
|
|
|
|
|
|
|
IZ_AssetResolveDir("weapon-specialist", asset_dir); |
|
|
|
sprite_slot_index = IZ_VideoGetNextFreeSpriteSlot(&app->video_state); |
|
|
|
sprite_slot_index = IZ_VideoGetNextFreeSpriteSlot(&app->video_state, IZ_VIDEO_SPRITE_PRIORITY_MEDIUM); |
|
|
|
IZ_VideoLoadSprite(&app->video_state, (IZ_VideoLoadSpriteParams) { |
|
|
|
.dir = asset_dir, |
|
|
|
.filename = "sprite.svg", |
|
|
|