#include "game_scene.h" #include "sokol/sokol_app.h" #include "ecs_core.h" static void game_enter(app_context_t* ctx) { ecs_core_init(ctx->world); ecs_spawn_test_entities(ctx->world); if (ctx && ctx->pass_action) { ctx->pass_action->colors[0].clear_value = (sg_color){ 0.0f, 0.0f, 0.0f, 1.0f }; } } static void game_update(app_context_t* ctx, float dt) { ecs_progress(ctx->world, dt); } static void game_render(app_context_t* ctx) { if (ctx && ctx->draw_triangle) { ctx->draw_triangle(); } } static void game_event(app_context_t* ctx, const sapp_event* ev) { (void)ctx; (void)ev; } static void game_exit(app_context_t* ctx) { (void)ctx; } Scene GameScene = { .name = "Game", .on_enter = game_enter, .on_update = game_update, .on_render = game_render, .on_event = game_event, .on_exit = game_exit, };