diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-27 19:57:16 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-27 19:57:16 +0100 |
commit | ddb5bde6e5dd4d89faf419630086ece66690d6b5 (patch) | |
tree | 0b2cf988dbee4915fca002f16fbe88013d075ce2 /src/example/rendering_particle.cpp | |
parent | 2b35e8f51a3536b62ea21dc82deec1e3b65568f6 (diff) |
implemented feedback. biggest changes are teh camera_ref removed
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r-- | src/example/rendering_particle.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index ec71260..6e426cf 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -33,9 +33,7 @@ int main(int argc, char * argv[]) { auto img = Texture("asset/texture/test_ap43.png"); Sprite & test_sprite - = game_object.add_component<Sprite>(img, color, FlipSettings{true, true}); - test_sprite.order_in_layer = 5; - test_sprite.height = 195; + = game_object.add_component<Sprite>(img, color, FlipSettings{true, true}, 1, 1, 500); //game_object.add_component<Animator>(test_sprite, 4, 1, 0).active = true; game_object.add_component<Animator>(test_sprite, 1, 1, 0).active = true; @@ -62,8 +60,8 @@ int main(int argc, char * argv[]) { }); */ - auto & cam = game_object.add_component<Camera>(Color::WHITE); - cam.pos = {0, 0}; + auto & cam = game_object.add_component<Camera>(Color::WHITE, ivec2{1080, 720}, + ivec2{2000, 2000}, 1.0f); /* game_object |