projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f92580
)
defs: Added tileindex enum
author
Lukas Krickl
<lukas@krickl.dev>
Tue, 10 Feb 2026 15:36:59 +0000
(16:36 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Tue, 10 Feb 2026 15:36:59 +0000
(16:36 +0100)
src/defs.s
patch
|
blob
|
history
src/mapgen.s
patch
|
blob
|
history
diff --git
a/src/defs.s
b/src/defs.s
index 62fc779c6e7883a259879b6ab870f3b2a6553e52..07e1f17c3abe76bcedf1bf19cbc6756a79ee010c 100644
(file)
--- a/
src/defs.s
+++ b/
src/defs.s
@@
-144,6
+144,15
@@
; it perviously occupied gets this flag
.de TT_BLOOD, 1
+ ; tile index enum (order of tile ids in tile_table)
+.se 0
+.de TI_WALL, 1
+.de TI_FLOOR, 1
+.de TI_DOOR, 1
+.de TI_INNER_WALL, 1
+.de TI_ROOM_END, 1
+.de TI_BLOOD, 1
+
; tile flags0
.se 1
diff --git
a/src/mapgen.s
b/src/mapgen.s
index 7fbf8c694a55f68738496b3304c8efe53f5f474c..614c056ba06694b2f256d20e22b0771bfb941736 100644
(file)
--- a/
src/mapgen.s
+++ b/
src/mapgen.s
@@
-5,7
+5,7
@@
; writes tiles to mapgen_tiles
map_generate:
; clear the map with wall tiles
- ld d,
0
+ ld d,
TI_WALL
ld hl, mapgen_tiles
ld bc, MAP_TILES
call memset