Game for Leeds University Gamepad for the FRDM-K64F: Game is a RPG Horror Title.
Dependencies: mbed FATFileSystem
main.cpp@24:7f26feb4666d, 2019-05-09 (annotated)
- Committer:
- rottenegg
- Date:
- Thu May 09 06:54:00 2019 +0000
- Revision:
- 24:7f26feb4666d
- Parent:
- 21:f3b0ce18b44f
- Child:
- 26:716bcd47f3ca
Changed Main added Comment
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rottenegg | 0:af8236e47084 | 1 | /* |
rottenegg | 0:af8236e47084 | 2 | ELEC2645 Embedded Systems Project |
rottenegg | 0:af8236e47084 | 3 | School of Electronic & Electrical Engineering |
rottenegg | 0:af8236e47084 | 4 | University of Leeds |
rottenegg | 0:af8236e47084 | 5 | Name:Saad Tayyab |
rottenegg | 0:af8236e47084 | 6 | Username:el17st |
rottenegg | 0:af8236e47084 | 7 | Student ID Number:201145512 |
rottenegg | 0:af8236e47084 | 8 | Date: 18/04/2019 |
rottenegg | 0:af8236e47084 | 9 | */ |
rottenegg | 0:af8236e47084 | 10 | |
rottenegg | 24:7f26feb4666d | 11 | //Note Game Will Not Run without Game_Files Folder in SD Card and all required Files |
rottenegg | 24:7f26feb4666d | 12 | |
rottenegg | 0:af8236e47084 | 13 | #include "mbed.h" |
rottenegg | 21:f3b0ce18b44f | 14 | |
rottenegg | 14:165fff6d1854 | 15 | #include "Game_Manager.h" |
rottenegg | 8:e3a76a808a4c | 16 | |
rottenegg | 21:f3b0ce18b44f | 17 | //Main Constructor to allow easy Pin reassignments |
rottenegg | 21:f3b0ce18b44f | 18 | Game_Manager GM(PTE3, PTE1, PTE2, PTE4, PTC9,PTC0,PTC7,PTD2,PTD1,PTC11, PTB9,PTB11,PTB10,PTC10,PTD0,PTC5); |
rottenegg | 8:e3a76a808a4c | 19 | |
rottenegg | 8:e3a76a808a4c | 20 | int main() { |
rottenegg | 21:f3b0ce18b44f | 21 | if (!GM.boot_error()) { //File Checks |
rottenegg | 21:f3b0ce18b44f | 22 | GM.menu(); //Splash Screen |
rottenegg | 21:f3b0ce18b44f | 23 | GM.tutorial(); //Tutorial Screens |
rottenegg | 21:f3b0ce18b44f | 24 | GM.main(); //Main Game |
rottenegg | 21:f3b0ce18b44f | 25 | wait(1); |
rottenegg | 21:f3b0ce18b44f | 26 | NVIC_SystemReset(); //this is really cheeky I know... SOFT RESET |
rottenegg | 14:165fff6d1854 | 27 | } |
rottenegg | 21:f3b0ce18b44f | 28 | |
rottenegg | 8:e3a76a808a4c | 29 | } |