mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-06-10 22:20:40 +02:00
fix: rotation, smooth camera, ship portal collider, obstacle block collider, player rigid body detection, dynamic ground (#54)
This commit is contained in:
@ -16,7 +16,7 @@ public class ShipGameMode : IGameMode
|
||||
|
||||
bool jumpPressed = Input.GetKey(JumpKey);
|
||||
|
||||
if (player.HasStarted && jumpPressed)
|
||||
if (jumpPressed)
|
||||
{
|
||||
Jump(player);
|
||||
|
||||
@ -49,7 +49,9 @@ public class ShipGameMode : IGameMode
|
||||
{
|
||||
float angle = player.Transform.rotation.eulerAngles.z;
|
||||
if (angle > 180f)
|
||||
{
|
||||
angle -= 360f;
|
||||
}
|
||||
return angle;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user