diff options
author | Astatin <[email protected]> | 2025-09-02 16:12:20 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-09-02 16:12:20 +0200 |
commit | 1c4d3df6acdea1b49c23e2eada105535cf83a1da (patch) | |
tree | 58392f18c6373a246cb990d17dfcdcf687e3ca7e /map/dungeons | |
parent | 312fad238b2f0dfcb904b572e545dd85984167d8 (diff) |
Add campsite map
Diffstat (limited to 'map/dungeons')
-rw-r--r-- | map/dungeons/campsite.gbasm | 59 | ||||
-rw-r--r-- | map/dungeons/morningforest.gbasm | 7 |
2 files changed, 63 insertions, 3 deletions
diff --git a/map/dungeons/campsite.gbasm b/map/dungeons/campsite.gbasm new file mode 100644 index 0000000..2ee4a1f --- /dev/null +++ b/map/dungeons/campsite.gbasm @@ -0,0 +1,59 @@ +Camp_Site: + .name: + .DB bank(=Campsite_Txt) + .DB ptr(=Campsite_Txt) + + .flag: .DB 0b00100001 + + .tilemap_padding: + .DB bank(=_map_Test) + .DB ptr(=_map_Test) + + .custom_function: + .DB bank(=Camp_Site_Fire_Animation) + .DB ptr(=Camp_Site_Fire_Animation) + + .generation_events.size: + .DB low(=.generation_events.end-=.generation_events) + + .generation_events: + .GEN_EVENT_REMOVE_STAIRS $01 + .generation_events.end: + + .max_floor: .DB 0x01, inv(0x01) + +Camp_Site_Fire_Animation: + LD HL, $981e + LD A, (HL) + AND 0b11111011 + CP $30 + RET NZ + + LD A, $mem_loop_frame_timer + AND $07 + RET NZ + + LD A, (HL) + XOR $04 + LD (HL+), A + LD A, (HL) + XOR $04 + LD (HL), A + + LD A, L + ADD $1f + LD L, A + LD A, H + ADC $00 + LD H, A + + LD A, (HL) + XOR $04 + LD (HL+), A + LD A, (HL) + XOR $04 + LD (HL), A + + RET + +.ASSERT bank(=Camp_Site) bank(.) diff --git a/map/dungeons/morningforest.gbasm b/map/dungeons/morningforest.gbasm index 3ee08e3..1b80a18 100644 --- a/map/dungeons/morningforest.gbasm +++ b/map/dungeons/morningforest.gbasm @@ -6,9 +6,10 @@ Morning_Forest: .flag: .DB 0b00011110 .tilemap_padding: - .DB bank(=_map_Test) - .DB ptr(=_map_Test) - ; .PADTO =.tilemap_padding+3 + .PADTO =.tilemap_padding+3 + + .custom_function: + .PADTO =.custom_function+3 .generation_events.size: .DB low(=.generation_events.end-=.generation_events) |