]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/phantom_platforms.h
Introduce Phantom Platforms
[nothing.git] / src / game / level / phantom_platforms.h
diff --git a/src/game/level/phantom_platforms.h b/src/game/level/phantom_platforms.h
new file mode 100644 (file)
index 0000000..710bc49
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef PHANTOM_PLATFORMS_H_
+#define PHANTOM_PLATFORMS_H_
+
+typedef struct {
+    size_t size;
+    Rect *rects;
+    Color *colors;
+    int *hiding;
+} Phantom_Platforms;
+
+Phantom_Platforms create_phantom_platforms(RectLayer *rect_layer);
+void destroy_phantom_platforms(Phantom_Platforms pp);
+
+void phantom_platforms_render(Phantom_Platforms *pp, Camera *camera);
+void phantom_platforms_update(Phantom_Platforms *pp, float dt);
+void phantom_platforms_hide_at(Phantom_Platforms *pp, Vec2f position);
+
+#endif  // PHANTOM_PLATFORMS_H_