mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-21 06:39:46 +02:00
Wrap up and down inventory and shop scrolling #111
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@
|
||||
|
||||
;---------------------------------------------------
|
||||
.macro build
|
||||
dta d"1.17" ; number of this build (4 bytes)
|
||||
dta d"1.18" ; number of this build (4 bytes)
|
||||
.endm
|
||||
|
||||
.macro RMTSong
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+10
-11
@@ -419,17 +419,17 @@ PurchaseKeyUp
|
||||
bpl GoUpOffensive
|
||||
dec PositionOnTheList
|
||||
bpl EndUpX
|
||||
ldy #0 ;HowManyOnTheListDef
|
||||
;dey
|
||||
ldy HowManyOnTheListDef
|
||||
dey
|
||||
sty PositionOnTheList
|
||||
jmp ChoosingItemForPurchase
|
||||
jmp MakeOffsetDown
|
||||
GoUpOffensive
|
||||
dec PositionOnTheList
|
||||
bpl MakeOffsetUp
|
||||
ldy #0 ;HowManyOnTheListOff
|
||||
;dey
|
||||
ldy HowManyOnTheListOff
|
||||
dey
|
||||
sty PositionOnTheList
|
||||
|
||||
jmp MakeOffsetDown
|
||||
MakeOffsetUp
|
||||
; If offset is larger than pointer position,
|
||||
; it must be equal then.
|
||||
@@ -445,17 +445,16 @@ PurchaseKeyDown
|
||||
inc:lda PositionOnTheList
|
||||
cmp HowManyOnTheListDef
|
||||
bne EndGoDownX
|
||||
ldy HowManyOnTheListDef
|
||||
dey
|
||||
ldy #0
|
||||
sty PositionOnTheList
|
||||
jmp ChoosingItemForPurchase
|
||||
beq MakeOffsetUp
|
||||
GoDownOffensive
|
||||
inc:lda PositionOnTheList
|
||||
cmp HowManyOnTheListOff
|
||||
bne MakeOffsetDown
|
||||
ldy HowManyOnTheListOff
|
||||
dey
|
||||
ldy #0
|
||||
sty PositionOnTheList
|
||||
beq MakeOffsetUp
|
||||
MakeOffsetDown
|
||||
lda OffsetDL1
|
||||
clc
|
||||
|
||||
Reference in New Issue
Block a user