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
SplashScreen/Splash.h@20:c697902b844f, 2020-05-24 (annotated)
- Committer:
- KaifK
- Date:
- Sun May 24 17:40:56 2020 +0000
- Revision:
- 20:c697902b844f
- Parent:
- 9:e6566d09f087
- Child:
- 25:467d8fd0fec4
music added, high shot bug fixed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KaifK | 3:f86c1cf90d0d | 1 | #ifndef SPLASH_H |
KaifK | 3:f86c1cf90d0d | 2 | #define SPLASH_H |
KaifK | 3:f86c1cf90d0d | 3 | |
KaifK | 3:f86c1cf90d0d | 4 | #include "mbed.h" |
KaifK | 3:f86c1cf90d0d | 5 | #include "Gamepad.h" |
KaifK | 3:f86c1cf90d0d | 6 | #include "N5110.h" |
KaifK | 3:f86c1cf90d0d | 7 | #include "Ball.h" |
KaifK | 20:c697902b844f | 8 | #include "Sprites.h" |
KaifK | 3:f86c1cf90d0d | 9 | |
KaifK | 3:f86c1cf90d0d | 10 | |
KaifK | 3:f86c1cf90d0d | 11 | class Splash { |
KaifK | 9:e6566d09f087 | 12 | private: |
KaifK | 9:e6566d09f087 | 13 | //objects |
KaifK | 9:e6566d09f087 | 14 | N5110 *_lcd; |
KaifK | 9:e6566d09f087 | 15 | Ball *_ball; |
KaifK | 9:e6566d09f087 | 16 | |
KaifK | 3:f86c1cf90d0d | 17 | public: |
KaifK | 3:f86c1cf90d0d | 18 | /** Constructor */ |
KaifK | 9:e6566d09f087 | 19 | Splash(N5110 &lcd, Ball &ball); |
KaifK | 3:f86c1cf90d0d | 20 | |
KaifK | 3:f86c1cf90d0d | 21 | /** Destructor */ |
KaifK | 3:f86c1cf90d0d | 22 | ~Splash(); |
KaifK | 3:f86c1cf90d0d | 23 | |
KaifK | 9:e6566d09f087 | 24 | void displayInfo(); |
KaifK | 3:f86c1cf90d0d | 25 | |
KaifK | 9:e6566d09f087 | 26 | void playIntro(); |
KaifK | 3:f86c1cf90d0d | 27 | |
KaifK | 9:e6566d09f087 | 28 | void drawLogo(int x, int y); |
KaifK | 4:08a0ff6668df | 29 | |
KaifK | 3:f86c1cf90d0d | 30 | |
KaifK | 3:f86c1cf90d0d | 31 | private: |
KaifK | 9:e6566d09f087 | 32 | void draw_name(); |
KaifK | 9:e6566d09f087 | 33 | |
KaifK | 9:e6566d09f087 | 34 | void player_enter_animation(); |
KaifK | 9:e6566d09f087 | 35 | |
KaifK | 9:e6566d09f087 | 36 | void kick_animation(); |
KaifK | 9:e6566d09f087 | 37 | |
KaifK | 9:e6566d09f087 | 38 | void shot_animation(); |
KaifK | 9:e6566d09f087 | 39 | |
KaifK | 9:e6566d09f087 | 40 | void contrast_slide(); |
KaifK | 3:f86c1cf90d0d | 41 | |
KaifK | 3:f86c1cf90d0d | 42 | }; |
KaifK | 3:f86c1cf90d0d | 43 | |
KaifK | 9:e6566d09f087 | 44 | |
KaifK | 4:08a0ff6668df | 45 | |
KaifK | 4:08a0ff6668df | 46 | #endif |
KaifK | 3:f86c1cf90d0d | 47 |