ELEC2645 (2016/17) / Mbed 2 deprecated 2645_Game_Project_2

Dependencies:   Gamepad N5110 Pokemon mbed

Fork of 2645_Game_Project_2 by ELEC2645 (2016/17)

Revision:
0:cd3f75767e71
Child:
1:af881f58c4f9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 20 15:06:05 2017 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+#include "Gamepad.h"
+#include "N5110.h"
+#include "Pokemon.h"
+
+//rewritten code to implement new/better ideas. part of the code is same as before but lots of changes were needed.
+
+//-------------------------------- objects -------------------------------------
+N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
+Gamepad pad;
+Pokemon pk;
+//--------------------------- Structs/Typedefs ---------------------------------
+struct joyInput {
+    Direction d; //direction of joystick to navigate menu's
+};
+
+typedef enum State {START, PARTNER, MENU, FIGHT, POKEMON, SETTINGS} Gamepage;
+//assigning names to different states
+
+void init();
+void drawStart();
+void drawPartner();
+float drawMenu();
+void drawFight();
+void drawPoke();
+void select();
+void menu();
+void settings();
\ No newline at end of file