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: Gamepad N5110 Pokemon mbed
Fork of 2645_Game_Project_2 by
Diff: main.cpp
- 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