diff options
author | Astatin <[email protected]> | 2024-10-29 16:12:03 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2024-10-29 16:12:03 +0900 |
commit | 96df60d319238dc7df53fe948e8a2593f1857be7 (patch) | |
tree | 9df94fd700f765e83cde3c997ab6e4a1d9d171de /definitions.gbasm | |
parent | 7bcae43031d18c2b992581cb00358ae3d457d5c6 (diff) |
Bunny can attack foxes
Diffstat (limited to 'definitions.gbasm')
-rw-r--r-- | definitions.gbasm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/definitions.gbasm b/definitions.gbasm index 4ce2524..4141544 100644 --- a/definitions.gbasm +++ b/definitions.gbasm @@ -17,11 +17,18 @@ .DEFINE mem_button_direction ($c002) .DEFINE mem_button_action ($c003) .DEFINE mem_moving_animation_step ($c004) +; frame 0 (or 1 ?): movement can be initiated when with button actions +; frame 2: applying bunny attack damages +; frame 3: checking entities health and death if 0 +; frame 4: entity collision map is being updated +; frame 15: movement is ended and coordinates are updated + .DEFINE mem_bunny_sprite ($cb00) .DEFINE mem_bunny_x ($cb01) .DEFINE mem_bunny_y ($cb02) .DEFINE mem_bunny_direction ($cb03) -.DEFINE mem_bunny_health ($cb06) +; aaaamddd: a = animation, m = is_moving, d = direction +.DEFINE mem_bunny_health ($cb16) .DEFINE mem_viewport_x ($c008) .DEFINE mem_viewport_y ($c009) .DEFINE mem_rng_state_1 ($c00a) ; 2 bytes @@ -86,7 +93,7 @@ ; y: u8, ; direction: u8 (animation = bit 7-4, bit 3 = is_moving, bit 2-0: direction), ; ai_function_pointer: u16 -; health: u8 +; health: u8 (DAA decimal !!) ; _padding: u72 ; ; # SANTA CHRISTMAS LIST PLEASE # |