Galactic Station
Solo Project
OVERVIEW
I've created this project as a part of Advanced Interactive Media Development module. My idea was to create a scene where you play as a seller at a gas station that is in space. I had to not only implement working scripts for the game but also I had to learn how animation works and how to use Motionbuilder. It was one of the most challenging projects that I had to do. I'm really happy with the end result and I was able to learn a lot about every aspect of unity and game creation.
TOOLS
Unity
Motionbuilder
LANGUAGE
C#
MEDIA GALLERY
.png)
.png)
.png)
.png)
SAMPLE CODE
Flying ships script
void Start()
{
speed = 18;
StartCoroutine(spawnShips());
}
​
// Update is called once per frame
void Update()
{
step = speed * Time.deltaTime;
spawned_ships[0].transform.position = Vector3.MoveTowards(spawned_ships[0].transform.position, despawn.transform.position, step);
if(Vector3.Distance(spawned_ships[0].transform.position, despawn.transform.position) < 1f)
{
//spawned_ships[0].gameObject.SetActive(false);
Destroy(spawned_ships[0]);
spawned_ships.Clear();
}
}
IEnumerator spawnShips()
{
while (spawnShipBool == true)
{
yield return new WaitForSeconds(Random.Range(35, 75));
shipInit();
}
}
​
void shipInit()
{
ship = Instantiate(ship_prefabs[Random.Range(0, ship_prefabs.Count)], spawn.transform.position, Quaternion.identity.normalized);
spawned_ships.Add(ship);
spawned_ships[0].transform.LookAt(despawn.transform.position);
}