a update
This commit is contained in:
parent
7593e4d1c8
commit
68aa8831b7
@ -2,7 +2,7 @@
|
||||
#include <algorithm>
|
||||
#include <ctime>
|
||||
//enum game
|
||||
//Ab Zeile 169 if game won
|
||||
//Ab Zeile 114 if game won
|
||||
//Ab Zeile 148 checking match?
|
||||
|
||||
void innitGame(int pairCount,
|
||||
@ -113,8 +113,10 @@ int main()
|
||||
{
|
||||
GameState state = GameState::Idle; //legen wir fest, in welchem Zustand das Spiel startet
|
||||
// Klick-Erkennung
|
||||
if (!gameWon && IsMouseButtonPressed(MOUSE_LEFT_BUTTON))
|
||||
{
|
||||
if (!gameWon
|
||||
&& state != GameState::LockInput
|
||||
&& state != GameState::CheckingMatch
|
||||
&& IsMouseButtonPressed(MOUSE_LEFT_BUTTON))
|
||||
//Neu Counter
|
||||
counter++;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user