Mark van Renswoude
ba58eb93c0
- Button library - State handling and transitions - Default state: dual counter display - User unknown state: static for now - Lost the game state: static for now
19 lines
302 B
C++
19 lines
302 B
C++
#include "StateLoseTheGame.h"
|
|
#include "Globals.h"
|
|
#include "StateDefault.h"
|
|
|
|
|
|
void LoseTheGameState::setup()
|
|
{
|
|
}
|
|
|
|
void LoseTheGameState::loop()
|
|
{
|
|
if (buttonA->pressed() || buttonB->pressed())
|
|
{
|
|
setCurrentState(new DefaultState());
|
|
}
|
|
|
|
char text[] = "Lost";
|
|
display->writeTextLeft(text);
|
|
} |