I recently presented a step-by-step workshop titled “Making A 2D Sprite-Based Game With Unity” to the Toronto SkillSwap community which is “A collaborative group for folks interested in sharing their skills and training with other developers in Toronto, and for folks interested in learning!”.
Around 50 people showed up to the 3 hour workshop and although we tried our hardest to get through all of the content, we only completed about 1/2 of the project before it was time to move on to the beer drinking portion of the event.
So while I still had all of the project steps fresh in my mind, I figured it would be a good idea to go through the workshop at home and screencast the whole thing so that everyone could get a chance to follow along with the complete tutorial.
Before you jump into the video, here’s all the stuff you’ll need to complete the project:
- Download the base project files which include all the sprites, scripts, fonts and sound effects you’ll need to make the game. And if you want to skip to the end, you can download the finished project.
- The free or paid version of the Unity 3D development engine.
- Orthello 2D Framework (already included in the project zip) which is the Unity plugin we’ll use for the display and animation of sprites.
- The free or paid version of TexturePacker which we’ll use to make the spite atlases.
And here’s the screencast:
Calculating Orthographic Camera Size
If you’re wondering how I came up with the 6.25 orthographic size used in this project, here’s a handy formula for figuring out the orthographic camera size which was provided by Jason Caldwell.
x = screen width in pixels
y = screen height in pixels
s = sprite height or width (whichever is larger) in pixels
x / ((( x / y ) * 2 ) * s )
More Unity 2D Game Tutorials
Make A 2D Game in Unity3D Using Only Free Tools Part 1
Make A 2D Game in Unity3D Using Only Free Tools Part 2
Make A 2D Game With Unity3D Using Only Free Tools Part 3
Make A 2D Game With Unity3D Using Only Free Tools Part 4
Make A 2D Game With Unity3D Using Only Free Tools: Beginning Enemy AI With A* Pathfinding
Show Your Support
If you find our tutorials useful, please considering buying one or more of our games and apps for iPhone and iPad. Your support helps to keep the tutorials flowing!
Giant Moto: High flying arcade style motocross action!
Small Space: Fly a spaceship, eat space creatures, get huge, score point!
Holeshot Drag Racing: High speed drag racing action!
Alien Booth: Transform pictures of your friends into awesome aliens!
iSpoof Walken: A hilarious look into the world of Christopher Walken!
Gaga Eyes: Transform pictures of your friends to give them huge anime eyes!
About the author
Tim Miller is a veteran game developer with over 15 years experience in the video game industry working as a Level Designer and Lead Level Designer at LucasArts, Secret Level and Nihilistic Software. He co-founded Rocket 5 Studios with his wife Cathy and their dog Rocket in 2009. Twitter, LinkedIn, Portfolio