Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a021f72a2 | ||
|
|
560cc4a762 | ||
|
|
0d6403a0b8 |
+2
-1
@@ -8,4 +8,5 @@ out/
|
||||
*.o
|
||||
*.obj
|
||||
*.log
|
||||
idea/
|
||||
.idea/
|
||||
|
||||
|
||||
+11
-4
@@ -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);
|
||||
|
||||
@@ -142,16 +143,22 @@ int main()
|
||||
fabs(mouse.y - screenPos.y) < 40)
|
||||
{
|
||||
c.FlipForward(); //<-----Animation Start
|
||||
//Neu Counter
|
||||
counter++;
|
||||
|
||||
if (state == GameState::Idle) //Neu (Ü4)
|
||||
counter++;
|
||||
if (state == GameState::Idle) //neu Ü4
|
||||
{
|
||||
state = GameState::OneFlipped;
|
||||
else
|
||||
|
||||
}
|
||||
else if (state == GameState::OneFlipped && first && &c != first)
|
||||
{
|
||||
state = GameState::LockInput;
|
||||
|
||||
}
|
||||
|
||||
break; // 🔒 nur EIN Würfel pro Klick
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user