Game Development Reference
In-Depth Information
using Microsoft.Xna.Framework.Audio;
1
using Microsoft.Xna.Framework.Content;
2
using Microsoft.Xna.Framework.Graphics;
3
using Microsoft.Xna.Framework.Media;
4
5
6
public class AssetManager
{
7
protected ContentManager contentManager;
8
9
10
public AssetManager(ContentManager Content)
{
11
this .contentManager = Content;
12
}
13
14
15
public Texture2D GetSprite( string assetName)
{
16
if (assetName == "")
17
return null ;
18
return contentManager.Load<Texture2D>(assetName);
19
}
20
21
22
public ContentManager Content
{
23
get { return contentManager; }
24
}
25
}
26
Listing 15.1
A basic class for managing assets
The setting of the game deals with the story, the characters, and the virtual
world in which the game takes place. A good story can be a strong motivator
for the players and discovering the story while playing can be a very satisfying
task. Characters need to evoke empathy from the player to give meaning to
the tasks that must be performed. And the game world enhances these aspects
and adapts the game to certain demographics.
Level design is sometimes done by special level designers but in smaller
teams it is often the responsibility of the game designer. Careful level design
leads to a good learning curve. It keeps the player challenged and motivated.
And it should result in pleasant surprises.
Many topics have been written about game design and you are strongly en-
couraged to read some of them. Furthermore, you can find lots of information
on all aspects of game development on sites like http://www.gamasutra.com/ .
Search WWH ::




Custom Search