mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 14:49:40 +02:00
Hovercraft fly high and low
This commit is contained in:
@@ -1521,6 +1521,28 @@ EndDrawing
|
||||
|
||||
rts
|
||||
.endp
|
||||
|
||||
;--------------------------------------------------
|
||||
.proc CheckMaxMountain
|
||||
; in A return y coordinate of highest mountain
|
||||
;--------------------------------------------------
|
||||
mwa #mountaintable modify
|
||||
ldy #0
|
||||
ldx #screenheight-1
|
||||
nextPointChecking
|
||||
txa
|
||||
cmp (modify),y
|
||||
bcc NotHigher
|
||||
lda (modify),y
|
||||
tax
|
||||
NotHigher
|
||||
inw modify
|
||||
cpw modify #(mountaintable+screenwidth)
|
||||
bne nextPointChecking
|
||||
txa
|
||||
rts
|
||||
.endp
|
||||
|
||||
/*
|
||||
;--------------------------------------------------
|
||||
.proc calculatemountains0
|
||||
|
||||
Reference in New Issue
Block a user