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:
parent
d37e365d0e
commit
8454afe508
@ -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)
|
||||
|
@ -8,6 +8,7 @@ TagManager:
|
||||
- PickupObject
|
||||
- Mole
|
||||
- Container
|
||||
- Bomb
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
|
Loading…
Reference in New Issue
Block a user