Initial game launcher
This commit is contained in:
30
games/demo_game.h
Normal file
30
games/demo_game.h
Normal file
@@ -0,0 +1,30 @@
|
||||
// ============================================================================
|
||||
// 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
|
||||
Reference in New Issue
Block a user