diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-22 11:53:15 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-22 11:53:15 +0100 |
commit | 794facac7a7a1886bc2e0fea4c19c1106d6b458e (patch) | |
tree | 9518ed7903cf1b38af293cfd60146376f1016504 /game/background/ForestParallaxScript.h | |
parent | f5d2ef9a5a335509f6ade05470938f0fbbbb74ad (diff) | |
parent | e7599e648ea24d5e8a27bd9f4f162ef1a7c53d21 (diff) |
Merge branch 'max/game' of github.com:lonkaars/crepe
Diffstat (limited to 'game/background/ForestParallaxScript.h')
-rw-r--r-- | game/background/ForestParallaxScript.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/game/background/ForestParallaxScript.h b/game/background/ForestParallaxScript.h new file mode 100644 index 0000000..a65a684 --- /dev/null +++ b/game/background/ForestParallaxScript.h @@ -0,0 +1,15 @@ +#pragma once + +#include <crepe/api/Script.h> + +class ForestParallaxScript : public crepe::Script { +public: + ForestParallaxScript(float begin_x, float end_x, std::string unique_bg_name); + + void fixed_update(crepe::duration_t dt); + +private: + const float begin_x; + const float end_x; + const std::string name; +}; |