Space Shooter Progression Report: Back to blocks and going to space

Mohamed Hijazi
2 min readMar 17, 2021

--

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:

  1. Either creating the gameobject to 2D from scratch
  2. Or repurposing the 3D object into a 2D one.

“Don’t forget to toggle the 2D view in the scene view”

First remove the 3D components
Add the 2D components

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.

Pew Pew Pew

--

--

Mohamed Hijazi

A knowledge seeking biologist who is following his passion into a full time career in Unity / Game Development. https://www.linkedin.com/in/mohamed-hijazi/