Catch: Added bombs to the game, lowered time, fixed double point error.

Movement: Fixed player moving faster when moving diagonally
This commit is contained in:
Santi 2024-06-28 13:23:30 +01:00
parent d37e365d0e
commit 8454afe508
2 changed files with 12 additions and 0 deletions

View File

@ -57,6 +57,17 @@ public class Movement : MonoBehaviour
{
moveDirection.y = jumpForce;
}
//If player is moving diagonally, reduce speed
if (forwards != 0 && right != 0 || forwards != 0 && left != 0 || backwards != 0 && right != 0 || backwards != 0 && left != 0)
{
moveDirection *= 0.7f;
}
else
{
moveDirection *= 1.0f;
}
}
if(hammer)

View File

@ -8,6 +8,7 @@ TagManager:
- PickupObject
- Mole
- Container
- Bomb
layers:
- Default
- TransparentFX