diff options
author | Astatin <[email protected]> | 2024-08-14 20:05:28 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-08-14 20:05:28 +0900 |
commit | f9f115384757135fa8488bd43eb3e5e91cc243d9 (patch) | |
tree | 6ab2b9bf120267f85140e1d8c9aa3a12b7e9c446 /definitions.gbasm | |
parent | 59c2f3cc678df564bb9cf2b232537ce8a9d734fa (diff) |
Add RNG + do some tests with is_solid
Diffstat (limited to 'definitions.gbasm')
-rw-r--r-- | definitions.gbasm | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/definitions.gbasm b/definitions.gbasm index fdefee8..88c1e5c 100644 --- a/definitions.gbasm +++ b/definitions.gbasm @@ -20,9 +20,26 @@ .DEFINE mem_bunny_y ($c007) .DEFINE mem_viewport_x ($c008) .DEFINE mem_viewport_y ($c009) +.DEFINE mem_rng_state_1 ($c00a) ; 2 bytes +.DEFINE mem_rng_state_2 ($c00b) ; 2 bytes -.DEFINE mem_room_number ($c7ff) ; AND 0xf gives the size of $c800 -.DEFINE mem_room_array $c800 ; Takes the memory from c800 to c81f +.DEFINE mem_room_number ($c7ff) ; AND 0xf0 >> 8 gives the number of rooms and AND 0xf gives the number of corridors +.DEFINE mem_room_array $c800 ; Takes the memory from c800 to c840 +.DEFINE mem_corridors_array $c840 ; Takes the memory from c840 to c8a0 +; room = struct { +; x1: u8 +; x2: u8 +; y1: u8 +; y2: u8 +; } 4bytes +; corridor = struct { +; orientation: bool +; start u8 +; end u8 +; position u8 +; cut: u8 +; _padding: u24 +; } 8bytes .DEFINE enum_direction_left $01 .DEFINE enum_direction_right $02 |