diff --git a/sources/main.cpp b/sources/main.cpp index f238ade..3ff90ad 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -29,17 +29,17 @@ namespace } }; - class game final : public high_application { + class game final : public starter::application { public: - bool initialize() final{ + bool initialize() final { ecs::registry_filler(the().registry()) .system(world::priority_update); - ecs::entity camera_e = the().registry().create_entity(); - ecs::entity_filler(camera_e) + const gobject_iptr camera_i = the().instantiate(); + camera_i->entity_filler() .component(camera() .background({1.f, 0.4f, 0.f, 1.f})) - .component(node::create(camera_e)); + .component(node::create(camera_i)); return true; } };