Transferring From Prototype to Work of Art
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.
After some size adjusting of the background, I ended up with the below image.
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.
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).
Now everything is working just like before, but now it looks nice!