|
298 | 298 | @ReadKeyPresses |
299 | 299 | if GameStatus(tablenumber)=4 then @ShowResults |
300 | 300 | UNTIL GameStatus(tablenumber)=5 |
301 | | - @readGameState |
302 | | - move$="G" |
303 | | - @PlayMove |
| 301 | + @ShowGameOver |
304 | 302 | LOOP |
305 | 303 |
|
306 | 304 | @QuitGame |
@@ -497,6 +495,47 @@ PROC ShowResults |
497 | 495 | UNTIL GameStatus(tablenumber)=3 or GameStatus(tablenumber)=5 |
498 | 496 | ENDPROC |
499 | 497 |
|
| 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 | + |
500 | 539 | PROC DrawPlayersResults |
501 | 540 | ' Draw the players Results on the screen |
502 | 541 | X=1:Y=2 |
|
0 commit comments