From 209409e9019b3a360e70c189a6dfe22bc7a8eecb Mon Sep 17 00:00:00 2001 From: haitem Date: Sun, 30 Jan 2022 03:30:37 +0100 Subject: [PATCH] Some edit for better play --- Assets/Scripts/PlayerController.cs | 4 ++-- Assets/Scripts/ProceduralGeneration.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index e569d00..2731f4a 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -85,7 +85,7 @@ public class PlayerController : MonoBehaviour } float curSpeedX = canMove ? (currentSpeed + speedModifier) : 0; - float curSpeedY = canMove ? (currentSpeed + 5f + speedModifier) * Input.GetAxis("Horizontal") : 0; + float curSpeedY = canMove ? (currentSpeed + currentSpeed + speedModifier) * Input.GetAxis("Horizontal") : 0; moveDirection = (platformForward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime); @@ -157,7 +157,7 @@ public class PlayerController : MonoBehaviour axis = Vector3.Cross(-transform.up, saveDirection); angle = Mathf.Atan2(Vector3.Magnitude(axis), Vector3.Dot(-transform.up, saveDirection)); - transform.RotateAround(axis, angle * Time.deltaTime * 5f); + transform.RotateAround(axis, angle * Time.deltaTime * 8f); } if (pullObject != null) diff --git a/Assets/Scripts/ProceduralGeneration.cs b/Assets/Scripts/ProceduralGeneration.cs index b2ea1a5..7aa4cea 100644 --- a/Assets/Scripts/ProceduralGeneration.cs +++ b/Assets/Scripts/ProceduralGeneration.cs @@ -47,7 +47,7 @@ public class ProceduralGeneration : MonoBehaviour List spawnSpiralOfPlatforms(GameObject lastObject, GameObject objToSpawn, GameObject parentLevelObject) { // configuration: - float horizontalDistancePerPlatform = (float)Random.Range(1.0f, 3.0f); + float horizontalDistancePerPlatform = (float)Random.Range(2.0f, 3.0f); List levelBlocksSpawnTemp = new List(); // Debug.Log("Building LOOP");