Space Visitors – Space Invaders​ like game made in Unity

In this entry you can try one of the first videogames I made. The game Space Visitors is a shoot ’em up game with the same mechanics as the mythical game “Space Invaders”, this prototype is developed in Unity and was a part of a commissioned work.

Game objective

You control a spaceship that fires one projectile at a time. Waves of alien ships advance threatening to destroy us. Destroy the enemy waves before they reach us.





About the development of this prototype

Next we will talk about the mechanics implemented in this game and details about the development of this project.

Game mechanics

We will now analyze the different elements of the game.

Player-controlled ship

The ship can only move horizontally from one end of the screen to the other with a certain speed that does not change during the course of the game, for the movement use the directional arrows or the A-D keys.

By pressing the SPACE key the ship fires a projectile that travels at a certain speed which will increase as we advance to the next wave.

By design requirements the ship can only fire one projectile at a time, that is to say that there can only be one missile on the screen, when it hits an enemy ship or goes off the screen, at that moment the ship is enabled to fire another projectile.

The player-controlled ship is destroyed when it is touched by an enemy ship.

The player has three ships to wipe out as many waves as he can, eventually all his ships will be destroyed and the game will end.

Enemy ships

In each wave five enemy ships appear at the top of the screen, which will start moving horizontally to one side of the screen, when one of the ships reaches one end of the screen, the whole set of enemy ships drops slightly and then moves in the other direction with an increase in speed.

The speed of enemy ships also increases with each wave.

Technical Details

Next we are going to review some information about the inner workings of this game, first of all it is a 2D project developed with the Unity engine.

The Sprites of the enemy ships are free images obtained from Google Images. The ship controlled by the player started as a Sprite downloaded from the internet, but then I created a 3D model of a ship in Blender and rendered it with the orthographic camera to get the Sprite that is currently used.

Given the simplicity of the prototype, a single Unity scene was used, so there was no need to worry about transferring information between scenes.

All the GUI elements of the main menu are children of a GameObject that is inside a Canvas, the GUI during the gameplay is also built that way, so when starting the game what is done is to deactivate the GameObject that contains the GUI elements and activate the GameObject that contains the game’s GUI.

Secured By miniOrange