diff --git a/constants.asm b/constants.asm index 12c4204..1320250 100644 --- a/constants.asm +++ b/constants.asm @@ -19,7 +19,7 @@ CashOptionH .by 0,>200,>800,>1200,>2000 GravityTable .by 10,20,25,30,40 MaxWindTable .by 5,20,40,70,99 -RoundsTable .by 10,20,30,40,50 +RoundsTable .by 2,20,30,40,50 flyDelayTable .by 255,150,75,35,1 seppukuTable .by 255, 45,25,15,9 ;------------------------------------------------ @@ -919,5 +919,10 @@ scrcodes dta d"qrstuvwx" dta d"yz123456" dta d"7890." ; "-" +;----------------------------------- +gameOverSpritesTop + ; end of the Gover sprites by number of players + ; 1 2 3 4 5 6 + .by 130,130,136,142,148,154 .endif diff --git a/grafproc.asm b/grafproc.asm index 44761f0..218498e 100644 --- a/grafproc.asm +++ b/grafproc.asm @@ -654,11 +654,11 @@ DrawTankNrX rorw xbyte ; divide by 2 (carry does not matter) lda xbyte clc - adc #$24 ; P/M to graphics offset + adc #PMOffset+1 ; P/M to graphics offset cpx #$4 ; 5th tank are joined missiles and offset is defferent bne NoMissile clc - adc #$0C + adc #$0C ; missile offset offset NoMissile sta hposp0,x ; vertical position diff --git a/scorch.xex b/scorch.xex index a8292ef..5e6e66c 100644 Binary files a/scorch.xex and b/scorch.xex differ diff --git a/textproc.asm b/textproc.asm index 2e4768f..cfd0055 100644 --- a/textproc.asm +++ b/textproc.asm @@ -1634,6 +1634,7 @@ quit_seppuku GameOver4x4 lda #song_game_over jsr RmtSongSelect + jsr GameOverSprites mwa #LineGameOver LineAddress4x4 mwa #((ScreenWidth/2)-(8*4)) LineXdraw mva ResultY LineYdraw @@ -1990,5 +1991,38 @@ NextChar02 rts .endp ;------------------------------------------------- +.proc GameOverSprites + ; fill sprites with bytes + ldy numberOfPlayers + dey + lda gameOverSpritesTop,y + sta temp + + ; clean the whole sprite + lda #0 + tax +@ sta PMGraph+$400,x + sta PMGraph+$500,x + dex + bne @- + + ; set background + lda #$ff + ldx #100 ; top of the sprites +@ sta PMGraph+$400,x + sta PMGraph+$500,x + inx + cpx temp + bne @- + GOSbeg = 112 + mva #GOSbeg hposp0 + mva #GOSbeg+12 hposp0+1 + + mva #15 COLPM0S + sta COLPM1S + + rts +.endp +;------------------------------------------------- .endif \ No newline at end of file