Some edit for better play

This commit is contained in:
haitem 2022-01-30 03:30:37 +01:00
parent 6f71f6225e
commit 209409e901
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -47,7 +47,7 @@ public class ProceduralGeneration : MonoBehaviour
List<GameObject> 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<GameObject> levelBlocksSpawnTemp = new List<GameObject>();
// Debug.Log("Building LOOP");