aboutsummaryrefslogtreecommitdiff
path: root/main.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-02-11 18:52:46 +0900
committerAstatin <[email protected]>2025-02-11 18:52:46 +0900
commitecd565bc8625f7b80ebe197554ab01e1ef9a604b (patch)
tree5988b36cf2bcd1271c61421cd94ba46db95ba524 /main.gbasm
parent674d876aeff3eaaec1cf0226e45a6f649baca471 (diff)
Updating current focused attack cost + changing the cursor when not enough points
Diffstat (limited to 'main.gbasm')
-rw-r--r--main.gbasm15
1 files changed, 12 insertions, 3 deletions
diff --git a/main.gbasm b/main.gbasm
index e09949c..c3edbcf 100644
--- a/main.gbasm
+++ b/main.gbasm
@@ -93,6 +93,8 @@ Entrypoint:
CALL =Initialize_RNG
LD A, $20
LD $mem_bunny_health, A
+ LD A, $3
+ LD $mem_bunny_mana, A
New_Dungeon:
LD SP, $fffe
LD HL, $mem_loaded_enemies_indices
@@ -102,6 +104,16 @@ New_Dungeon:
LD (HL+), A
LD A, $03
LD (HL+), A
+ LD HL, $mem_bunny_attacks
+ LD A, $00
+ LD (HL+), A
+ INC A
+ LD (HL+), A
+ INC A
+ LD (HL+), A
+ INC A
+ LD (HL+), A
+ CALL =Reload_EP_Cost
CALL =Dungeon_Generation
CALL =Initialize_Entities
CALL =Initialize_Objects
@@ -145,9 +157,6 @@ VBLANK_Entrypoint:
LD HL, $9d72
LD A, $dbg_VBLANK_STATE
CALL =Print_8bit
- LD HL, $9c43
- LD A, $dbg_VBLANK_STATE
- CALL =Print_8bit_Thin
CALL $OAM_DMA_Transfer_routine
CALL =Loading_Mode_VBlank