Ernesto01/applesgame — Issue #5: Transitioning of Game States
Author: benallyc
Created: 2012-02-16 09:49:52+00:00
State: open

I implemented transitions between a newly established game state which will ultimately display detailed instructions to the player, about directional arrows and object of game. However, I have yet to enter the actual instructions for the player. Currently, all that is displayed is a "Game Controls" logo.

I also implemented a transition between a newly established game state which will display extraneous information regarding the development of the game etc. E.g. "Corbin would like to thank sugar-free RedBull" Haha. Currently, all that is displayed is an "About" logo.

In both of these game states, I ran into an issue regarding the drawing of the InGame sprites. Although the key functions successfully transition into the new state, the new states still displayed the sprite character, apples, and adversaries. I haven't poked around too much with the code, but maybe it's an easy fix, so please feel free to address this issue.

Here's a basic break-down of our start menu:
Pressing Enter begins the game.
Pressing Space will display game controls to the player.
Pressing 'a' or 'A' will display information about Apple Frenzy.

I have also took the liberty of implementing a function which is available during the game controls state and the about game state, this function will return the player to the start menu, after he/she decides to start the game.
Pressing b or 'B' brings the player back to the start menu, where he/she is once again given the start menu options.

One last thing, I added a "Game Over" logo which is displayed once the user has died or if the timer runs out.