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)

main.cpp

Committer:
200923317
Date:
2017-04-20
Revision:
0:cd3f75767e71
Child:
1:af881f58c4f9

File content as of revision 0:cd3f75767e71:

#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();