aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/rendering.cpp')
-rw-r--r--src/example/rendering.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp
index 1db57e5..418e03d 100644
--- a/src/example/rendering.cpp
+++ b/src/example/rendering.cpp
@@ -24,7 +24,7 @@ int main() {
ComponentManager mgr{};
RenderSystem sys{mgr};
- AnimatorSystem anim_sys {mgr};
+ AnimatorSystem anim_sys{mgr};
GameObject obj = mgr.new_object("name", "tag", Vector2{250, 0}, 0, 1);
GameObject obj1 = mgr.new_object("name", "tag", Vector2{500, 0}, 1, 0.1);
@@ -33,10 +33,11 @@ int main() {
// Normal adding components
{
Color color(0, 0, 0, 0);
- Sprite & sprite = obj.add_component<Sprite>(make_shared<Texture>("../asset/spritesheet/spritesheet_test.png"), color,
- FlipSettings{false, false});
+ Sprite & sprite = obj.add_component<Sprite>(
+ make_shared<Texture>("../asset/spritesheet/spritesheet_test.png"), color,
+ FlipSettings{false, false});
Camera & cam = obj.add_component<Camera>(Color::get_red());
- obj.add_component<Animator>(sprite, 4,1,1).active = true;
+ obj.add_component<Animator>(sprite, 4, 1, 1).active = true;
}
/*
{
@@ -54,7 +55,6 @@ int main() {
}
*/
-
auto start = std::chrono::steady_clock::now();
while (std::chrono::steady_clock::now() - start < std::chrono::seconds(5)) {
anim_sys.update();