Making a simple 2D Platformer in Unity

To gain a better idea of unity and it's features when it came to designing games and levels, I decided to use one of their pre-made templates of a 2D platformer game. The code and design of the blocks was already done for me and therefore this meant that all I needed to do was place the blocks into the scene and link specific items together to make features of the game work correctly. I also decorated the scene with prefabs so that it looked more interesting.


Stage where level was created

When you begin, if you have died or restart the level you automatically spawn/re-spawn in this exact spot in the level.


When jumping onto the moving platform, it transports you to other areas.



Jumping into the helicopter spaceship teleports you to another area which I implemented.


Teleportation area

You are teleported to this area. If this game was developed further, a number of things could be added here. E.g. A door way (Hidden/locked), a chest, a key, a useful item, a map item, an item that needs to be collected to complete the game etc.


Teleportation Destination

This is another area that can be accessed using the platform. When the player steps on the pressure pad, a door is opened and unlocked allowing the character to continue through the area. Pressure pads could also be set up in other area's to unlock doors and can be activated either by using a block or by the character stepping on the pad.


Doorway unlocked by pressure pad

Once past the door way, you are faced with two enemies. The pink one's vision is restricted so that it cannot see you at first by notices you when you get closer to it. The blue one attacks you when it's close to you.


Enemies that harm the health of the character

A box can be found higher up in the level, once pushed down to the enemy level, enemies can also be killed by being flattered by the box.


Box movement

Comments

Popular posts from this blog

Unity Project 4: Ball platformer game

[Research] Traditional Poster Design (4CTA1214)