2D Platform Game Project

Game Prototype

About the game

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.

img


Game mechanics

Here we will talk about each of the elements of the game and how they work.

Energy bar

This bar indicates more than the life of the robot, its energy. In addition to enemy attacks, shooting will also reduce our energy.

img

Collectible coins

These coins will be scattered throughout the stage and will recover the energy bar.

img

Enemies

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.

img

We will be able to shoot them to defeat them and if they collide with us they will take energy from us.

img

Jumper

These jumpers will help us to reach high areas of the game, jumping on them will propel us through the air.

img

Switches and doors

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.

img

Boxes

We will be able to find boxes in the game that we must drag to solve simple puzzles.

img

Door teleporter

These doors will take us to other parts of the stage.

img

Grappling hook

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.

img


Other game features

Parallax Background

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.

img

Projectile pooling

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.

img


Try it out on Itch.io