Skip to content

Commit 8146368

Browse files
committed
Added game over screen and final results display
1 parent 0c8d1f4 commit 8146368

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

Client/Atari/FujiLlama.bas

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,7 @@ DO
298298
@ReadKeyPresses
299299
if GameStatus(tablenumber)=4 then @ShowResults
300300
UNTIL GameStatus(tablenumber)=5
301-
@readGameState
302-
move$="G"
303-
@PlayMove
301+
@ShowGameOver
304302
LOOP
305303

306304
@QuitGame
@@ -497,6 +495,47 @@ PROC ShowResults
497495
UNTIL GameStatus(tablenumber)=3 or GameStatus(tablenumber)=5
498496
ENDPROC
499497

498+
PROC ShowGameOver
499+
@EnableDoubleBuffer
500+
@ResetScreen
501+
@POS 2,0: @Print &"GAME OVER - FINAL SCORES"
502+
@POS 0,1: @PrintINV &"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
503+
@DrawFinalResults
504+
@POS 7,25:@Print &"PRESS ANY KEY TO CONTINUE"
505+
@DrawBufferEnd
506+
@ShowScreen
507+
GET K
508+
move$="G"
509+
@PlayMove
510+
@POS 0,25:@Print &"PLEASE WAIT RETURNING TO TABLE SELECTION"
511+
@readGameState
512+
@readGameState
513+
ENDPROC
514+
515+
PROC DrawFinalResults
516+
' Draw the players Results on the screen
517+
X=1:Y=2:loser=0
518+
For aa=0 to 5
519+
if PlayerName$(aa)<>""
520+
if aa=0
521+
@POS X,Y: @PrintUpper &PlayerName$(aa)[1,12]:@Print &" IS THE WINNER WITH A SCORE OF ":@PrintVal PlayerScore(aa)
522+
else
523+
@POS X,Y: @PrintUpper &PlayerName$(aa)[1,12]:@Print &" SCORE:":@PrintVal PlayerScore(aa)
524+
endif
525+
@POS 0,Y+1: @Print &"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
526+
Y=Y+2
527+
loser=aa
528+
endif
529+
next aa
530+
Y=Y-2
531+
@POS 0,Y+1: @Print & " "
532+
@POS X,Y: @PrintUpper &PlayerName$(loser)[1,12]:@Print &" BUSTED ENDING THE GAME"
533+
@POS X,Y+1:@Print &"WITH A SCORE OF ":@PrintVal PlayerScore(loser)
534+
@POS X,Y+2:@Print &"SO IS THE LOSER"
535+
@POS 0,Y+3: @PrintINV &"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
536+
537+
ENDPROC
538+
500539
PROC DrawPlayersResults
501540
' Draw the players Results on the screen
502541
X=1:Y=2

Client/Atari/bin/FujiLlama.xex

670 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)