ELEC2645 (2015/16) / Mbed 2 deprecated Flappyball

Dependencies:   N5110 mbed

Files at this revision

API Documentation at this revision

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