pokecrystal-board/engine/events/forced_movement.asm

61 lines
872 B
NASM
Raw Normal View History

2015-11-11 13:11:08 -08:00
Script_ForcedMovement:: ; 0x1253d
checkcode VAR_FACING
2018-02-02 18:09:17 -08:00
ifequal DOWN, .down
ifequal UP, .up
ifequal LEFT, .left
ifequal RIGHT, .right
2015-11-11 13:11:08 -08:00
end
; 0x12550
.up ; 0x12550
2015-11-11 13:11:08 -08:00
applymovement PLAYER, .MovementData_up
end
; 0x12555
.down ; 0x12555
2015-11-11 13:11:08 -08:00
applymovement PLAYER, .MovementData_down
end
; 0x1255a
.right ; 0x1255a
2015-11-11 13:11:08 -08:00
applymovement PLAYER, .MovementData_right
end
; 0x1255f
.left ; 0x1255f
2015-11-11 13:11:08 -08:00
applymovement PLAYER, .MovementData_left
end
; 0x12564
.MovementData_up: ; 0x12564
2015-11-15 18:28:15 -08:00
step_dig 16
2016-05-14 10:46:14 -07:00
turn_in DOWN
2015-11-15 18:28:15 -08:00
step_dig 16
2016-05-14 10:46:14 -07:00
turn_head DOWN
2015-11-11 13:11:08 -08:00
step_end
; 0x1256b
.MovementData_down: ; 0x1256b
2015-11-15 18:28:15 -08:00
step_dig 16
2016-05-14 10:46:14 -07:00
turn_in UP
2015-11-15 18:28:15 -08:00
step_dig 16
2016-05-14 10:46:14 -07:00
turn_head UP
2015-11-11 13:11:08 -08:00
step_end
; 0x12572
.MovementData_right: ; 0x12572
2015-11-15 18:28:15 -08:00
step_dig 16
2016-05-14 10:46:14 -07:00
turn_in LEFT
2015-11-15 18:28:15 -08:00
step_dig 16
2016-05-14 10:46:14 -07:00
turn_head LEFT
2015-11-11 13:11:08 -08:00
step_end
; 0x12579
.MovementData_left: ; 0x12579
2015-11-15 18:28:15 -08:00
step_dig 16
2016-05-14 10:46:14 -07:00
turn_in RIGHT
2015-11-15 18:28:15 -08:00
step_dig 16
2016-05-14 10:46:14 -07:00
turn_head RIGHT
2015-11-11 13:11:08 -08:00
step_end
; 0x12580