aboutsummaryrefslogtreecommitdiff
path: root/game/background/HallwayScript.h
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-08 11:08:30 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-08 11:08:30 +0100
commitb2fb4028f13f47d89487d48a1cc1e3e062d81e35 (patch)
treefb4c03452a8634f7998b7b79dfee9e5ac9ceeeb0 /game/background/HallwayScript.h
parentaf9d71b00305aeba2352ddbf9e47c8d71c8a465d (diff)
Made background move to next position
Diffstat (limited to 'game/background/HallwayScript.h')
-rw-r--r--game/background/HallwayScript.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/game/background/HallwayScript.h b/game/background/HallwayScript.h
new file mode 100644
index 0000000..04b2933
--- /dev/null
+++ b/game/background/HallwayScript.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <crepe/api/Script.h>
+
+class HallwayScript : public crepe::Script {
+public:
+ void fixed_update(crepe::duration_t dt);
+
+private:
+ float start_x = 1200;
+ const float lenght = 3000;
+ int current_sector = 2;
+};