Sunday, 4 October 2020

NEXT-GEN Nescot Year 4 HND - 2D Unity Project Test

During this small project we were tasked with using the Unity Engine and Unity Playground asset pack to create a 2D basic spaceship game. For my spaceship game, I first used the Unity Playground pack to add multiple preset assets for the spaceship, background and meteors.


Next, I used the preset particle effects to add flames to the bottom of the space ship, in order to give it a cartoonish appearance and give the impression of movement.


Then, I used the preset code to add the ability to take damage from hitting an asteroid, have the ability to shoot, get score from destroying asteroids and the ability to move, tilt and shoot.


The movement and tilting scripts were both pre-made scripts within the Unity Playground and only required a small change in button presses (changed move forward from Space to W).


For the shooting and score, I again used a preset script, however, I created a prefab laser to be used as a projectile, and I added the pre-set UI and interaction values to destroy and gain score from the asteroids.


I also added the health and damage pre-set scripts to allow the player to take damage from hitting the asteroids and to eventually die after taking too much damage.


Over all, this short project went well, however due to the Unity Playground asset pack, there wasn't much work needed to be done myself, as most if not all elements used were from the pack itself. This made things significantly more easy but much more simplistic. If I could improve on this project I would make asteroids fly around the screen at different sizes and speeds to give the player a challenge to hit as many asteroids as possible without dying.

No comments:

Post a Comment

NEXT-GEN Nescot Year 4 HND - Going Indie (Final game, itch.io Link)

For the final part of my Game Development project (Topdown Shooter), I was required to upload my finished game to Itch.io, allowing my game ...