瀏覽代碼

add Wall from Air Labyrinth

jblanked 1 年之前
父節點
當前提交
e264ffa330
共有 1 個文件被更改,包括 15 次插入0 次删除
  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;