mirror of
https://github.com/enduro2d/enduro2d-bootstrap.git
synced 2025-12-15 04:35:27 +07:00
Merge pull request #14 from enduro2d/hotfix/update_modules
Hotfix/update modules
This commit is contained in:
Submodule modules/enduro2d updated: 7dde063d8a...324c3200a9
@@ -29,17 +29,17 @@ namespace
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class game final : public high_application {
|
class game final : public starter::application {
|
||||||
public:
|
public:
|
||||||
bool initialize() final {
|
bool initialize() final {
|
||||||
ecs::registry_filler(the<world>().registry())
|
ecs::registry_filler(the<world>().registry())
|
||||||
.system<game_system>(world::priority_update);
|
.system<game_system>(world::priority_update);
|
||||||
|
|
||||||
ecs::entity camera_e = the<world>().registry().create_entity();
|
const gobject_iptr camera_i = the<world>().instantiate();
|
||||||
ecs::entity_filler(camera_e)
|
camera_i->entity_filler()
|
||||||
.component<camera>(camera()
|
.component<camera>(camera()
|
||||||
.background({1.f, 0.4f, 0.f, 1.f}))
|
.background({1.f, 0.4f, 0.f, 1.f}))
|
||||||
.component<actor>(node::create(camera_e));
|
.component<actor>(node::create(camera_i));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user