Compare commits
No commits in common. "599b2b8dacc28490fcf1cc0cf6bb86d5281784ae" and "b6d09f0e598780980abaf48b4f5b3a21153d3fa5" have entirely different histories.
599b2b8dac
...
b6d09f0e59
14
src/main.cpp
14
src/main.cpp
@ -142,22 +142,16 @@ int main()
|
|||||||
fabs(mouse.y - screenPos.y) < 40)
|
fabs(mouse.y - screenPos.y) < 40)
|
||||||
{
|
{
|
||||||
c.FlipForward(); //<-----Animation Start
|
c.FlipForward(); //<-----Animation Start
|
||||||
|
//Neu Counter
|
||||||
|
counter++;
|
||||||
|
|
||||||
|
if (state == GameState::Idle) //Neu (Ü4)
|
||||||
if (state == GameState::Idle) //neu Ü4
|
|
||||||
{
|
|
||||||
state = GameState::OneFlipped;
|
state = GameState::OneFlipped;
|
||||||
counter++;
|
else
|
||||||
}
|
|
||||||
else if (state == GameState::OneFlipped && first && &c != first)
|
|
||||||
{
|
|
||||||
state = GameState::LockInput;
|
state = GameState::LockInput;
|
||||||
counter++;
|
|
||||||
}
|
|
||||||
|
|
||||||
break; // 🔒 nur EIN Würfel pro Klick
|
break; // 🔒 nur EIN Würfel pro Klick
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user