diff options
author | Astatin <[email protected]> | 2024-10-10 18:08:10 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-10-10 18:08:10 +0900 |
commit | b4beaa96c563d3af9e41c0801f9fbba9d1acdccd (patch) | |
tree | 935b00b261fe1475742a66c5cbb863142d2972f8 /entity/init.gbasm | |
parent | 10aed52daf8f06032342504c4a5fffa81031a90e (diff) |
Fox spawn in random rooms (but the first one randomly got all the same room rip)
Diffstat (limited to 'entity/init.gbasm')
-rw-r--r-- | entity/init.gbasm | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/entity/init.gbasm b/entity/init.gbasm index 65f841f..e4a4c1a 100644 --- a/entity/init.gbasm +++ b/entity/init.gbasm @@ -72,9 +72,34 @@ Fix_Bunny_screen: Initialize_Fox: LD A, $0d LD (HL+), A - LD A, $mem_bunny_x + LD A, $mem_number_of_rooms + CALL =RNG_Bound + SLA A + SLA A + ADD $80 + LD C, A + + LD B, $c8 + + LD A, (BC) + LD D, A + INC BC + LD A, (BC) + INC A + CALL =RNG_Bound + ADD D + LD (HL+), A - LD A, $mem_bunny_y + + INC BC + + LD A, (BC) + LD D, A + INC BC + LD A, (BC) + INC A + CALL =RNG_Bound + ADD D LD (HL+), A LD A, $03 LD (HL+), A |