From 96df60d319238dc7df53fe948e8a2593f1857be7 Mon Sep 17 00:00:00 2001 From: Astatin Date: Tue, 29 Oct 2024 16:12:03 +0900 Subject: Bunny can attack foxes --- definitions.gbasm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'definitions.gbasm') 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 # -- cgit v1.2.3-70-g09d2