dos33fsprogs/monkey/monkey_bar_inside1.s

115 lines
1.7 KiB
ArmAsm
Raw Normal View History

2020-09-25 03:33:59 +00:00
; stuff regarding 1st room in scumm bar
2020-09-29 19:14:21 +00:00
; if x<5 goto MONKEY_BAR at 10,20
; if x>35 goto MONKEY_BAR_INSIDE2 at 5,20
2020-09-25 03:33:59 +00:00
bar_inside1_check_exit:
lda GUYBRUSH_X
2020-09-29 19:14:21 +00:00
cmp #5
bcc bar_inside1_to_bar
2020-09-25 03:33:59 +00:00
cmp #35
2020-09-29 19:14:21 +00:00
bcs bar_inside1_to_bar_inside2
2020-09-25 03:33:59 +00:00
bcc bar_inside1_no_exit
2020-09-29 19:14:21 +00:00
bar_inside1_to_bar:
lda #MONKEY_BAR
2020-09-25 03:33:59 +00:00
sta LOCATION
2020-09-29 19:14:21 +00:00
lda #10
2020-09-25 03:33:59 +00:00
sta GUYBRUSH_X
sta DESTINATION_X
lda #20
sta GUYBRUSH_Y
sta DESTINATION_Y
2020-09-29 19:14:21 +00:00
lda #DIR_DOWN
sta GUYBRUSH_DIRECTION
2020-09-25 03:33:59 +00:00
jsr change_location
jmp bar_inside1_no_exit
2020-09-29 19:14:21 +00:00
bar_inside1_to_bar_inside2:
lda #MONKEY_BAR_INSIDE2
2020-09-25 03:33:59 +00:00
sta LOCATION
2020-09-29 19:14:21 +00:00
lda #3
2020-09-25 03:33:59 +00:00
sta GUYBRUSH_X
sta DESTINATION_X
lda #20
sta GUYBRUSH_Y
2020-09-29 19:14:21 +00:00
lda #24
2020-09-25 03:33:59 +00:00
sta DESTINATION_Y
jsr change_location
jmp bar_inside1_no_exit
bar_inside1_no_exit:
rts
2020-09-29 19:14:21 +00:00
;=================================
;=================================
2020-09-25 03:33:59 +00:00
; bar_inside1 adjust destination
2020-09-29 19:14:21 +00:00
;=================================
;=================================
2020-09-25 03:33:59 +00:00
bar_inside1_adjust_destination:
2020-10-01 19:07:02 +00:00
; just make Y always 22
2020-09-25 03:33:59 +00:00
mb1_check_y:
; if x < 28, Y must be between 16 and 18
; if x < 35, Y must be between 8 and 28
mb1_y_too_small:
2020-10-01 19:07:02 +00:00
lda #24
2020-09-25 03:33:59 +00:00
sta DESTINATION_Y
done_mb1_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:
2020-09-29 19:14:21 +00:00
;===================================
;===================================
; actions
;===================================
;===================================
;=============================
bar1_pirate_action:
lda #VERB_WALK
sta CURRENT_VERB
rts
;=============================
bar1_door_action:
lda #VERB_WALK
sta CURRENT_VERB
rts
;=============================
bar1_dog_action:
lda #VERB_WALK
sta CURRENT_VERB
rts
2020-10-01 19:07:02 +00:00
bar_inside1_check_bounds:
rts