aboutsummaryrefslogtreecommitdiff
path: root/game/scheduler/ObjectsScheduler.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-08 18:40:11 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-08 18:40:11 +0100
commitef3f5b0845ba127c0bfcda8c2fce37013fef3878 (patch)
treee5690ff875a662ee7603844e858d82428d973a78 /game/scheduler/ObjectsScheduler.h
parent424da5eb1500d90389d939cd0b3e6e75d729578d (diff)
parent2ad15f3efab481659543a1c03cd70a36fd297538 (diff)
Merge branch 'master' of github.com:lonkaars/crepe into jaro/game
Diffstat (limited to 'game/scheduler/ObjectsScheduler.h')
-rw-r--r--game/scheduler/ObjectsScheduler.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/game/scheduler/ObjectsScheduler.h b/game/scheduler/ObjectsScheduler.h
new file mode 100644
index 0000000..bd0701b
--- /dev/null
+++ b/game/scheduler/ObjectsScheduler.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include "api/Script.h"
+#include <functional>
+#include <vector>
+
+class ObjectsScheduler : public crepe::Script {
+
+private:
+ std::vector<std::function<void()>> obstacles;
+
+ int last_boss_check = 0;
+ int last_obstacle_check = 0;
+
+ int boss_fight_interval = 5000;
+ int obstacle_interval = 350;
+ int start_offset = 1300;
+
+private:
+ void preset_0();
+ void preset_1();
+ void preset_2();
+ void preset_3();
+ void preset_4();
+ void boss_fight_1();
+
+ bool boss_fight_1_event();
+
+public:
+ void init();
+ void fixed_update(crepe::duration_t dt);
+};