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@9:e6566d09f087, 2020-05-17 (annotated)
- Committer:
- KaifK
- Date:
- Sun May 17 23:00:04 2020 +0000
- Revision:
- 9:e6566d09f087
- Parent:
- 8:5ede90f99a27
- Child:
- 20:c697902b844f
random commit (cant afford to lose this code again);
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 | 3:f86c1cf90d0d | 8 | |
KaifK | 3:f86c1cf90d0d | 9 | |
KaifK | 3:f86c1cf90d0d | 10 | class Splash { |
KaifK | 9:e6566d09f087 | 11 | private: |
KaifK | 9:e6566d09f087 | 12 | //objects |
KaifK | 9:e6566d09f087 | 13 | N5110 *_lcd; |
KaifK | 9:e6566d09f087 | 14 | Ball *_ball; |
KaifK | 9:e6566d09f087 | 15 | |
KaifK | 3:f86c1cf90d0d | 16 | public: |
KaifK | 3:f86c1cf90d0d | 17 | /** Constructor */ |
KaifK | 9:e6566d09f087 | 18 | Splash(N5110 &lcd, Ball &ball); |
KaifK | 3:f86c1cf90d0d | 19 | |
KaifK | 3:f86c1cf90d0d | 20 | /** Destructor */ |
KaifK | 3:f86c1cf90d0d | 21 | ~Splash(); |
KaifK | 3:f86c1cf90d0d | 22 | |
KaifK | 9:e6566d09f087 | 23 | void displayInfo(); |
KaifK | 3:f86c1cf90d0d | 24 | |
KaifK | 9:e6566d09f087 | 25 | void playIntro(); |
KaifK | 3:f86c1cf90d0d | 26 | |
KaifK | 9:e6566d09f087 | 27 | void drawLogo(int x, int y); |
KaifK | 4:08a0ff6668df | 28 | |
KaifK | 3:f86c1cf90d0d | 29 | |
KaifK | 3:f86c1cf90d0d | 30 | private: |
KaifK | 9:e6566d09f087 | 31 | void draw_name(); |
KaifK | 9:e6566d09f087 | 32 | |
KaifK | 9:e6566d09f087 | 33 | void player_enter_animation(); |
KaifK | 9:e6566d09f087 | 34 | |
KaifK | 9:e6566d09f087 | 35 | void kick_animation(); |
KaifK | 9:e6566d09f087 | 36 | |
KaifK | 9:e6566d09f087 | 37 | void shot_animation(); |
KaifK | 9:e6566d09f087 | 38 | |
KaifK | 9:e6566d09f087 | 39 | void contrast_slide(); |
KaifK | 3:f86c1cf90d0d | 40 | |
KaifK | 3:f86c1cf90d0d | 41 | }; |
KaifK | 3:f86c1cf90d0d | 42 | |
KaifK | 9:e6566d09f087 | 43 | |
KaifK | 4:08a0ff6668df | 44 | |
KaifK | 4:08a0ff6668df | 45 | #endif |
KaifK | 3:f86c1cf90d0d | 46 |