aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering_particle.cpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-21 17:04:58 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-21 17:04:58 +0100
commitea95685b4dd2adf09a9be4e2dd9233d0cf98b1ef (patch)
tree2877243b80b0c026db7a2a618a15677156f41a56 /src/example/rendering_particle.cpp
parentadbd81d3937a1363af312202c7e4b5ec0bf3458d (diff)
Minor changes due to templating of Vector2
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r--src/example/rendering_particle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp
index 4571afb..9b4ce83 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{100, 100}, 0, 0.1);
+ GameObject game_object = mgr.new_object("", "", Vector2<double>{100, 100}, 0, 0.1);
RenderSystem sys{mgr};
ParticleSystem psys{mgr};
@@ -43,11 +43,11 @@ int main(int argc, char * argv[]) {
.max_angle = 20,
.begin_lifespan = 0,
.end_lifespan = 60,
- .force_over_time = Vector2{0, 0},
+ .force_over_time = Vector2<double>{0, 0},
.boundary{
.width = 1000,
.height = 1000,
- .offset = Vector2{0, 0},
+ .offset = Vector2<double>{0, 0},
.reset_on_exit = false,
},
.sprite = test_sprite,