diff --git a/Assets/Scripts/PlayerMovement.cs b/Assets/Scripts/PlayerMovement.cs new file mode 100644 index 0000000..34366a5 --- /dev/null +++ b/Assets/Scripts/PlayerMovement.cs @@ -0,0 +1,23 @@ +using UnityEngine; +using System.Collections; + +public class PlayerMovement : MonoBehaviour { + + public float speed = 0f; + public float turn = 0f; + //private Rigidbody rb; + + + + // Update is called once per frame + void Update () { + if (Input.GetKey(KeyCode.UpArrow)) + transform.Translate(Vector3.forward * speed * Time.deltaTime); + if (Input.GetKey(KeyCode.DownArrow)) + transform.Translate(-Vector3.forward * speed * Time.deltaTime); + if (Input.GetKey(KeyCode.LeftArrow)) + transform.Rotate(Vector3.up, -turn * Time.deltaTime); + if (Input.GetKey(KeyCode.RightArrow)) + transform.Rotate(Vector3.up, turn * Time.deltaTime); + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..280c0dc --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +##Team MeltedBananas @ OJam 2016 + +####Theme +*Stay a while and listen* +####Diversifier +*Actions speak louder than words - Do not use words* + +###Summary +Core gameplay principles +* 3D +* Minimal look +* Runner game +* You do not see the level unless you stop moving + +###Task list + +* Playable character implementation + * First person view (w/ controls of view and headbobbing) *Assigned to Alex* + * Movement (jumping, etc) *Assigned to Kerby* +* Gameplay mechanics + * Fog of war + * Falling tiles *Assigned to Hugo* + * Stay a while mechanic *Assigned to Antoine* + +###Possible traps/pick ups +* Slow down time +* Transparent structures +