Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

Committer:
hugohu
Date:
Thu Mar 25 03:43:10 2021 +0000
Revision:
19:89c3eeb3761b
A more complex game in developing.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hugohu 19:89c3eeb3761b 1 #ifndef TITLE_SCREEN_H
hugohu 19:89c3eeb3761b 2 #define TITLE_SCREEN_H
hugohu 19:89c3eeb3761b 3
hugohu 19:89c3eeb3761b 4 #include "State.h"
hugohu 19:89c3eeb3761b 5
hugohu 19:89c3eeb3761b 6 /// @file CoverPage.h
hugohu 19:89c3eeb3761b 7
hugohu 19:89c3eeb3761b 8 /// Used to display the splash screen which is shown when turning the device on.
hugohu 19:89c3eeb3761b 9 class CoverPage : public State
hugohu 19:89c3eeb3761b 10 {
hugohu 19:89c3eeb3761b 11 public:
hugohu 19:89c3eeb3761b 12 CoverPage(StateManager* fsm, N5110 *lcd, InputManager* input, Sound* sound, ShiftReg* shiftreg)
hugohu 19:89c3eeb3761b 13 : State(fsm, lcd, input, sound, shiftreg) {init();}
hugohu 19:89c3eeb3761b 14
hugohu 19:89c3eeb3761b 15 virtual void update(float dt);
hugohu 19:89c3eeb3761b 16 virtual void render();
hugohu 19:89c3eeb3761b 17
hugohu 19:89c3eeb3761b 18 private:
hugohu 19:89c3eeb3761b 19 void init();
hugohu 19:89c3eeb3761b 20 static void btnPress();
hugohu 19:89c3eeb3761b 21 static const bool splashScreen[48][84];
hugohu 19:89c3eeb3761b 22 static bool btnWasPressed;
hugohu 19:89c3eeb3761b 23
hugohu 19:89c3eeb3761b 24 };
hugohu 19:89c3eeb3761b 25
hugohu 19:89c3eeb3761b 26 #endif