|
|
@ -82,6 +82,7 @@ void play_state_enter(game_context* ctx) |
|
|
|
ecs::archetype* brush_archetype = resource_manager->load<ecs::archetype>("brush.ent"); |
|
|
|
ecs::archetype* marker_archetype = resource_manager->load<ecs::archetype>("marker.ent"); |
|
|
|
ecs::archetype* container_archetype = resource_manager->load<ecs::archetype>("container.ent"); |
|
|
|
ecs::archetype* twig_archetype = resource_manager->load<ecs::archetype>("twig.ent"); |
|
|
|
ecs::archetype* larva_archetype = resource_manager->load<ecs::archetype>("larva.ent"); |
|
|
|
ecs::archetype* pebble_archetype = resource_manager->load<ecs::archetype>("pebble.ent"); |
|
|
|
ecs::archetype* flashlight_archetype = resource_manager->load<ecs::archetype>("flashlight.ent"); |
|
|
@ -94,6 +95,7 @@ void play_state_enter(game_context* ctx) |
|
|
|
brush_archetype->assign(ecs_registry, ctx->brush_entity); |
|
|
|
marker_archetype->assign(ecs_registry, ctx->marker_entity); |
|
|
|
container_archetype->assign(ecs_registry, ctx->container_entity); |
|
|
|
twig_archetype->assign(ecs_registry, ctx->twig_entity); |
|
|
|
|
|
|
|
// Create flashlight and light cone, set light cone parent to flashlight, and move both to underworld scene
|
|
|
|
flashlight_archetype->assign(ecs_registry, ctx->flashlight_entity); |
|
|
@ -121,6 +123,7 @@ void play_state_enter(game_context* ctx) |
|
|
|
ec::assign_render_layers(ecs_registry, ctx->lens_entity, 0); |
|
|
|
ec::assign_render_layers(ecs_registry, ctx->marker_entity, 0); |
|
|
|
ec::assign_render_layers(ecs_registry, ctx->container_entity, 0); |
|
|
|
ec::assign_render_layers(ecs_registry, ctx->twig_entity, 0); |
|
|
|
|
|
|
|
// Activate lens tool
|
|
|
|
ctx->tool_system->set_active_tool(ctx->lens_entity); |
|
|
|