aboutsummaryrefslogtreecommitdiff
path: root/game/background/ForestParallaxScript.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 12:03:28 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 12:03:28 +0100
commitc9c9702edc58ff8f40b13dc6b86b216421f79e9b (patch)
tree3f3e710735105cbbd63ebd4f320c88fbc0ecfa0c /game/background/ForestParallaxScript.h
parent8055d401fc7c553a7036336b4b2fb2fca99a5986 (diff)
parentb1e2df1e75e7fc8ea4c30b7deaa54a7acf02d951 (diff)
Merge branch 'max/game2' of github.com:lonkaars/crepe
Diffstat (limited to 'game/background/ForestParallaxScript.h')
-rw-r--r--game/background/ForestParallaxScript.h6
1 files changed, 4 insertions, 2 deletions
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;
};