Game Development Reference
In-Depth Information
Why Is It Awesome?
When we are done with this chapter, we will get a good understanding of how to create a
sprite and 2D plaform game by using a 3D game engine such as Unity. Also, we will be able
to create our own 2D plaform style game like Sonic, Mario, Mega Man, and so on, and reuse
some of our techniques, scripts, and concepts to create a 3D game at a later stage.
Your Hotshot Objectives
This project will be split into six tasks. Since we are not creaing any enemies in our game, we
don't have to deal with any complex scriping. It will be a simple step-by-step process from
beginning to end. Here is the outline of the tasks:
F Creaing a camera and a level
F Creaing a 2D character
F Creaing CharacterController and SpriteManager classes
F Jumping and physics
F Creaing key and door
F Adding Sound and Replay buton
Mission Checklist
Before we start, we will need to get the latest Unity version http://unity3d.com/
unity/download/ which includes MonoDevelop that we will use for our scriping
editor. We will also need a few graphics for our character, key, and door as well as a
collecion of sound FX. These could be downloaded as ZIP iles from Packt's website:
http://www.packtpub.com/support?nid=8267 .
Browse to the preceding URL and download Chapter1.zip package and unzip it. Inside the
Chapter1 folder, there are five subfolders, which are Buttons , Characters , FBX , Level ,
and Sound .
Creating a camera and a level
This part is just about creaing a camera and a level to use in our plaform game.
We will be creaing a camera that will show all the objects in the scene and follow
our character movement.
 
Search WWH ::




Custom Search