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: mbed FATFileSystem
Diff: Game_Manager/Game_Manager.cpp
- Revision:
- 15:3d29fb195958
- Parent:
- 14:165fff6d1854
- Child:
- 17:7d4d8905b608
--- a/Game_Manager/Game_Manager.cpp Mon May 06 20:53:37 2019 +0000 +++ b/Game_Manager/Game_Manager.cpp Tue May 07 03:20:24 2019 +0000 @@ -75,29 +75,21 @@ if (Random == 0 || Random == 1) { wav->intWD(path, true); SNC->Scenesp(*lcd,*CM,1,35,29,Fd,0,*wav); - wav->intWD(path, true); - SNC->Scenesp(*lcd,*CM,2,61,17,Lt,0,*wav); } else { wav->intWD(path, true); SNC->Scenesp(*lcd,*CM,3,58,26,Bd,0,*wav); } + if (Random == 2 && SNC->get_dead()) { + //go death + } else if ((Random == 2 && !SNC->get_dead()) || (Random != 2 && SNC->get_dead())) { + SNC->set_dead(false); + wav->intWD(path, true); + SNC->Scenesp(*lcd,*CM,4,69,19,Rt,0,*wav); + } else { + wav->intWD(path, true); + SNC->Scenesp(*lcd,*CM,2,61,17,Lt,0,*wav); + } } - /* - const char *path; - path = "/sd/Game-Files/AudBin/play1.wav"; - wav.intWD(path, true); - Time.start(); - SNC.Scenesp(lcd,CM,0,40,20,Fd,0,wav); - Time.stop(); - int Random = (int)Time.read(); - Random = Random % 3; - wav.intWD(path, true); - SNC.Scenesp(lcd,CM,1,35,29,Fd,Random,wav); - wav.intWD(path, true); - SNC.Scenesp(lcd,CM,2,61,17,Lt,Random,wav); - wav.intWD(path, true); - SNC.Scenesp(lcd,CM,3,58,26,Bd,0,wav); - */ bool Game_Manager::check() { FILE *bmp;