What to do in GameWon
This commit is contained in:
parent
68aa8831b7
commit
925b0f69ee
11
src/main.cpp
11
src/main.cpp
@ -114,15 +114,18 @@ int main()
|
|||||||
GameState state = GameState::Idle; //legen wir fest, in welchem Zustand das Spiel startet
|
GameState state = GameState::Idle; //legen wir fest, in welchem Zustand das Spiel startet
|
||||||
// Klick-Erkennung
|
// Klick-Erkennung
|
||||||
if (!gameWon
|
if (!gameWon
|
||||||
&& state != GameState::LockInput
|
&& state != GameState::LockInput //nutzlos gerade
|
||||||
&& state != GameState::CheckingMatch
|
&& state != GameState::CheckingMatch //Nutzlos gerade
|
||||||
&& IsMouseButtonPressed(MOUSE_LEFT_BUTTON))
|
&& IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) {
|
||||||
|
|
||||||
|
// nur im Idle- oder OneFlipped-Zustand wird reagiert<-------------------------------------------------
|
||||||
|
// ...
|
||||||
//Neu Counter
|
//Neu Counter
|
||||||
counter++;
|
counter++;
|
||||||
|
|
||||||
Vector2 mouse = GetMousePosition();
|
Vector2 mouse = GetMousePosition();
|
||||||
|
|
||||||
for (auto &c : cubes)
|
for (auto &c : cubes) //Hier die State Logik
|
||||||
{
|
{
|
||||||
if (!c.IsFlipped() && !c.IsMatched())
|
if (!c.IsFlipped() && !c.IsMatched())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user