Compare commits

...

1 Commits

Author SHA1 Message Date
3a021f72a2 counter fix (again) 2025-12-15 12:29:09 +01:00

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