Mbed project for a FRDM-K64F microcontroller. Game made out of five sub-games including flappy birds, snake, stack, trivia and space invaders.
Fork of The_Children_of_Cronos_el15mggr by
taurolib Class Reference
taurolib Class More...
#include <taurolib.h>
Public Member Functions | |
| taurolib () | |
| Constructor. | |
| void | intro (N5110 &lcd) |
| function for showing how to start game | |
| void | draw (N5110 &lcd, Gamepad &pad, DigitalOut &b, DigitalOut &x) |
| main draw function that draws the question on the screen and which option is the cursor on(rectangle filled black) it also allows to switch between answer options selecting the desired one | |
| void | drawselect (N5110 &lcd) |
| fills black the option rectangle selected while the rest of them are transparent filled | |
| void | drawquestion (N5110 &lcd) |
| draws the appropiate question for each state | |
| void | gameover (N5110 &lcd) |
| draws the points penalty due to the failed answer | |
| void | transition (N5110 &lcd) |
| draws the message between levels indicating in which level are you, your score and the subject of the next question | |
| void | game (N5110 &lcd, Gamepad &pad, DigitalOut &a, DigitalOut &start, DigitalOut &b, DigitalOut &x) |
| assemblies the game | |
| void | init () |
| sets initial state values | |
| int | score () |
Detailed Description
taurolib Class
Library for the fith game, Tauro Revision 1.3
- Date:
- May 2017
Definition at line 16 of file taurolib.h.
Constructor & Destructor Documentation
| taurolib | ( | ) |
Constructor.
structure for switching between answer options
Definition at line 7 of file taurolib.cpp.
Member Function Documentation
main draw function that draws the question on the screen and which option is the cursor on(rectangle filled black) it also allows to switch between answer options selecting the desired one
- Parameters:
-
pad/b/x switches between options lcd draws in the screen
Definition at line 160 of file taurolib.cpp.
| void drawquestion | ( | N5110 & | lcd ) |
draws the appropiate question for each state
- Parameters:
-
lcd print in the screen
Definition at line 36 of file taurolib.cpp.
| void drawselect | ( | N5110 & | lcd ) |
fills black the option rectangle selected while the rest of them are transparent filled
- Parameters:
-
lcd prints in the screen
Definition at line 139 of file taurolib.cpp.
| void game | ( | N5110 & | lcd, |
| Gamepad & | pad, | ||
| DigitalOut & | a, | ||
| DigitalOut & | start, | ||
| DigitalOut & | b, | ||
| DigitalOut & | x | ||
| ) |
assemblies the game
- Parameters:
-
pad/b/x answer selector start starts game a selects answer
Definition at line 443 of file taurolib.cpp.
| void gameover | ( | N5110 & | lcd ) |
draws the points penalty due to the failed answer
- Parameters:
-
lcd prints in screen
Definition at line 312 of file taurolib.cpp.
| void init | ( | ) |
sets initial state values
Definition at line 26 of file taurolib.cpp.
| void intro | ( | N5110 & | lcd ) |
function for showing how to start game
- Parameters:
-
lcd neccesary for displaying on the screen
Definition at line 304 of file taurolib.cpp.
| int score | ( | ) |
- Returns:
- score
Definition at line 438 of file taurolib.cpp.
| void transition | ( | N5110 & | lcd ) |
draws the message between levels indicating in which level are you, your score and the subject of the next question
- Parameters:
-
lcd prints in screen
Definition at line 186 of file taurolib.cpp.
Generated on Wed Jul 13 2022 07:38:17 by
1.7.2
