mirror of
https://github.com/blondie7575/GSCats.git
synced 2024-06-10 10:29:27 +00:00
Added victory screen
This commit is contained in:
parent
8362b0d4ae
commit
7967035cc3
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
90
fonts.s
90
fonts.s
|
@ -6420,156 +6420,156 @@ font16char32:
|
||||||
font16char33:
|
font16char33:
|
||||||
tya
|
tya
|
||||||
tcs
|
tcs
|
||||||
; Line 15, Pixel values: 2222 2000 0000 0000
|
; Line 15, Pixel values: faaa a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #6
|
sbc #6
|
||||||
tcs
|
tcs
|
||||||
pea $2222
|
pea $aafa
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 14, Pixel values: 2222 2000 0000 0000
|
; Line 14, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $2222
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 13, Pixel values: 2222 2000 0000 0000
|
; Line 13, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $2222
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 12, Pixel values: 2222 2000 0000 0000
|
; Line 12, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $2222
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 11, Pixel values: 2222 2000 0000 0000
|
; Line 11, Pixel values: ffff f000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $2222
|
pea $ffff
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00f0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 10, Pixel values: 0000 0000 0000 0000
|
; Line 10, Pixel values: 0000 0000 0000 0000
|
||||||
; Line 9, Pixel values: 2222 2000 0000 0000
|
; Line 9, Pixel values: faaa a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #318
|
sbc #318
|
||||||
tcs
|
tcs
|
||||||
pea $2222
|
pea $aafa
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 8, Pixel values: 2222 2000 0000 0000
|
; Line 8, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $2222
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 7, Pixel values: 8222 2000 0000 0000
|
; Line 7, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $2282
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 6, Pixel values: 8822 2000 0000 0000
|
; Line 6, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $2288
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 5, Pixel values: 8882 2000 0000 0000
|
; Line 5, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $8288
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 4, Pixel values: 8888 2000 0000 0000
|
; Line 4, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $8888
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0020
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 3, Pixel values: 8888 8000 0000 0000
|
; Line 3, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $8888
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0080
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 2, Pixel values: 8888 8000 0000 0000
|
; Line 2, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $8888
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0080
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 1, Pixel values: 8888 8000 0000 0000
|
; Line 1, Pixel values: fbbb a000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $8888
|
pea $bbfb
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0080
|
ora #$00a0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
; Line 0, Pixel values: 8888 8000 0000 0000
|
; Line 0, Pixel values: ffff f000 0000 0000
|
||||||
tsc
|
tsc
|
||||||
sec
|
sec
|
||||||
sbc #158
|
sbc #158
|
||||||
tcs
|
tcs
|
||||||
pea $8888
|
pea $ffff
|
||||||
lda 3,S
|
lda 3,S
|
||||||
and #$ff0f
|
and #$ff0f
|
||||||
ora #$0080
|
ora #$00f0
|
||||||
sta 3,S
|
sta 3,S
|
||||||
jmp renderCharJumpReturn_font16
|
jmp renderCharJumpReturn_font16
|
||||||
|
|
||||||
|
|
|
@ -334,8 +334,28 @@ endTurnWrap:
|
||||||
; Handles someone winning
|
; Handles someone winning
|
||||||
;
|
;
|
||||||
endGame:
|
endGame:
|
||||||
|
SAVE_AXY
|
||||||
|
|
||||||
|
lda currentPlayer
|
||||||
|
beq endGame0
|
||||||
|
|
||||||
|
lda #victoryText1
|
||||||
|
bra endGameRender
|
||||||
|
|
||||||
|
endGame0:
|
||||||
|
lda #victoryText0
|
||||||
|
|
||||||
|
endGameRender:
|
||||||
|
sta PARAML0
|
||||||
|
ldy #$48b7
|
||||||
|
lda #2
|
||||||
|
jsl renderStringFar
|
||||||
|
|
||||||
|
jsr kbdWaitForAnyKey
|
||||||
lda #1
|
lda #1
|
||||||
sta quitRequested
|
sta quitRequested
|
||||||
|
|
||||||
|
RESTORE_AXY
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
@ -535,3 +555,7 @@ mapScrollPos:
|
||||||
rightScreenEdge: ; Right edge minus one game object width, for easy render clipping
|
rightScreenEdge: ; Right edge minus one game object width, for easy render clipping
|
||||||
.word 160-GAMEOBJECTWIDTH/4-2
|
.word 160-GAMEOBJECTWIDTH/4-2
|
||||||
|
|
||||||
|
victoryText0:
|
||||||
|
pstring "SPROCKET WINS!"
|
||||||
|
victoryText1:
|
||||||
|
pstring " TINKER WINS!"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user