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.
Revision 2:748d7682d43c, committed 2016-05-05
- Comitter:
- JasonYang
- Date:
- Thu May 05 09:51:40 2016 +0000
- Parent:
- 1:e28c7063fcd6
- Commit message:
- el15qy; SID:200986056
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| main.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r e28c7063fcd6 -r 748d7682d43c main.cpp
--- a/main.cpp Thu May 05 09:12:43 2016 +0000
+++ b/main.cpp Thu May 05 09:51:40 2016 +0000
@@ -1,5 +1,11 @@
#include "main.h"
-
+// this game is similar to flappy bird
+// the ball will always drop so player should use joystick up
+// if the ball touch the ground or half ball over the highest line, the game will finish
+// if the ball touch the line, the game will finish
+// press button could stop the game and press again to play
+// when the game start, the led will fliker
+// when the game finish, the buzzer will sound
int main()
{
// first need to initialise display+
diff -r e28c7063fcd6 -r 748d7682d43c main.h --- a/main.h Thu May 05 09:12:43 2016 +0000 +++ b/main.h Thu May 05 09:51:40 2016 +0000 @@ -1,7 +1,6 @@ /** @file main.h @brief Header file containing functions prototypes, defines and global variables. -@brief Shows examples of creating Doxygen documentation. @brief Acknowledgements to Craig A. Evans's N5110 Library. @brief Revision 1.0. @author YangQing