yr
play.h@0:de980644a94b, 2021-03-30 (annotated)
- Committer:
- tangguangmin
- Date:
- Tue Mar 30 14:11:21 2021 +0000
- Revision:
- 0:de980644a94b
yrt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tangguangmin | 0:de980644a94b | 1 | #ifndef PLAY_H |
tangguangmin | 0:de980644a94b | 2 | #define PLAY_H |
tangguangmin | 0:de980644a94b | 3 | |
tangguangmin | 0:de980644a94b | 4 | #include "mbed.h" |
tangguangmin | 0:de980644a94b | 5 | #include "N5110.h" |
tangguangmin | 0:de980644a94b | 6 | |
tangguangmin | 0:de980644a94b | 7 | #include "monster.h" |
tangguangmin | 0:de980644a94b | 8 | #include "shapes.h" |
tangguangmin | 0:de980644a94b | 9 | #include "main.h" |
tangguangmin | 0:de980644a94b | 10 | |
tangguangmin | 0:de980644a94b | 11 | static int score; |
tangguangmin | 0:de980644a94b | 12 | static int best_score = 0; |
tangguangmin | 0:de980644a94b | 13 | |
tangguangmin | 0:de980644a94b | 14 | void initAll(); |
tangguangmin | 0:de980644a94b | 15 | |
tangguangmin | 0:de980644a94b | 16 | void get_start(N5110 &lcd); |
tangguangmin | 0:de980644a94b | 17 | |
tangguangmin | 0:de980644a94b | 18 | void store_score(); |
tangguangmin | 0:de980644a94b | 19 | |
tangguangmin | 0:de980644a94b | 20 | void show_score(N5110 &lcd, DigitalIn &button_A); |
tangguangmin | 0:de980644a94b | 21 | |
tangguangmin | 0:de980644a94b | 22 | void game_begin(N5110 &lcd, DigitalIn &button_A, DigitalIn &button_B, DigitalIn &button_C, DigitalIn &button_D); |
tangguangmin | 0:de980644a94b | 23 | |
tangguangmin | 0:de980644a94b | 24 | |
tangguangmin | 0:de980644a94b | 25 | |
tangguangmin | 0:de980644a94b | 26 | |
tangguangmin | 0:de980644a94b | 27 | |
tangguangmin | 0:de980644a94b | 28 | |
tangguangmin | 0:de980644a94b | 29 | #endif |