This commit is contained in:
2025-12-15 12:17:58 +01:00
+10 -4
View File
@@ -142,16 +142,22 @@ 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;
else counter++;
}
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
} }
} }
} }
} }