diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-02 18:51:47 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-02 18:51:47 +0100 |
commit | 135af8b0e0eaf8a5a5b7e1a42bfb20bb14ec97e5 (patch) | |
tree | c82dfadea7af5874f274ad105e94f05af19a9860 /src/example/rendering_particle.cpp | |
parent | 54ab44e3508d526be6275378e5979290ec188d6f (diff) |
tmp commit
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r-- | src/example/rendering_particle.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index 026c9ce..5a50d27 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -53,16 +53,15 @@ public: Color color(255, 255, 255, 255); - auto img = Texture("asset/spritesheet/spritesheet_test.png"); + auto img = Texture("asset/spritesheet/pokemon_spritesheet.png"); Sprite & test_sprite = game_object.add_component<Sprite>( - img, color, Sprite::FlipSettings{true, true}, 1, 1, vec2{1, 1}); + img, color, Sprite::FlipSettings{false, false}, 1, 1, vec2{100, 100}); - //game_object.add_component<Animator>(test_sprite, 4, 1, 0).active = true; - game_object.add_component<Animator>(test_sprite, 4, 1, 0).active = true; + auto & anim = game_object.add_component<Animator>(test_sprite, 4, 4, 0); - auto & cam = game_object.add_component<Camera>(Color::RED, ivec2{1280, 720}, - vec2{2.59, 1.95}, 2.0); + auto & cam = game_object.add_component<Camera>(Color::, ivec2{720, 1280}, + vec2{400, 400}, 1.0); } string get_name() const { return "TestScene"; }; |