You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Split menu code out of home/movement.asm
This commit is contained in:
3
home.asm
3
home.asm
@@ -36,8 +36,9 @@ INCLUDE "home/video.asm"
|
|||||||
INCLUDE "home/map_objects.asm"
|
INCLUDE "home/map_objects.asm"
|
||||||
INCLUDE "home/sine.asm"
|
INCLUDE "home/sine.asm"
|
||||||
INCLUDE "home/movement.asm"
|
INCLUDE "home/movement.asm"
|
||||||
INCLUDE "home/menu_window.asm"
|
|
||||||
INCLUDE "home/menu.asm"
|
INCLUDE "home/menu.asm"
|
||||||
|
INCLUDE "home/menu_window.asm"
|
||||||
|
INCLUDE "home/menu2.asm"
|
||||||
INCLUDE "home/handshake.asm"
|
INCLUDE "home/handshake.asm"
|
||||||
INCLUDE "home/game_time.asm"
|
INCLUDE "home/game_time.asm"
|
||||||
INCLUDE "home/map.asm"
|
INCLUDE "home/map.asm"
|
||||||
|
|||||||
563
home/menu.asm
563
home/menu.asm
File diff suppressed because it is too large
Load Diff
539
home/menu2.asm
Normal file
539
home/menu2.asm
Normal file
File diff suppressed because it is too large
Load Diff
@@ -127,66 +127,3 @@ ComputePathToWalkToPlayer::
|
|||||||
big_step UP
|
big_step UP
|
||||||
big_step LEFT
|
big_step LEFT
|
||||||
big_step RIGHT
|
big_step RIGHT
|
||||||
|
|
||||||
SetMenuAttributes::
|
|
||||||
push hl
|
|
||||||
push bc
|
|
||||||
ld hl, w2DMenuCursorInitY
|
|
||||||
ld b, $8
|
|
||||||
.loop
|
|
||||||
ld a, [de]
|
|
||||||
inc de
|
|
||||||
ld [hli], a
|
|
||||||
dec b
|
|
||||||
jr nz, .loop
|
|
||||||
ld a, $1
|
|
||||||
ld [hli], a
|
|
||||||
ld [hli], a
|
|
||||||
xor a
|
|
||||||
ld [hli], a
|
|
||||||
ld [hli], a
|
|
||||||
ld [hli], a
|
|
||||||
pop bc
|
|
||||||
pop hl
|
|
||||||
ret
|
|
||||||
|
|
||||||
StaticMenuJoypad::
|
|
||||||
callfar _StaticMenuJoypad
|
|
||||||
call GetMenuJoypad
|
|
||||||
ret
|
|
||||||
|
|
||||||
ScrollingMenuJoypad::
|
|
||||||
callfar _ScrollingMenuJoypad
|
|
||||||
call GetMenuJoypad
|
|
||||||
ret
|
|
||||||
|
|
||||||
GetMenuJoypad::
|
|
||||||
push bc
|
|
||||||
push af
|
|
||||||
ldh a, [hJoyLast]
|
|
||||||
and D_PAD
|
|
||||||
ld b, a
|
|
||||||
ldh a, [hJoyPressed]
|
|
||||||
and BUTTONS
|
|
||||||
or b
|
|
||||||
ld b, a
|
|
||||||
pop af
|
|
||||||
ld a, b
|
|
||||||
pop bc
|
|
||||||
ret
|
|
||||||
|
|
||||||
PlaceHollowCursor::
|
|
||||||
ld hl, wCursorCurrentTile
|
|
||||||
ld a, [hli]
|
|
||||||
ld h, [hl]
|
|
||||||
ld l, a
|
|
||||||
ld [hl], "▷"
|
|
||||||
ret
|
|
||||||
|
|
||||||
HideCursor::
|
|
||||||
ld hl, wCursorCurrentTile
|
|
||||||
ld a, [hli]
|
|
||||||
ld h, [hl]
|
|
||||||
ld l, a
|
|
||||||
ld [hl], " "
|
|
||||||
ret
|
|
||||||
|
|||||||
Reference in New Issue
Block a user