
Learn to build a two-dimensional pixel art platformer in Unity by setting up a two-dimensional project, importing free assets from the asset store, and organizing scenes to create levels.
Import assets into the project, place the background and tile sets with a tile palette, configure a grid and tile map, and set pixels per unit to 16.
Set up and draw your level by arranging ground tiles, stone tiles, and other tiles. Adjust positions, sizes, and layer order to place background, ground, and foreground, then play.
Continue level creation by duplicating the background and aligning to merge, while the camera follows the player and the tile map places rocks, statues, crystals, and a finish house.
Teach students to create player animations in a Unity 2D platformer, including idle, run, jump and hurt, via an animator controller with speed, is jumping, and is hurt parameters.
Learn to make a 2D platformer character move using a rigid body, colliders, and tilemap collisions; implement horizontal movement with input, jumping basics, and animation control in Unity.
Implement a jump mechanic by detecting jump button presses, updating isJumping and the animator, and wiring the move method to jump, then reset the jump state on landing.
attach a camera follow script to the camera, target the player, and adjust follow time plus the x and y offsets to keep the player centered.
Add a frog enemy with animation and a trigger collider, tagged as enemy and placed on the enemy layer; collisions kill the frog when jumped on, otherwise hurt the player.
Add a UI text score display and initialize an integer score at zero, then increase it when collecting gems or defeating the frog and update the score text each frame.
Finalize your Unity 2D game by wiring a main menu to load the next scene and quit the application, using a dedicated main menu script and proper build settings.
In this course we will take advantage of the Unity Asset store and find stunning 2D pixel art assets, that are free for use.
We will use these assets to learn and better understand how 2D games are made in Unity.
We will cover techniques as:
2D Level Design
What are Tiles and how to work with them
How the Unity 2D grid works and how to set it up properly
How to set up animations and make sure the framerate is set up properly
Character movement
Gravity and how to use physics to our advantage
Camera Follow
Creating a Main Menu and a score