Skip to content

Instantly share code, notes, and snippets.

@poemdexter
Created March 21, 2012 23:21
Show Gist options
  • Save poemdexter/2154100 to your computer and use it in GitHub Desktop.
Save poemdexter/2154100 to your computer and use it in GitHub Desktop.
sprite dictionary!
private IDictionary<string, Texture2D> Sprites;
private void LoadSpriteDictionary(ContentManager content)
{
Sprites.Add("wall", content.Load<Texture2D>("Entities/Environment/wall"));
Sprites.Add("floor", content.Load<Texture2D>("Entities/Environment/floor"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment