aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering_particle.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-22 16:16:27 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-22 16:16:27 +0100
commit4ce924b1b1322ee4da3ba50d6da856ad13a2190b (patch)
treefdb411aa1a79dd6f7e16bdc145607ca8813b118c /src/example/rendering_particle.cpp
parent385f19a8c896ec126c569f1e5337d6d370d20517 (diff)
working scaling image with scaling world to screen
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r--src/example/rendering_particle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp
index 96ef3df..741c985 100644
--- a/src/example/rendering_particle.cpp
+++ b/src/example/rendering_particle.cpp
@@ -23,7 +23,7 @@ using namespace std;
int main(int argc, char * argv[]) {
ComponentManager mgr;
- GameObject game_object = mgr.new_object("", "", Vector2{400, 300}, 0, 0.1);
+ GameObject game_object = mgr.new_object("", "", Vector2{1000, 500}, 0, 2);
RenderSystem sys{mgr};
ParticleSystem psys{mgr};
@@ -32,6 +32,8 @@ int main(int argc, char * argv[]) {
Sprite & test_sprite = game_object.add_component<Sprite>(
make_shared<Texture>("asset/texture/test_ap43.png"), color, FlipSettings{false, false});
test_sprite.order_in_layer = 5;
+ test_sprite.width = 1000;
+ test_sprite.height = 500;
/*