diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-08 14:10:27 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-08 14:10:27 +0100 |
commit | b445a1716a46dc875e0b2180c1a1b6022ec7a6d3 (patch) | |
tree | 1395518417ef02ca8adfa961e0734ea7aeb71a6d /game/scheduler/ObjectsScheduler.h | |
parent | c9c9702edc58ff8f40b13dc6b86b216421f79e9b (diff) |
missile/preview/schedular/PreviewScene
Diffstat (limited to 'game/scheduler/ObjectsScheduler.h')
-rw-r--r-- | game/scheduler/ObjectsScheduler.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/game/scheduler/ObjectsScheduler.h b/game/scheduler/ObjectsScheduler.h new file mode 100644 index 0000000..d2d0f55 --- /dev/null +++ b/game/scheduler/ObjectsScheduler.h @@ -0,0 +1,34 @@ +#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 = 2000; + int obstacle_interval = 300; + int start_offset = 1300; + + + void preset_0(); + void preset_1(); + void preset_2(); + void preset_3(); + void preset_4(); + void boss_fight_1(); + +public: + void init(); + void fixed_update(crepe::duration_t dt); + +}; |