diff options
author | Astatin <[email protected]> | 2024-10-22 18:01:00 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2024-10-22 18:01:00 +0900 |
commit | 5513939c6077032f625c2de98f395026caf063b1 (patch) | |
tree | 8f247591201ab9804c31990674cb444cf87ec089 /main.gbasm | |
parent | f5183a78e20deaa9a294250873f3b5ee5cedafa3 (diff) |
Add white window at the top for future health bar
Diffstat (limited to 'main.gbasm')
-rw-r--r-- | main.gbasm | 29 |
1 files changed, 28 insertions, 1 deletions
@@ -22,9 +22,36 @@ New_Dungeon: JP =Wait_for_VRAM.loop VBLANK_Entrypoint: + ; Window enable + LD A, $reg_lcd_controller + OR $60 + AND $fd + LD $reg_lcd_controller, A + + LD A, $00 + LD $reg_viewport_y, A + LD $reg_viewport_x, A + + LD HL, $9c00 + LD A, $99 + CALL =Print_8bit + CALL =Display_Prepared_Block CALL =Display_Object CALL $OAM_DMA_Transfer_routine + RETI + +STAT_Entrypoint: + LD A, $reg_lcd_controller + AND $9f + OR $02 + LD $reg_lcd_controller, A + + LD A, $mem_prepared_viewport_x + LD $reg_viewport_x, A + + LD A, $mem_prepared_viewport_y + LD $reg_viewport_y, A CALL =Object_Interactions_Check @@ -34,7 +61,7 @@ VBLANK_Entrypoint: CALL =Prepare_Scrolling_Map CALL =Display_Entities - RET + RETI .INCLUDE "tiles.gbasm" .INCLUDE "rng.gbasm" |