Hit one pixel over ground

This commit is contained in:
Pecusx
2022-05-30 14:34:58 +02:00
parent 7cd31450c7
commit 0ddbe41005
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -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
View File
Binary file not shown.
+4 -2
View File
@@ -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 ....