blob: 7bc93371a01b763c95f5a660bbdfe7a2c9e743bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 = 2500;
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);
};
|