From 0467afb8d14211a15a4b1f5729145efb59ebe08f Mon Sep 17 00:00:00 2001 From: adrenalx Date: Fri, 24 Jun 2016 21:20:32 -0400 Subject: [PATCH 1/4] Added task list and summary to README --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b427764 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +##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) + * Movement (jumping, head bob, etc) +* Gameplay mechanics + * Fog of war + * Falling tiles + * Stay a while mechanic From 3132b935acbd9167d03e5ce08a2fea4bfd50f2ee Mon Sep 17 00:00:00 2001 From: adrenalx Date: Fri, 24 Jun 2016 21:26:27 -0400 Subject: [PATCH 2/4] Update README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b427764..f7ca8b0 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,11 @@ Core gameplay principles ###Task list * Playable character implementation - * First person view (w/ controls) - * Movement (jumping, head bob, etc) + * 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 - * Stay a while mechanic + * Falling tiles *Assigned to Hugo* + * Stay a while mechanic *Assigned to Antoine* + + From a664e78f0d450bb43c00e410ca3e99fb726b009b Mon Sep 17 00:00:00 2001 From: adrenalx Date: Fri, 24 Jun 2016 21:58:51 -0400 Subject: [PATCH 3/4] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index f7ca8b0..280c0dc 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,7 @@ Core gameplay principles * Falling tiles *Assigned to Hugo* * Stay a while mechanic *Assigned to Antoine* +###Possible traps/pick ups +* Slow down time +* Transparent structures From 89d6023b21f8b6fe07df243fe385e1275b28bb28 Mon Sep 17 00:00:00 2001 From: Kerby Tineus Date: Fri, 24 Jun 2016 22:46:21 -0400 Subject: [PATCH 4/4] Mouvement du joueur --- Assets/Scripts/PlayerMovement.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Assets/Scripts/PlayerMovement.cs 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); + } +}