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:
2:464c7e62d97d
Child:
4:5bc9c4363d31
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Game_one/Game_one.h	Wed Apr 03 03:06:00 2019 +0000
@@ -0,0 +1,59 @@
+#ifndef GAME_ONE_H
+#define GAME_ONE_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Coin.h"
+#include "Object.h"
+#include "Game_one_cha.h"
+#include "Score.h"
+
+class Game_one
+{
+
+public:
+    Game_one();
+    ~Game_one();
+
+    void init(int speed, int cha, int r);
+    void render(N5110 &lcd, int cha);
+    void read_input(Gamepad &pad);
+    void update(Gamepad &pad, N5110 &lcd);
+    void draw(N5110 &lcd, int cha);
+    int get_count();
+    int update_alt();
+    void set_alt(int alt);
+    int print_scores(N5110 &lcd);
+    
+private:
+
+    void check_player_collect(Gamepad &pad);
+    void check_player_collide(Gamepad &pad, N5110 &lcd);
+    void check_miss_coin(Gamepad &pad);
+    void check_miss_block(Gamepad &pad);
+    void gameover(N5110 &lcd, Gamepad &pad);
+    void set_count(int count);
+    
+    Score music;
+    Game_one_cha _p1;
+
+    int _speed;
+    int _cha;
+    int _rand;
+    
+    // x positions of the player
+    int _p1x;
+    
+    Coin _coin;
+    Object _block;
+    
+    Direction _d;
+    float _mag;
+    int _count;
+    int _alt;
+    int _type;
+
+};
+
+#endif
\ No newline at end of file