re-enable test entities at start

This commit is contained in:
jacob 2024-08-06 22:16:18 -05:00
parent f8549618bb
commit 91f7299274

View File

@ -114,9 +114,9 @@ INTERNAL void spawn_test_entities(void)
e->xform = XFORM_TRS(.t = pos, .r = r, .s = size); e->xform = XFORM_TRS(.t = pos, .r = r, .s = size);
e->sprite = sprite_tag_from_path(STR("res/graphics/tim.ase")); e->sprite = sprite_tag_from_path(STR("res/graphics/tim.ase"));
e->sprite_span_name = STR("idle.unarmed"); //e->sprite_span_name = STR("idle.unarmed");
//e->sprite_span_name = STR("idle.one_handed"); //e->sprite_span_name = STR("idle.one_handed");
//e->sprite_span_name = STR("idle.two_handed"); e->sprite_span_name = STR("idle.two_handed");
entity_enable_prop(e, ENTITY_PROP_PLAYER_CONTROLLED); entity_enable_prop(e, ENTITY_PROP_PLAYER_CONTROLLED);
e->player_max_speed = 4.f; e->player_max_speed = 4.f;
@ -212,13 +212,11 @@ INTERNAL void game_update(void)
/* TODO: remove this (testing) */ /* TODO: remove this (testing) */
/* Initialize entities */ /* Initialize entities */
#if 0
static b32 run = 0; static b32 run = 0;
if (!run) { if (!run) {
run = 1; run = 1;
spawn_test_entities(); spawn_test_entities();
} }
#endif
++G.world.tick_id; ++G.world.tick_id;
G.world.tick_ts = sys_timestamp(); G.world.tick_ts = sys_timestamp();