31 lines
772 B
C++
31 lines
772 B
C++
// ============================================================================
|
|
// DEMO GAME HEADER
|
|
// ============================================================================
|
|
// Simple demo game to test the launcher
|
|
|
|
#ifndef DEMO_GAME_H
|
|
#define DEMO_GAME_H
|
|
|
|
#include "game.h"
|
|
|
|
/**
|
|
* @brief Demo Game - Simple test game for launcher
|
|
*
|
|
* Displays a welcome message and simple instructions.
|
|
* Touch or press button to exit back to launcher.
|
|
*/
|
|
class DemoGame : public Game {
|
|
public:
|
|
DemoGame(uint16_t width, uint16_t height, LowLevelRenderer* renderer, LowLevelGUI* gui);
|
|
|
|
void init() override;
|
|
bool update(const InputEvent& event) override;
|
|
void draw() override;
|
|
|
|
private:
|
|
int tap_count;
|
|
bool exit_requested;
|
|
};
|
|
|
|
#endif // DEMO_GAME_H
|