tely/asset: Fix sprite packer emitting wrong anim count
This commit is contained in:
+2
-1
@@ -407,7 +407,7 @@ void TELY_DLL_Init(void *user_data)
|
||||
sheet->type = TELY_AssetSpriteSheetType_Rects;
|
||||
|
||||
// NOTE: Load the sprite meta file =========================================================
|
||||
Dqn_String8 sheet_name = DQN_STRING8("terry_walk");
|
||||
Dqn_String8 sheet_name = DQN_STRING8("terry_walk_resized_25%");
|
||||
|
||||
Dqn_String8 sprite_spec_path = Dqn_FsPath_ConvertF(scratch.arena, "%.*s/%.*s.txt", DQN_STRING_FMT(assets->textures_dir), DQN_STRING_FMT(sheet_name));
|
||||
Dqn_String8 sprite_spec_buffer = platform->func_load_file(scratch.arena, sprite_spec_path);
|
||||
@@ -570,6 +570,7 @@ void TELY_DLL_Init(void *user_data)
|
||||
entity->local_pos = Dqn_V2_InitNx2(1334, 396);
|
||||
entity->sprite_sheet = sheet;
|
||||
entity->sprite_anims = anims;
|
||||
entity->size_scale = Dqn_V2_InitNx1(0.5f);
|
||||
entity->local_hit_box_size = Dqn_V2_InitV2I(sheet->sprite_size);
|
||||
entity->flags |= FP_GameEntityFlag_Clickable;
|
||||
entity->flags |= FP_GameEntityFlag_MoveByKeyboard;
|
||||
|
||||
Reference in New Issue
Block a user