ootw: c3: go to level4 at end

This commit is contained in:
Vince Weaver 2019-08-10 15:50:16 -04:00
parent 286ffa9582
commit 4f99f77abc
2 changed files with 29 additions and 27 deletions

View File

@ -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

View File

@ -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: