diff options
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/rendering_particle.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index 87a6eb9..cfc5a84 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -54,17 +54,16 @@ public: Asset img{"asset/texture/test_ap43.png"}; - Sprite & test_sprite - = game_object.add_component<Sprite>(img, ivec2{259, 195}, - Sprite::Data{ - .color = color, - .flip = Sprite::FlipSettings{false, false}, - .sorting_in_layer = 2, - .order_in_layer = 2, - .size = {0, 100}, - .angle_offset = 0, - .position_offset = {0, 0}, - }); + Sprite & test_sprite = game_object.add_component<Sprite>( + img, Sprite::Data{ + .color = color, + .flip = Sprite::FlipSettings{false, false}, + .sorting_in_layer = 2, + .order_in_layer = 2, + .size = {0, 100}, + .angle_offset = 0, + .position_offset = {0, 0}, + }); /* |