Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.

Dependencies:   mbed FXOS8700CQ mbed-rtos

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;