diff options
author | Astatin <[email protected]> | 2024-09-19 18:56:32 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-09-19 18:56:32 +0900 |
commit | ec1f79b44203735f581c7f85b6c23216aaf587a6 (patch) | |
tree | 0ae669440b2dce7f2e23cfadebb3dc0ab42efcba /main.gbasm | |
parent | fa37dcacf1ff0de66f5c4eed7b89be6006d6d77b (diff) |
Read action buttons and set it in the entity direction highest nibble
Diffstat (limited to 'main.gbasm')
-rw-r--r-- | main.gbasm | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -6,7 +6,7 @@ Entrypoint: New_Dungeon: LD SP, $fffe CALL =Dungeon_Generation - CALL =Initialize_Bunny + CALL =Initialize_Entities CALL =Initialize_Objects CALL =Load_Tile CALL =Load_Map @@ -25,23 +25,30 @@ VBLANK_Entrypoint: CALL =Display_Prepared_Block CALL =Display_Object CALL $OAM_DMA_Transfer_routine + LD HL, $9800 + LD A, $mem_bunny_direction + CALL =Print_8bit CALL =Object_Interactions_Check CALL =Pad_Button_Check - CALL =Entities_Behaviours + CALL =Entities_Actions CALL =Prepare_Scrolling_Map - CALL =Prepare_Entities + CALL =Display_Entities RET .INCLUDE "tiles.gbasm" +.INCLUDE "rng.gbasm" +.INCLUDE "utils.gbasm" +.INCLUDE "buttons.gbasm" .INCLUDE "map/loading.gbasm" .INCLUDE "map/generation.gbasm" .INCLUDE "map/objects.gbasm" -.INCLUDE "bunny.gbasm" -.INCLUDE "buttons.gbasm" -.INCLUDE "rng.gbasm" -.INCLUDE "utils.gbasm" -.INCLUDE "entities.gbasm" +.INCLUDE "entity/init.gbasm" +.INCLUDE "entity/bunny.gbasm" +.INCLUDE "entity/actions.gbasm" +.INCLUDE "entity/collisions.gbasm" +.INCLUDE "entity/display.gbasm" +.INCLUDE "entity/utils.gbasm" .INCLUDE "tileset.gbasm" |