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.
Diff: main.cpp
- Revision:
- 2:748d7682d43c
- Parent:
- 1:e28c7063fcd6
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+