This is a prototype of a 2D platform and action videogame where we will control a robot in a stage surrounded by enemies and other elements to interact with.
Here we will talk about each of the elements of the game and how they work.
This bar indicates more than the life of the robot, its energy. In addition to enemy attacks, shooting will also reduce our energy.
These coins will be scattered throughout the stage and will recover the energy bar.
Throughout the stage we will find other enemy robots, these will move around the stage detecting walls or edges, in which case they will change their direction.
We will be able to shoot them to defeat them and if they collide with us they will take energy from us.
These jumpers will help us to reach high areas of the game, jumping on them will propel us through the air.
During the game we will see closed doors, to open them we will need to find a switch of the same color that opens it.
When we press the E key on a switch, it will trigger an event that opens the door.
We will be able to find boxes in the game that we must drag to solve simple puzzles.
These doors will take us to other parts of the stage.
At certain points in the game we can grab and swing with a hook.
Using the E key when we are close to these grip points will create a link with our character, when we press the E key again we will be impulsed.
To add more depth to the background, a Parallax Background has been implemented with several layers that move relative to the camera movement at different speeds.
To avoid slowing down the game, a pooling technique has been implemented for the robot’s projectiles. The game will create more instances of the bullet on demand.