From 9bd81b51cc6d3ba428a29c7d0d90e289b7229878 Mon Sep 17 00:00:00 2001 From: max-001 Date: Fri, 13 Dec 2024 16:54:24 +0100 Subject: Improved game --- src/example/game.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/example/game.cpp b/src/example/game.cpp index 93c2f35..62e7732 100644 --- a/src/example/game.cpp +++ b/src/example/game.cpp @@ -346,10 +346,10 @@ public: }); bg_2.add_component(Rigidbody::Data{ - .linear_velocity = vec2(-2, 0), + .linear_velocity = vec2(-0.5, 0), }); bg_3.add_component(Rigidbody::Data{ - .linear_velocity = vec2(-1, 0), + .linear_velocity = vec2(-0.25, 0), }); } @@ -522,6 +522,9 @@ public: .bg_color = Color::RED, }); camera.add_component().set_script(); + camera.add_component(Rigidbody::Data{ + .linear_velocity = vec2(2.5, 0), + }); } string get_name() const { return "scene1"; } -- cgit v1.2.3