climb: avoid crash when you get too high

This commit is contained in:
Vince Weaver 2024-09-15 23:50:33 -04:00
parent 3edbca121b
commit bf5c62a292
2 changed files with 22 additions and 3 deletions

View File

@ -2,9 +2,8 @@ Change priority code to work on three-wide sprites
Change draw transparency code to work on three-wide sprites
Erase flame even when not moving? That is tricky as would need to
redraw head as well :( maybe just erase part above the head?
Make it so you can't go down to previous level
Above level2 don't crash, just show bg#2 again
add collision detection for boulders
adjust boulder fall frequency to match original
For Coach Z version:
Speed up rocks/change spawn rate above level2

View File

@ -501,6 +501,15 @@ load_graphics:
;========================
ldx MAP_LOCATION
cpx #2
bcc priority_normal
ldx #2
priority_normal:
lda priority_data_l,X
sta ZX0_src
lda priority_data_h,X
@ -524,6 +533,17 @@ load_graphics:
;===========================
ldx MAP_LOCATION
; extra for Z variant
; repeat level 2 over and over
cpx #2
bcc bg_normal
ldx #2
bg_normal:
lda bg_data_l,X
sta ZX0_src
lda bg_data_h,X