skip to main |
skip to sidebar
As the game needs to include text I have carried out some research into the font options available using OpenCV and then carried out some experiments with these.
Text items include:- Initialisation
- Score
- Countdown
- Game over
- High score board
This is an example of the initialisation screen and the font used throughout the game.
Working from the initial state transition diagram that was presented in the project proposal and presentation, I coded eight states for the game. The states take the player through the game, linking one state to the next depending on the outcome of each game. For example, the game over state may lead to the enter high score state (if the score is greater than the lowest high score) or to the view high score state (if the score is lower than the lowest high score).
The states are:
- Initialisation
- Startup
- Countdown
- Playing
- Game over
- Congratulations
- Enter high score
- View high score