fp: Rejig the mob spawner to use a fixed-waypoint path
This commit is contained in:
+4
-1
@@ -292,6 +292,9 @@ static void FP_Game_DetachEntityIntoFreeList(FP_Game *game, FP_GameEntityHandle
|
||||
if (entity->name.size)
|
||||
TELY_ChunkPool_Dealloc(game->chunk_pool, entity->name.data);
|
||||
|
||||
if (entity->spawn_list)
|
||||
TELY_ChunkPool_Dealloc(game->chunk_pool, entity->spawn_list);
|
||||
|
||||
if (new_entity_generation > entity_generation) {
|
||||
// NOTE: Update the incremented handle disassociating all prior handles
|
||||
// to this entity which would reference older generation values
|
||||
@@ -672,7 +675,7 @@ static FP_GameEntityHandle FP_Game_EntityAddMob(FP_Game *game, Dqn_V2 pos)
|
||||
entity->local_pos = pos;
|
||||
entity->size_scale = Dqn_V2_InitNx1(.25f);
|
||||
entity->action_to_anim_mapping = game->smoochie_action_mappings;
|
||||
entity->local_hit_box_size = Dqn_V2_InitV2I(game->smoochie_sprite_sheet.sprite_size);
|
||||
entity->local_hit_box_size = Dqn_V2_InitNx2(428, 471) * entity->size_scale;
|
||||
entity->flags |= FP_GameEntityFlag_Clickable;
|
||||
entity->flags |= FP_GameEntityFlag_MoveByKeyboard;
|
||||
entity->flags |= FP_GameEntityFlag_MoveByMouse;
|
||||
|
||||
Reference in New Issue
Block a user