tiles: Added test wall tile
authorLukas Krickl <lukas@krickl.dev>
Fri, 21 Nov 2025 19:15:35 +0000 (20:15 +0100)
committerLukas Krickl <lukas@krickl.dev>
Fri, 21 Nov 2025 19:15:35 +0000 (20:15 +0100)
src/defs.s
src/levels.s
src/tiles.s

index 85df5944a01831ae3a91c9b7f4c5c10a7b671d24..a06099092bae52a39817e7377cfb2f0910e048bf 100644 (file)
        ; tile type enum
 .se 0
 .de TT_EMPTY, 1
-
-       ; tile index enum
-       ; order of tile defs in tiles.s
-.se 0
-.de TI_EMPTY, 1
+.de TT_WALL, 1 
 
        ; tile flags
 .se 1
index 8677f0feb66f0e3f4fb12b69d111946412e3a40b..3f0f1cad062a231ad07941135cabdbbea37cf99e 100644 (file)
@@ -1,10 +1,7 @@
-       ; level to cell map
-level_def_to_tile:
-       dw tile_grass
        
        ; tile grass
-.def int TGS = TI_EMPTY
-
+.def int TGS = TT_EMPTY
+.def int TWL = TT_WALL
 
 
        ; level definitions
@@ -17,6 +14,7 @@ level_def_to_tile:
 
 l1:
        mapdef 0, map_r_nop, bank8000, bank8800, bank8C00, bank9000
+       .db TWL, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
        .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
        .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
        .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
@@ -31,5 +29,4 @@ l1:
        .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
        .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
        .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
-       .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
-       .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS
+       .db TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TGS, TWL
index 86bb92e069a1cef96f81b973f25feb561040b949..9014bfc48e8f19e96d65976f91b1b8b262925caa 100644 (file)
@@ -1,14 +1,18 @@
        ; tile definitions
 
 #define GFX_GRASS 0x20
+#define GFX_WALL 0x40
 
        
        ; maps from tile ids 
        ; to tile presets (tile index)
 tile_id_table:
        dw tile_grass
-       dw tile_grass
+       dw tile_wall
 
 
 tile_grass:
        tiledef TT_EMPTY, 0, GFX_GRASS
+
+tile_wall:
+       tiledef TT_WALL, 0, GFX_WALL