-
Book Overview & Buying
-
Table Of Contents
Building your First Mobile Game using XNA 4.0
By :
Create a new project and call it Chapter2Demo
. XNA Game Studio created a class called Game1. Rename it to MainGame so it has a proper name.
When we take a look at our solution, we can see two projects. A game project called Chapter2Demo that contains all our code, and a content project called Chapter2DemoContent
. This content project will hold all our assets, and compile them to an intermediate file format (xnb). This is often done in game development to make sure our games start faster. The resulting files are uncompressed, and thus larger, but can be read directly into memory without extra processing.
Note that we can have more than one content project in a solution. We might add one per platform, but this is beyond the scope of this book.
Navigate to the content project using Windows Explorer, and place our textures in there.
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub...
Change the font size
Change margin width
Change background colour