mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-10 08:54:51 +00:00
ootw: c3: go to level4 at end
This commit is contained in:
parent
286ffa9582
commit
4f99f77abc
@ -33,6 +33,17 @@ ootw_c3:
|
||||
|
||||
jsr ootw_vent
|
||||
|
||||
;====================
|
||||
; go to next level
|
||||
; if appropriate
|
||||
l3_defeated:
|
||||
lda GAME_OVER
|
||||
cmp #4
|
||||
bne quit_level
|
||||
|
||||
lda #4
|
||||
sta WHICH_LOAD
|
||||
rts
|
||||
|
||||
;===========================
|
||||
; quit_level
|
||||
|
@ -317,55 +317,46 @@ done_falling:
|
||||
|
||||
;===============
|
||||
; page flip
|
||||
;===============
|
||||
|
||||
jsr page_flip
|
||||
|
||||
;================
|
||||
; inc frame count
|
||||
|
||||
;================
|
||||
inc FRAMEL
|
||||
bne vent_frame_no_oflo
|
||||
inc FRAMEH
|
||||
vent_frame_no_oflo:
|
||||
|
||||
|
||||
;==========================
|
||||
; check if done this level
|
||||
;==========================
|
||||
|
||||
; first see if at end
|
||||
|
||||
lda PHYSICIST_Y
|
||||
cmp #50
|
||||
bcc done_check_bottom
|
||||
|
||||
; we fell out the vent at the bottom!
|
||||
|
||||
lda #$4
|
||||
sta GAME_OVER
|
||||
rts
|
||||
|
||||
done_check_bottom:
|
||||
|
||||
|
||||
lda GAME_OVER
|
||||
beq still_in_vent
|
||||
|
||||
cmp #$ff ; if $ff, we died
|
||||
beq done_vent
|
||||
|
||||
;===============================
|
||||
; check if exited room to right
|
||||
; cmp #1
|
||||
; beq jail_exit_left
|
||||
|
||||
;=================
|
||||
; exit to right
|
||||
|
||||
;jail_right_yes_exit:
|
||||
|
||||
; lda #0
|
||||
; sta PHYSICIST_X
|
||||
;jer_smc:
|
||||
; lda #$0 ; smc+1 = exit location
|
||||
; sta WHICH_CAVE
|
||||
; jmp done_jail
|
||||
|
||||
;=====================
|
||||
; exit to left
|
||||
|
||||
;jail_exit_left:
|
||||
|
||||
; lda #37
|
||||
; sta PHYSICIST_X
|
||||
;jel_smc:
|
||||
; lda #0 ; smc+1
|
||||
; sta WHICH_CAVE
|
||||
; jmp done_jail
|
||||
|
||||
; loop forever
|
||||
still_in_vent:
|
||||
|
Loading…
Reference in New Issue
Block a user