From f9f115384757135fa8488bd43eb3e5e91cc243d9 Mon Sep 17 00:00:00 2001 From: Astatin Date: Wed, 14 Aug 2024 20:05:28 +0900 Subject: Add RNG + do some tests with is_solid --- definitions.gbasm | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'definitions.gbasm') 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 -- cgit v1.2.3-70-g09d2