Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed N5110 ShiftReg PinDetect
Auto generated API documentation and code listings for BRAVEHEART
| Achievement | State : Submit Highscore Displays a screen where the user is promted to input his or her initials |
| Achievement | An achievement element consists of all records made |
| CoverPage | Used to display the splash screen which is shown when turning the device on |
| Enemy | Enemy class |
| Entity | An entity represents a movable character, such as the player, enemies etc |
| Game | State : Game |
| GameOver | State : Game Over |
| Highscore | A highscore element consists of initials and a score |
| InputManager | Used to manage user input from buttons and thumb joystick |
| Joystick | Joystick class |
| MainMenu | State : Main Menu |
| Note | A note is given by its frequency and beat |
| Point | Simple objects with a position (x,y) and velocity (vx, vy) |
| Rectangle | Rectangle with position (x and y) and dimensions (width and height) |
| Sound | Sound uses a piezo buzzer connect to a PWMOut to output sound |
| State | Abstract class for states in the program's main finite state machine. All state implementations is derived from this abstract class |
| StateManager | Finite State Machine for program flow |
Code
| Achievement.cpp [code] | |
| Achievement.h [code] | |
| CoverPage.cpp [code] | |
| CoverPage.h [code] | |
| Game.cpp [code] | |
| Game.h [code] | |
| GameOver.cpp [code] | |
| GameOver.h [code] | |
| Global.cpp [code] | |
| Global.h [code] | Contains global variables and functions |
| InputManager.cpp [code] | |
| InputManager.h [code] | |
| main.cpp [code] | |
| MainMenu.cpp [code] | |
| MainMenu.h [code] | |
| Music.cpp [code] | |
| Music.h [code] | |
| Sprites.h [code] | Resource files - sprites/images stored as arrays |
| State.cpp [code] | |
| State.h [code] | |
| StateManager.h [code] | |
| StateManger.cpp [code] |