Game Development Reference
In-Depth Information
Chapter 2
Game Programming 101
Now that you know your way around the Unity editor, you are ready for an introduction to the
scripting editor MonoDevelop. These are your two primary tools for game development. The Unity
editor is where you build your game visually, assembling the layout of your scene by placing the
game objects within it. MonoDevelop is the scripting editor where you write your code. The code
tells the game objects how to behave, such as responding to player input or to each other. Your
code script is incorporated into your game when you attach it to a game object. In this chapter you
will learn how to create a script, write some simple code, then attach the script to a game object.
You installed MonoDevelop along with Unity in Chapter 1. You may have seen it in the Applications ➤
Unity folder (Figure 2-1 ), but you can also get to MonoDevelop directly from the Unity editor. It is the
default choice under External Script Editor in Unity Preferences ➤ External Tools (Figure 2-2 ).
Figure 2-1. MonoDevelop.app icon and Finder menu of downloaded Unity package
27
 
Search WWH ::




Custom Search