diff options
author | Astatin <[email protected]> | 2024-09-10 18:23:30 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-09-10 18:23:30 +0900 |
commit | d0401c01144b73a1bfe62ac7e9db902cefd784a5 (patch) | |
tree | 817bd06e9e8d1912bafaeebb373b9cb331fc0e39 /bunny.gbasm | |
parent | 240deda011c7ad562507759c1839d8ece785de77 (diff) |
Entities now have their own behaviour function (including bunny)
Diffstat (limited to 'bunny.gbasm')
-rw-r--r-- | bunny.gbasm | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/bunny.gbasm b/bunny.gbasm index 5212a05..0c72578 100644 --- a/bunny.gbasm +++ b/bunny.gbasm @@ -33,6 +33,13 @@ Initialize_Bunny: ADD D LD (HL+), A INC HL + LD BC, =Move_Bunny + LD A, B + LD (HL+), A + LD A, C + LD (HL+), A + INC HL + INC HL LD A, $0d LD (HL+), A LD A, $10 @@ -40,8 +47,11 @@ Initialize_Bunny: LD (HL+), A LD A, $03 LD (HL+), A - - + LD BC, =Fox_AI + LD A, B + LD (HL+), A + LD A, C + LD (HL+), A Fix_Bunny_screen: LD A, $mem_bunny_x @@ -67,6 +77,7 @@ Fix_Bunny_screen: RET Move_Bunny: + ; IF HL IS EVER USED, IT SHOULD BE PUSHED HERE LD C, $00 ; (bit 0 = has_scrolled, bit 1 = has ended movement) LD A, $mem_bunny_direction BIT 3, A |