]> git.lizzy.rs Git - nothing.git/blob - src/game/level/phantom_platforms.h
Merge pull request #1255 from tsoding/1253
[nothing.git] / src / game / level / phantom_platforms.h
1 #ifndef PHANTOM_PLATFORMS_H_
2 #define PHANTOM_PLATFORMS_H_
3
4 #include <stdlib.h>
5 #include "math/rect.h"
6 #include "color.h"
7 #include "game/level/level_editor/rect_layer.h"
8
9 typedef struct {
10     size_t size;
11     Rect *rects;
12     Color *colors;
13     int *hiding;
14 } Phantom_Platforms;
15
16 Phantom_Platforms create_phantom_platforms(RectLayer *rect_layer);
17 void destroy_phantom_platforms(Phantom_Platforms pp);
18
19 void phantom_platforms_render(const Phantom_Platforms *pp, const Camera *camera);
20 void phantom_platforms_update(Phantom_Platforms *pp, float dt);
21 void phantom_platforms_hide_at(Phantom_Platforms *pp, Vec2f position);
22
23 #endif  // PHANTOM_PLATFORMS_H_