added more walls n stuff

This commit is contained in:
logzinga 2023-03-03 14:00:31 +11:00
parent 018ebef7ba
commit 675e5bfb89
2 changed files with 2403 additions and 111 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,10 +15,11 @@ public class PlayerMovement : NetworkBehaviour
Vector3 moveDir = new Vector3(0, 0, 0); Vector3 moveDir = new Vector3(0, 0, 0);
if (Input.GetKey(KeyCode.W)) moveDir.z = +1f; if (Input.GetKey(KeyCode.W)) moveDir.z = +3f;
if (Input.GetKey(KeyCode.S)) moveDir.z = -1f; if (Input.GetKey(KeyCode.S)) moveDir.z = -3f;
if (Input.GetKey(KeyCode.A)) moveDir.x = -1f; if (Input.GetKey(KeyCode.A)) moveDir.x = -3f;
if (Input.GetKey(KeyCode.D)) moveDir.x = +1f; if (Input.GetKey(KeyCode.D)) moveDir.x = +3f;
if (Input.GetKey(KeyCode.Space)) moveDir.y = +3f;
float moveSpeed = 3f; float moveSpeed = 3f;
transform.position += moveDir * moveSpeed * Time.deltaTime; transform.position += moveDir * moveSpeed * Time.deltaTime;