diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-29 21:20:48 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-29 21:20:48 +0100 |
commit | 7ae597ac9268e031927f94dd89c20ab6c034f5de (patch) | |
tree | ee04ad307c70d9007b7e2589c33b4ebcf2fbb287 /src/example/rendering_particle.cpp | |
parent | 85aa57e33d493502b05984ce44db6c68f627a6f2 (diff) |
working floating point black bars
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r-- | src/example/rendering_particle.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index 3a12144..5896c81 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -31,12 +31,15 @@ int main(int argc, char * argv[]) { Color color(255, 255, 255, 255); auto img = Texture("asset/texture/test_ap43.png"); + + /* Sprite & test_sprite = game_object.add_component<Sprite>( img, color, Sprite::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; + */ /* auto & test = game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{ .position = {0, 0}, @@ -59,8 +62,8 @@ int main(int argc, char * argv[]) { }); */ - auto & cam = game_object.add_component<Camera>(Color::WHITE, ivec2{1080, 720}, - vec2{2000, 2000}, 1.0f); + auto & cam = game_object.add_component<Camera>(Color::WHITE, ivec2{1600, 900}, + vec2{800,800}, 1.0f); /* game_object |