Thank you for visiting Blazing Games

Winning

While the traditional arcade game was designed to last until the player died, having proper endings makes sense. For Coffee Quest, the game ends when all the quest items are taken to the power outlet. As at the time the game was developed I was under a very short release schedule, I went with a very simple victory screen for the ending. Had there been more sufficient development time for the game I would probably had some type of animated ending for the game.

I cheated big time here as the winning screen is drawn as part of the normal screen update that happens after the player makes a move. The paint function that handles this simply checks to see if the game has been won and if so displays the winning message.

if (bWonGame)
{
Font f = new Font("TimesRoman", Font.BOLD, 64);
g.setFont(f);
g.setColor(Color.blue);
g.drawString("YOU WIN!", 75, 150);
if (bSugar)
{
Font f2 = new Font("TimesRoman", Font.BOLD, 24);
g.setFont(f2);
g.setColor(Color.blue);
g.drawString("You even found the Cream and Sugar!", 10, 250);
}
}

For those who are wondering, if I were to do an ending animation for the game now, it would be a quick time-lapse sequence of making a cup of coffee and end with a gate appearing and the inference that the gate returns the player home. Possibly the ending message would be something along the lines of “Not only did I get a great cup of coffee, but it appears that I can return home!”

Previous page
Chapter 4 Page 5

About - Privacy Policy - Contact - Links - FAQ
Copyright © 2009 Blazing Games Inc. All Rights Reserved