pokecrystal-board/macros/scripts/movement.asm
Remy Oukaour c05b7f41dd Renaming: (fix #412)
- MapTriggers / maptrigger → SceneScripts / scene_script
- XYTriggers / xy_trigger → CoordEvents / coord_event
- Signposts / signpost → BGEvents / bg_event
- PersonEvents / person_event → ObjectEvents / object_event
2017-12-24 14:33:17 -05:00

247 lines
3.9 KiB
NASM

; MovementPointers indexes (see engine/movement.asm)
enum_start
; Directional movements
enum movement_turn_head ; $00
turn_head: macro
db movement_turn_head | \1
endm
__enum__ = __enum__ + 3
enum movement_turn_step ; $04
turn_step: macro
db movement_turn_step | \1
endm
__enum__ = __enum__ + 3
enum movement_slow_step ; $08
slow_step: macro
db movement_slow_step | \1
endm
__enum__ = __enum__ + 3
enum movement_step ; $0c
step: macro
db movement_step | \1
endm
__enum__ = __enum__ + 3
enum movement_big_step ; $10
big_step: macro
db movement_big_step | \1
endm
__enum__ = __enum__ + 3
enum movement_slow_slide_step ; $14
slow_slide_step: macro
db movement_slow_slide_step | \1
endm
__enum__ = __enum__ + 3
enum movement_slide_step ; $18
slide_step: macro
db movement_slide_step | \1
endm
__enum__ = __enum__ + 3
enum movement_fast_slide_step ; $1c
fast_slide_step: macro
db movement_fast_slide_step | \1
endm
__enum__ = __enum__ + 3
enum movement_turn_away ; $20
turn_away: macro
db movement_turn_away | \1
endm
__enum__ = __enum__ + 3
enum movement_turn_in ; $24
turn_in: macro
db movement_turn_in | \1
endm
__enum__ = __enum__ + 3
enum movement_turn_waterfall ; $28
turn_waterfall: macro
db movement_turn_waterfall | \1
endm
__enum__ = __enum__ + 3
enum movement_slow_jump_step ; $2c
slow_jump_step: macro
db movement_slow_jump_step | \1
endm
__enum__ = __enum__ + 3
enum movement_jump_step ; $30
jump_step: macro
db movement_jump_step | \1
endm
__enum__ = __enum__ + 3
enum movement_fast_jump_step ; $34
fast_jump_step: macro
db movement_fast_jump_step | \1
endm
__enum__ = __enum__ + 3
; Control
enum movement_remove_sliding ; $38
remove_sliding: macro
db movement_remove_sliding
endm
enum movement_set_sliding ; $39
set_sliding: macro
db movement_set_sliding
endm
enum movement_remove_fixed_facing ; $3a
remove_fixed_facing: macro
db movement_remove_fixed_facing
endm
enum movement_fix_facing ; $3b
fix_facing: macro
db movement_fix_facing
endm
enum movement_show_object ; $3c
show_object: macro
db movement_show_object
endm
enum movement_hide_object ; $3d
hide_object: macro
db movement_hide_object
endm
; Sleep
enum movement_step_sleep ; $3e
step_sleep: macro
if \1 <= 8
db movement_step_sleep + \1 - 1
else
db movement_step_sleep + 8, \1
endc
endm
__enum__ = __enum__ + 8
enum movement_step_end ; $47
step_end: macro
db movement_step_end
endm
enum movement_step_48 ; $48
step_48: macro
db movement_step_48
db \1 ; ???
endm
enum movement_remove_object ; $49
remove_object: macro
db movement_remove_object
endm
enum movement_step_loop ; $4a
step_loop: macro
db movement_step_loop
endm
enum movement_step_4b ; $4b
step_4b: macro
db movement_step_4b
endm
enum movement_teleport_from ; $4c
teleport_from: macro
db movement_teleport_from
endm
enum movement_teleport_to ; $4d
teleport_to: macro
db movement_teleport_to
endm
enum movement_skyfall ; $4e
skyfall: macro
db movement_skyfall
endm
enum movement_step_dig ; $4f
step_dig: macro
db movement_step_dig
db \1 ; length
endm
enum movement_step_bump ; $50
step_bump: macro
db movement_step_bump
endm
enum movement_fish_got_bite ; $51
fish_got_bite: macro
db movement_fish_got_bite
endm
enum movement_fish_cast_rod ; $52
fish_cast_rod: macro
db movement_fish_cast_rod
endm
enum movement_hide_emote ; $53
hide_emote: macro
db movement_hide_emote
endm
enum movement_show_emote ; $54
show_emote: macro
db movement_show_emote
endm
enum movement_step_shake ; $55
step_shake: macro
db movement_step_shake
db \1 ; displacement
endm
enum movement_tree_shake ; $56
tree_shake: macro
db movement_tree_shake
endm
enum movement_rock_smash ; $57
rock_smash: macro
db movement_rock_smash
db \1 ; length
endm
enum movement_return_dig ; $58
return_dig: macro
db movement_return_dig
db \1 ; length
endm
enum movement_skyfall_top ; $59
skyfall_top: macro
db movement_skyfall_top
endm