Game for Leeds University Gamepad for the FRDM-K64F: Game is a RPG Horror Title.

Dependencies:   mbed FATFileSystem

main.cpp

Committer:
rottenegg
Date:
2019-05-10
Revision:
26:716bcd47f3ca
Parent:
24:7f26feb4666d

File content as of revision 26:716bcd47f3ca:

/*
ELEC2645 Embedded Systems Project
School of Electronic & Electrical Engineering
University of Leeds
Name:Saad Tayyab
Username:el17st
Student ID Number:201145512
Date: 18/04/2019
*/

//Note Game Will Not Run without Game_Files Folder in SD Card and all required Files

#include "mbed.h"

#include "Game_Manager.h"

//Main Constructor to allow easy Pin reassignments
Game_Manager GM(PTE3, PTE1, PTE2, PTE4, PTC9,PTC0,PTC7,PTD2,PTD1,PTC11, PTB9,PTB11,PTB10,PTC10,PTD0,PTC5); 

int main() {
    if (!GM.boot_error()) { //File Checks
        while(1) {
            GM.menu();      //Splash Screen
            GM.tutorial();  //Tutorial Screens
            GM.main();     //Main Game
        }
    }
}