From d9bde56d64ec9154d99425015ca1f9d5ce1ebb0f Mon Sep 17 00:00:00 2001 From: Max-001 Date: Wed, 8 Jan 2025 11:51:22 +0100 Subject: Made background forest --- game/background/ForestParallaxScript.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'game/background/ForestParallaxScript.h') diff --git a/game/background/ForestParallaxScript.h b/game/background/ForestParallaxScript.h index a65a684..d45fdd9 100644 --- a/game/background/ForestParallaxScript.h +++ b/game/background/ForestParallaxScript.h @@ -9,7 +9,9 @@ public: void fixed_update(crepe::duration_t dt); private: - const float begin_x; - const float end_x; + float begin_x; + float end_x; const std::string name; + float start_x = 4200; + const float lenght = 3000; }; -- cgit v1.2.3