Thomas Doukinitsas
INTERACTIVITY: Further Game Developement

INTERACTIVITY: Further Game Developement

During our 3rd session we started to add more elements to our game. We lit the scene using a three point lighting system, and we explored materials and added a background plane


We also created a script to make our ship move based on the horizontal and vertical axis:

using UnityEngine;using System.Collections;
public class PlayerController : MonoBehaviour {
    public float moveHorizontal = 0;    public float moveVertical = 0;    public float speed = 10;
    public float xMin,xMax,zMin,zMax;
    public Vector3 movement = Vector3.zero;
    void FixedUpdate ()     {        moveHorizontal = Input.GetAxis ("Horizontal");        moveVertical = Input.GetAxis ("Vertical");
        movement = new Vector3 (moveHorizontal,0,moveVertical);
        transform.rigidbody.velocity = movement * speed;    }
}


Lastly i managed to import the spaceship i designed in Maya in the 3D workshop, and replace the default one.

Unknown

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.

0 comments: