
Game for Leeds University Gamepad for the FRDM-K64F: Game is a RPG Horror Title.
Dependencies: mbed FATFileSystem
main.cpp@11:7f3e9bc7366d, 2019-05-05 (annotated)
- Committer:
- rottenegg
- Date:
- Sun May 05 03:45:29 2019 +0000
- Revision:
- 11:7f3e9bc7366d
- Parent:
- 10:4fda7b01484a
- Child:
- 12:ff8d26124c38
WDplayer: Added new ISR Ticker compatible Functions and updated Documents.
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 | 0:af8236e47084 | 11 | #include "mbed.h" |
rottenegg | 7:cbec3402b4e3 | 12 | #include "WDplayer.h" |
rottenegg | 8:e3a76a808a4c | 13 | #include "SDFileSystem.h" |
rottenegg | 7:cbec3402b4e3 | 14 | #include "Bitmap.h" |
rottenegg | 7:cbec3402b4e3 | 15 | #include "CaMove.h" |
rottenegg | 8:e3a76a808a4c | 16 | #include "SceneCreator.h" |
rottenegg | 8:e3a76a808a4c | 17 | |
rottenegg | 8:e3a76a808a4c | 18 | SDFileSystem sd(PTE3, PTE1, PTE2, PTE4, "sd"); |
rottenegg | 8:e3a76a808a4c | 19 | N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); |
rottenegg | 8:e3a76a808a4c | 20 | CaMove CM(PTB9,PTB11,PTB10); |
rottenegg | 9:ac396c818874 | 21 | SceneCreator SNC(PTD0); |
rottenegg | 10:4fda7b01484a | 22 | Timer Time; |
rottenegg | 8:e3a76a808a4c | 23 | |
rottenegg | 8:e3a76a808a4c | 24 | int main() { |
rottenegg | 8:e3a76a808a4c | 25 | lcd.init(); |
rottenegg | 10:4fda7b01484a | 26 | Time.start(); |
rottenegg | 10:4fda7b01484a | 27 | SNC.Scenesp(lcd,CM,0,40,20,Fd,0); |
rottenegg | 10:4fda7b01484a | 28 | Time.stop(); |
rottenegg | 10:4fda7b01484a | 29 | int Random = (int)Time.read(); |
rottenegg | 10:4fda7b01484a | 30 | Random = Random % 3; |
rottenegg | 10:4fda7b01484a | 31 | SNC.Scenesp(lcd,CM,1,35,29,Fd,Random); |
rottenegg | 10:4fda7b01484a | 32 | SNC.Scenesp(lcd,CM,2,61,17,Lt,Random); |
rottenegg | 10:4fda7b01484a | 33 | SNC.Scenesp(lcd,CM,3,58,26,Bd,0); |
rottenegg | 8:e3a76a808a4c | 34 | |
rottenegg | 8:e3a76a808a4c | 35 | } |