mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Hit one pixel over ground
This commit is contained in:
@@ -252,6 +252,8 @@ CheckCollisionDraw
|
|||||||
|
|
||||||
mwa xdraw XHit
|
mwa xdraw XHit
|
||||||
lda (temp),y
|
lda (temp),y
|
||||||
|
sec
|
||||||
|
sbc #1
|
||||||
sta YHit
|
sta YHit
|
||||||
mva #0 YHit+1
|
mva #0 YHit+1
|
||||||
;mwa ydraw YHit
|
;mwa ydraw YHit
|
||||||
|
|||||||
BIN
Binary file not shown.
+4
-2
@@ -1815,7 +1815,7 @@ NoUnPlot
|
|||||||
|
|
||||||
Hit
|
Hit
|
||||||
mwa XHit xdraw
|
mwa XHit xdraw
|
||||||
mva YHit ydraw ; one byte now
|
mwa YHit ydraw
|
||||||
|
|
||||||
jsr unPlot
|
jsr unPlot
|
||||||
EndOfFlight
|
EndOfFlight
|
||||||
@@ -2163,7 +2163,7 @@ mrHit
|
|||||||
; we have to make unPlot over the screen (to initialise it)
|
; we have to make unPlot over the screen (to initialise it)
|
||||||
; before actual explosion
|
; before actual explosion
|
||||||
mwa #0 xdraw
|
mwa #0 xdraw
|
||||||
mva #screenheight-1 ydraw
|
mwa #screenheight-1 ydraw
|
||||||
jsr unPlot.unPlotAfterX
|
jsr unPlot.unPlotAfterX
|
||||||
ldx MirvMissileCounter
|
ldx MirvMissileCounter
|
||||||
ldy #0
|
ldy #0
|
||||||
@@ -2178,6 +2178,8 @@ mrHit
|
|||||||
adc #>mountaintable
|
adc #>mountaintable
|
||||||
sta temp+1
|
sta temp+1
|
||||||
lda (temp),y
|
lda (temp),y
|
||||||
|
sec
|
||||||
|
sbc #1
|
||||||
sta ydraw
|
sta ydraw
|
||||||
sty ydraw+1 ;we know that y=0
|
sty ydraw+1 ;we know that y=0
|
||||||
jsr missile ; explode ....
|
jsr missile ; explode ....
|
||||||
|
|||||||
Reference in New Issue
Block a user