This commit is contained in:
adrenalx 2016-06-25 08:26:32 -04:00
commit 45b3f1633e
2 changed files with 51 additions and 0 deletions

View File

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

28
README.md Normal file
View File

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