diff options
author | Astatin <[email protected]> | 2024-08-27 18:33:46 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-08-27 18:33:46 +0900 |
commit | 4a4ff1db8fe026ced0530f8c2531033da43164e6 (patch) | |
tree | 2f1055120080dd6b7557fb383dd60e5354e47da4 /map/loading.gbasm | |
parent | f0d9de7afa943ebd41c1b202690b2ab3e387f708 (diff) |
Add objects and spawn bunny & goal in a random room
Diffstat (limited to 'map/loading.gbasm')
-rw-r--r-- | map/loading.gbasm | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/map/loading.gbasm b/map/loading.gbasm index 8b3f414..bb3410b 100644 --- a/map/loading.gbasm +++ b/map/loading.gbasm @@ -104,12 +104,7 @@ Load_Column: ; (+1/-1 direction in B) POP AF RET -Load_Block: ; X in A, Y in B - PUSH BC - PUSH AF - PUSH DE - - ; Construct Tile Map address from A and B in DE +Construct_Tile_Address: ; Construct Tile Map address from A and B in DE PUSH AF PUSH BC @@ -134,9 +129,19 @@ Load_Block: ; X in A, Y in B LD A, D OR $98 LD D, A + POP BC POP AF + RET + +Load_Block: ; X in A, Y in B + PUSH BC + PUSH AF + PUSH DE + + CALL =Construct_Tile_Address + PUSH AF PUSH DE |