counter fix (again)

This commit is contained in:
Kristoph Laemmerzahl 2025-12-15 12:29:09 +01:00
parent 560cc4a762
commit 3a021f72a2

View File

@ -135,6 +135,7 @@ int main()
std::cout<<("State missing");
if (!c.IsFlipped() && !c.IsMatched()) //<--------------- Zustandwechsel anpassen
{
Vector2 screenPos = GetWorldToScreen(
{c.GetPosition().x, c.GetPosition().y, c.GetPosition().z}, camera);
@ -143,16 +144,16 @@ int main()
{
c.FlipForward(); //<-----Animation Start
counter++;
if (state == GameState::Idle) //neu Ü4
{
state = GameState::OneFlipped;
counter++;
}
else if (state == GameState::OneFlipped && first && &c != first)
{
state = GameState::LockInput;
counter++;
}
break; // 🔒 nur EIN Würfel pro Klick