Space Shooter Progression Report: Back to blocks and going to space
The premise of this project, is to create a simple 2D infinite space shooter (if you’re good enough). Since the project was started in Unity3D, I had to convert the already created gameobjects from 3D into 2D.
This is done using two ways:
- Either creating the gameobject to 2D from scratch
- Or repurposing the 3D object into a 2D one.
“Don’t forget to toggle the 2D view in the scene view”
A very important thing to keep in mind when converting from 3D to 2D, is the collisions and triggers.
Initially the prototype was set up with an OntriggerEnter method to detect collisions, but this will not work anymore.
OntriggerEnter2D must be used in order for collision detection to work again like intended.
So the current state of the project is as follows, we have simple sprites for an enemy, the player, and the laser. Next up, power ups.