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
Game Class Reference
#include <Game.h>
Public Member Functions | |
void | init () |
Init. | |
int | get_health () |
Gets current health. | |
void | direc (Gamepad &pad) |
Gets current direction of joystick. | |
void | display_health (N5110 &lcd) |
Displays current health. | |
void | drawSprite (N5110 &lcd) |
Draws all sprites. | |
void | movement (N5110 &lcd, Gamepad &pad) |
Move sprites. | |
void | collect (N5110 &lcd, Gamepad &pad) |
Detects collection. | |
void | win (N5110 &lcd) |
Win screen. | |
void | damage (N5110 &lcd, Gamepad &pad) |
Detects damage. | |
void | death (N5110 &lcd) |
Death screen. | |
void | UI (N5110 &lcd, Gamepad &pad) |
User Interface. |
Detailed Description
Game class.
Class of all game functions called in main.cpp
- Version:
- 1.0
- Date:
- 09/05/19
Definition at line 26 of file Game.h.
Member Function Documentation
void death | ( | N5110 & | lcd ) |
void direc | ( | Gamepad & | pad ) |
void display_health | ( | N5110 & | lcd ) |
void drawSprite | ( | N5110 & | lcd ) |
int get_health | ( | ) |
void init | ( | ) |
Generated on Wed Jul 13 2022 21:10:10 by
