Explorar o código

add Wall from Air Labyrinth

jblanked hai 1 ano
pai
achega
e264ffa330
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  1. 15 0
      game.h

+ 15 - 0
game.h

@@ -8,6 +8,21 @@
 #define WORLD_WIDTH 384
 #define WORLD_HEIGHT 192
 
+// from https://github.com/jamisonderek/flipper-zero-tutorials/blob/main/vgm/apps/air_labyrinth/walls.h
+typedef struct
+{
+    bool horizontal;
+    int x;
+    int y;
+    int length;
+} Wall;
+
+#define WALL(h, y, x, l)   \
+    (Wall)                 \
+    {                      \
+        h, x * 2, y * 2, l \
+    }
+
 typedef struct
 {
     uint32_t score;