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.
Fork of The_Children_of_Cronos_el15mggr by
aurigaslib Class Reference
aurigaslib Class More...
#include <aurigaslib.h>
Public Member Functions | |
| aurigaslib () | |
| Constructor. | |
| void | init () |
| sets positions and values to initial ones and generates new pipe random heights | |
| void | updatescr (DigitalOut &a, DigitalOut &b, DigitalOut &x, DigitalOut &y, Gamepad &pad) |
| function that allows user to jump whithin the screen moves the pipes when the pipes get out of the screen in the left they restart in the right | |
| void | draw (N5110 &lcd) |
| draws all the components and clears some pixels of the bird for improving its looking | |
| bool | touch () |
| check if any bird pixel hitted any pipe | |
| void | gameover (N5110 &lcd, Gamepad &pad, DigitalOut &l, DigitalOut &r) |
| function that displays the game over screen and allows player to restart game once restarted,all values set to original ones | |
| void | leds (Gamepad &pad) |
| function that switches only the same number of leds on as the same number of lifes the player still have left | |
| int | score () |
Detailed Description
aurigaslib Class
Library for the third game, Aurigas Revision 1.3
- Date:
- May 2017
Definition at line 35 of file aurigaslib.h.
Constructor & Destructor Documentation
| aurigaslib | ( | ) |
Constructor.
Definition at line 6 of file aurigaslib.cpp.
Member Function Documentation
| void draw | ( | N5110 & | lcd ) |
draws all the components and clears some pixels of the bird for improving its looking
- Parameters:
-
lcd for printing in the screen
Definition at line 100 of file aurigaslib.cpp.
function that displays the game over screen and allows player to restart game once restarted,all values set to original ones
- Parameters:
-
lcd for drawing into the screen l/r for restarting the game pad for putting leds off
Definition at line 51 of file aurigaslib.cpp.
| void init | ( | ) |
sets positions and values to initial ones and generates new pipe random heights
Definition at line 16 of file aurigaslib.cpp.
| void leds | ( | Gamepad & | pad ) |
function that switches only the same number of leds on as the same number of lifes the player still have left
- Parameters:
-
pad controls leds
Definition at line 42 of file aurigaslib.cpp.
| int score | ( | ) |
- Returns:
- score
Definition at line 11 of file aurigaslib.cpp.
| bool touch | ( | ) |
check if any bird pixel hitted any pipe
- Returns:
- true if the player hits the pipes
- false if he doesnt
Definition at line 81 of file aurigaslib.cpp.
| void updatescr | ( | DigitalOut & | a, |
| DigitalOut & | b, | ||
| DigitalOut & | x, | ||
| DigitalOut & | y, | ||
| Gamepad & | pad | ||
| ) |
function that allows user to jump whithin the screen moves the pipes when the pipes get out of the screen in the left they restart in the right
- Parameters:
-
a/b/x/y jump
Definition at line 124 of file aurigaslib.cpp.
Generated on Wed Jul 13 2022 07:38:17 by
1.7.2
