Fast draw mountains fixed!

This commit is contained in:
Pecusx
2023-06-12 14:26:06 +02:00
parent 0c1f2e5164
commit 7efb642300
4 changed files with 16 additions and 14 deletions
+8 -7
View File
@@ -197,12 +197,6 @@ ClearPlot
mva #1 color mva #1 color
drawmountainsloop drawmountainsloop
ldy #0
lda (modify),y
cmp #screenheight
beq NoMountain
sta ydraw
sty ydraw+1
.IF FASTER_GRAF_PROCS = 1 .IF FASTER_GRAF_PROCS = 1
; calculate lower point in one screen byte ; calculate lower point in one screen byte
lda xdraw lda xdraw
@@ -217,8 +211,15 @@ NotLower
bpl @- bpl @-
sta temp2 sta temp2
inc temp2 ; this is our minimum inc temp2 ; this is our minimum
iny
MinCalculated MinCalculated
.ENDIF
ldy #0
lda (modify),y
cmp #screenheight
beq NoMountain
sta ydraw
sty ydraw+1
.IF FASTER_GRAF_PROCS = 1
; there was Drawline proc ; there was Drawline proc
jsr plot.MakePlot jsr plot.MakePlot
; after plot we have: (xbyte),y - addres of screen byte; X - index in bittable (number of bit) ; after plot we have: (xbyte),y - addres of screen byte; X - index in bittable (number of bit)
+8 -7
View File
@@ -184,12 +184,6 @@ ClearPlot
mva #1 color mva #1 color
drawmountainsloop drawmountainsloop
ldy #0
lda (modify),y
cmp #screenheight
beq NoMountain
sta ydraw
sty ydraw+1
.IF FASTER_GRAF_PROCS = 1 .IF FASTER_GRAF_PROCS = 1
; calculate lower point in one screen byte ; calculate lower point in one screen byte
lda xdraw lda xdraw
@@ -205,8 +199,15 @@ NotLower
bpl @- bpl @-
sta temp2 sta temp2
inc temp2 ; this is our minimum inc temp2 ; this is our minimum
iny
MinCalculated MinCalculated
.ENDIF
ldy #0
lda (modify),y
cmp #screenheight
beq NoMountain
sta ydraw
sty ydraw+1
.IF FASTER_GRAF_PROCS = 1
; there was Drawline proc ; there was Drawline proc
lda #screenheight lda #screenheight
sec sec
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.