dos33fsprogs/monkey/monkey_voodoo2.s

108 lines
1.5 KiB
ArmAsm
Raw Normal View History

2020-10-01 19:07:02 +00:00
; voodoo lady
2020-10-01 23:44:49 +00:00
; if x<8 goto MONKEY_VOODOO1
2020-10-01 19:07:02 +00:00
voodoo2_check_exit:
lda GUYBRUSH_X
2020-10-01 23:44:49 +00:00
cmp #8
2020-10-01 19:07:02 +00:00
bcc voodoo2_to_voodoo1
bcs voodoo2_no_exit
voodoo2_to_voodoo1:
lda #MONKEY_VOODOO1
sta LOCATION
lda #30
sta GUYBRUSH_X
sta DESTINATION_X
lda #20
sta GUYBRUSH_Y
sta DESTINATION_Y
jsr change_location
jmp voodoo2_no_exit
voodoo2_no_exit:
rts
;==========================
;==========================
; voodoo2 adjust destination
;==========================
;==========================
voodoo2_adjust_destination:
; just make Y always 20
v2_check_y:
; if x < 28, Y must be between 16 and 18
; if x < 35, Y must be between 8 and 28
v2_y_too_small:
lda #20
sta DESTINATION_Y
done_v2_adjust:
rts
;draw_house:
; lda #<wall_sprite
; sta INL
; lda #>wall_sprite
; sta INH
; lda #18
; sta XPOS
; lda #22
; sta YPOS
; jsr put_sprite_crop
; rts
;house_sprite:
voodoo2_check_bounds:
rts
2020-10-01 23:44:49 +00:00
;=============================
voodoo_lady_action:
lda CURRENT_VERB
asl
tay
lda voodoo_lady_actions,Y
cmp #$ff
beq voodoo_lady_nothing
sta MESSAGE_L
lda voodoo_lady_actions+1,Y
sta MESSAGE_H
jmp do_display_message
voodoo_lady_nothing:
lda #VERB_WALK
sta CURRENT_VERB
rts
voodoo_lady_actions:
.word $FFFF ; give
.word doesnt_open ; open
.word doesnt_work ; close
.word cant_pick_up ; pick_up
.word $FFFF ; look_at
.word voodoo_talk ; talk_to
.word for_what ; use
.word icant_move ; push
.word icant_move ; pull
voodoo_talk:
.byte 6,21,"WHAT MAY I HELP YOU WITH SON?",0