Transferring From Prototype to Work of Art

Kyle W. Powers
2 min readApr 10, 2021

With the assets from the GameDevHQ 2D Space Shooter course, this project will go from looking like a prototype to looking like a real game.

The first thing I did was change the boring background to an excellent space background. So I created a new Sprite and made it the background.

Creating a Sprite and Adding the Image

After some size adjusting of the background, I ended up with the below image.

Background Sized

After that, I went to work on Player, Laser, and Enemy. I changed out all of the 3D components for 2D versions, like the Box Collider for the Box Collider 2D, Rigidbody for Rigidbody 2D. Then I removed the Mesh Filter and Mesh Renderer and replaced them with a Sprite as a Player child.

Showing the Changed Player, Enemy and Laser

Code wise there was very little to change. The only thing that needed to be changed was the OnTriggerEnter method in the Enemy script, and I changed that to OnTriggerEnter2D(Collider2D other).

OnTriggerEnter Change

Now everything is working just like before, but now it looks nice!

--

--