]> git.lizzy.rs Git - nothing.git/blob - src/game/level/phantom_platforms.h
Introduce Phantom Platforms
[nothing.git] / src / game / level / phantom_platforms.h
1 #ifndef PHANTOM_PLATFORMS_H_
2 #define PHANTOM_PLATFORMS_H_
3
4 typedef struct {
5     size_t size;
6     Rect *rects;
7     Color *colors;
8     int *hiding;
9 } Phantom_Platforms;
10
11 Phantom_Platforms create_phantom_platforms(RectLayer *rect_layer);
12 void destroy_phantom_platforms(Phantom_Platforms pp);
13
14 void phantom_platforms_render(Phantom_Platforms *pp, Camera *camera);
15 void phantom_platforms_update(Phantom_Platforms *pp, float dt);
16 void phantom_platforms_hide_at(Phantom_Platforms *pp, Vec2f position);
17
18 #endif  // PHANTOM_PLATFORMS_H_