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 FXOS8700CQ mbed-rtos
Diff: Game_one/Game_one.h
- Revision:
- 20:50ad2dad310d
- Parent:
- 19:903d67bb0dea
- Child:
- 25:31111e6e13ad
--- a/Game_one/Game_one.h Sun Apr 21 12:14:59 2019 +0000
+++ b/Game_one/Game_one.h Mon Apr 22 10:32:40 2019 +0000
@@ -133,6 +133,19 @@
*/
void gameover(N5110 &lcd, Gamepad &pad);
+ /**
+ * @brief Moving background
+ * @param position x (int)
+ * @details The private function draws the moving background according to parameter x
+ */
+ void draw_background(int x, N5110 &lcd);
+
+ /**
+ * @brief Stationary background
+ * @details The private function draws the stationary background for further objects
+ */
+ void background(N5110 &lcd);
+
Score music;
Game_one_cha _p1;
@@ -142,6 +155,7 @@
// x positions of the player
int _p1x;
+ int _x;
Coin _coin;
Object _block;