fixed game logic

This commit is contained in:
2025-03-23 21:41:37 +01:00
parent 507bc9cc86
commit 38008e00bc
7 changed files with 90 additions and 59 deletions

View File

@@ -77,8 +77,9 @@ Since this game uses polyomino of high sizes which are very unplayable, we will
5. Do the same as step 4 but now we move the piece one line up every time
6. Cancel the rotation
Kicking is primarly designed for rotating, but it is also applied when a piece spawns into a wall.
0° rotations will first try to move the piece one position down, and if it can't try kicking the piece, only registering a kick if the piece couldn't move down.
_Note: at step 3, the direction which is checked first is actually the last movement done by the player._
Kicking is primarly designed for rotating, but there is also a 0° rotation applied when a piece spawns into a wall.
0° rotations will first try to move the piece one position down, and if it can't, try kicking the piece, only registering a kick if the piece couldn't move down.
## Detecting spins