Tutorial · 13 Nov 2026
Make your first 2D game in Unity from scratch
Step-by-step tutorial with Unity 2020: endless background, animations, jumping, obstacles and a menu. The video is in Spanish.
A tutorial to make your first 2D video game in Unity from scratch, with Unity 2020. It starts with the basics of the editor (hierarchy, project, console and inspector) and ends with a game you can already play: a character that runs through an endless map and jumps over the rocks coming at it. The video is in Spanish.
Along the way you'll see how to:
- Import sprites and split the elements of an atlas.
- Repeat the background forever with a script.
- Animate the character (run and jump) and move from one animation to another with the Animator.
- Use
BoxCollider2DandRigidBody2Dfor collisions and physics. - Jump from a script and know if the character hit something.
- Move the obstacles and detect the hit with the player.
- Build menus with a Canvas.
Resources
- Project repository on GitHub
- Original sprites on OpenGameArt, by Buch (CC0)
Sprite animations
The atlas frames each animation uses:
| Animation | Frames |
|---|---|
| Run | 0, 1, 2, 3 |
| Jump | 4, 5, 6 |
| Hit | 8, 9, 8 |
| Stab | 10, 11, 12 |
| Punch | 13, 11 |
| Run | 14, 15, 16, 17 |