2017-12-12 10:22:19 -08:00
|
|
|
; MovementPointers indexes (see engine/movement.asm)
|
2015-07-15 12:48:44 -07:00
|
|
|
enum_start
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
; Directional movements
|
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_turn_head
|
|
|
|
turn_head: macro
|
|
|
|
db movement_turn_head | \1 ; $00
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_turn_step
|
|
|
|
turn_step: macro
|
|
|
|
db movement_turn_step | \1 ; $04
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_slow_step
|
|
|
|
slow_step: macro
|
|
|
|
db movement_slow_step | \1; $08
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_step
|
|
|
|
step: macro
|
|
|
|
db movement_step | \1 ; $0c
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_big_step
|
|
|
|
big_step: macro
|
|
|
|
db movement_big_step | \1 ; $10
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_slow_slide_step
|
|
|
|
slow_slide_step: macro
|
|
|
|
db movement_slow_slide_step | \1 ; $14
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_slide_step
|
|
|
|
slide_step: macro
|
|
|
|
db movement_slide_step | \1 ; $18
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_fast_slide_step
|
|
|
|
fast_slide_step: macro
|
|
|
|
db movement_fast_slide_step | \1 ; $1c
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_turn_away
|
|
|
|
turn_away: macro
|
|
|
|
db movement_turn_away | \1 ; $20
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_turn_in
|
|
|
|
turn_in: macro
|
|
|
|
db movement_turn_in | \1 ; $24
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_turn_waterfall
|
|
|
|
turn_waterfall: macro
|
|
|
|
db movement_turn_waterfall | \1 ; $28
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_slow_jump_step
|
|
|
|
slow_jump_step: macro
|
|
|
|
db movement_slow_jump_step | \1 ; $2c
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_jump_step
|
|
|
|
jump_step: macro
|
|
|
|
db movement_jump_step | \1 ; $30
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
enum movement_fast_jump_step
|
|
|
|
fast_jump_step: macro
|
|
|
|
db movement_fast_jump_step | \1 ; $34
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 3
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
; Control
|
2016-03-01 19:31:21 -08:00
|
|
|
enum movement_remove_sliding
|
|
|
|
remove_sliding: macro
|
|
|
|
db movement_remove_sliding ; $38
|
|
|
|
endm
|
|
|
|
|
|
|
|
enum movement_set_sliding
|
|
|
|
set_sliding: macro
|
|
|
|
db movement_set_sliding ; $39
|
|
|
|
endm
|
2015-07-15 12:48:44 -07:00
|
|
|
|
|
|
|
enum movement_remove_fixed_facing
|
2015-01-20 00:01:23 -08:00
|
|
|
remove_fixed_facing: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_remove_fixed_facing ; $3a
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-07-15 12:48:44 -07:00
|
|
|
enum movement_fix_facing
|
2015-01-20 00:01:23 -08:00
|
|
|
fix_facing: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_fix_facing ; $3b
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-11-15 18:28:15 -08:00
|
|
|
enum movement_show_person
|
|
|
|
show_person: macro
|
|
|
|
db movement_show_person ; $3c
|
2015-07-18 20:45:39 -07:00
|
|
|
endm
|
2015-07-15 12:48:44 -07:00
|
|
|
|
|
|
|
enum movement_hide_person
|
2015-01-20 00:01:23 -08:00
|
|
|
hide_person: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_hide_person ; $3d
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2016-05-14 10:46:14 -07:00
|
|
|
; Sleep
|
|
|
|
|
2015-07-15 12:48:44 -07:00
|
|
|
enum movement_step_sleep
|
2015-01-20 00:01:23 -08:00
|
|
|
step_sleep: macro
|
2016-05-14 09:28:00 -07:00
|
|
|
if \1 <= 8
|
|
|
|
db movement_step_sleep + \1 - 1
|
|
|
|
else
|
|
|
|
db movement_step_sleep + 8, \1
|
|
|
|
endc
|
|
|
|
endm
|
|
|
|
|
2016-07-29 07:48:27 -07:00
|
|
|
__enum__ = __enum__ + 8
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2015-07-15 12:48:44 -07:00
|
|
|
enum movement_step_end
|
2015-01-20 00:01:23 -08:00
|
|
|
step_end: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_step_end ; $47
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-11-15 18:28:15 -08:00
|
|
|
; Whatever Movement_48 is, it takes a one-byte parameter
|
2016-07-29 07:48:27 -07:00
|
|
|
enum movement_step_48
|
|
|
|
step_48: macro
|
|
|
|
db movement_step_48
|
|
|
|
db \1
|
|
|
|
endm
|
2015-07-15 12:48:44 -07:00
|
|
|
|
|
|
|
enum movement_remove_person
|
2015-01-20 00:01:23 -08:00
|
|
|
remove_person: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_remove_person ; $49
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-11-11 20:38:57 -08:00
|
|
|
enum movement_step_loop
|
|
|
|
step_loop: macro
|
|
|
|
db movement_step_loop ; $4a
|
|
|
|
endm
|
|
|
|
|
2015-12-29 10:15:58 -08:00
|
|
|
enum movement_step_4b
|
|
|
|
step_4b: macro
|
|
|
|
db movement_step_4b ; $4b
|
|
|
|
endm
|
2015-07-15 12:48:44 -07:00
|
|
|
|
|
|
|
enum movement_teleport_from
|
2015-01-20 00:01:23 -08:00
|
|
|
teleport_from: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_teleport_from ; $4c
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-07-15 12:48:44 -07:00
|
|
|
enum movement_teleport_to
|
2015-01-20 00:01:23 -08:00
|
|
|
teleport_to: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_teleport_to ; $4d
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-07-15 12:48:44 -07:00
|
|
|
enum movement_skyfall
|
2015-01-20 00:01:23 -08:00
|
|
|
skyfall: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_skyfall ; $4e
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-11-15 18:28:15 -08:00
|
|
|
enum movement_step_dig
|
|
|
|
step_dig: macro
|
|
|
|
db movement_step_dig ; $4f
|
|
|
|
db \1
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-11-13 15:59:49 -08:00
|
|
|
enum movement_step_bump
|
|
|
|
step_bump: macro
|
|
|
|
db movement_step_bump ; $50
|
|
|
|
endm
|
2015-07-18 20:45:39 -07:00
|
|
|
|
|
|
|
enum movement_fish_got_bite
|
|
|
|
fish_got_bite: macro
|
2015-07-22 12:57:02 -07:00
|
|
|
db movement_fish_got_bite ; $51
|
2015-07-18 20:45:39 -07:00
|
|
|
endm
|
|
|
|
|
2015-11-11 20:38:57 -08:00
|
|
|
enum movement_fish_cast_rod
|
|
|
|
fish_cast_rod: macro
|
|
|
|
db movement_fish_cast_rod ; $52
|
2015-07-18 20:45:39 -07:00
|
|
|
endm
|
2015-07-15 12:48:44 -07:00
|
|
|
|
|
|
|
enum movement_hide_emote
|
2015-01-20 00:01:23 -08:00
|
|
|
hide_emote: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_hide_emote ; $53
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-07-15 12:48:44 -07:00
|
|
|
enum movement_show_emote
|
2015-01-20 00:01:23 -08:00
|
|
|
show_emote: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_show_emote ; $54
|
2015-01-20 00:01:23 -08:00
|
|
|
endm
|
|
|
|
|
2015-07-15 12:48:44 -07:00
|
|
|
enum movement_step_shake
|
2015-01-20 00:01:23 -08:00
|
|
|
step_shake: macro
|
2015-07-15 12:48:44 -07:00
|
|
|
db movement_step_shake ; $55
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1 ; displacement
|
|
|
|
endm
|
2015-07-22 12:57:02 -07:00
|
|
|
|
2016-04-10 10:47:24 -07:00
|
|
|
enum movement_tree_shake
|
|
|
|
tree_shake: macro
|
|
|
|
db movement_tree_shake
|
|
|
|
endm
|
|
|
|
|
2015-07-22 12:57:02 -07:00
|
|
|
enum movement_rock_smash
|
|
|
|
rock_smash: macro
|
|
|
|
db movement_rock_smash ; $57
|
|
|
|
db \1
|
|
|
|
endm
|
2015-11-15 18:28:15 -08:00
|
|
|
|
|
|
|
enum movement_return_dig
|
|
|
|
return_dig: macro
|
|
|
|
db movement_return_dig ; $58
|
|
|
|
db \1
|
|
|
|
endm
|
2015-12-15 07:55:56 -08:00
|
|
|
|
2015-12-15 08:21:58 -08:00
|
|
|
enum movement_skyfall_top
|
|
|
|
skyfall_top: macro
|
|
|
|
db movement_skyfall_top ; $59
|
2015-12-15 07:55:56 -08:00
|
|
|
endm
|