diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-04 10:57:20 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-04 10:57:20 +0100 |
commit | 9cde6875186b335c75eafa6402f0957cd4252c76 (patch) | |
tree | d2e6293661ddfa1dfbc0bbbf5ba1f20355d37604 /src/example | |
parent | a11824956b478e356fa684c9d88b980aa22cb19a (diff) |
make format
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/rendering_particle.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index 2e2552d..07e43a1 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -63,16 +63,18 @@ public: .angle_offset = 0, }); - auto & anim = game_object.add_component<Animator>(test_sprite, 4, 4, Animator::Data{ - .fps = 1, - .looping = false, - }); + auto & anim = game_object.add_component<Animator>(test_sprite, 4, 4, + Animator::Data{ + .fps = 1, + .looping = false, + }); anim.set_anim(2); anim.active = false; - auto & cam = game_object.add_component<Camera>(ivec2{1280,720}, vec2{400,400},Camera::Data{ - .bg_color = Color::WHITE, - }); + auto & cam = game_object.add_component<Camera>(ivec2{1280, 720}, vec2{400, 400}, + Camera::Data{ + .bg_color = Color::WHITE, + }); } string get_name() const { return "TestScene"; }; |