diff --git a/src/main.cpp b/src/main.cpp index 98f6afd..8c4f8f1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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