Open xobust opened 8 years ago
Well, we don't currently have anything that needs this, so is there some easy/fast way to tell if this code works?
Well you could just create a spritesheet and try
Hmm I'm not sure if I'm doing it wrong, but I can't get this to work. Here's what I've done:
AtlasDictionary.Add("player", new Atlas(cm, "player", 1, 1, Vector2.Zero));
in TextureManager.LoadContent
.Textures.DrawFromAtlas("player", 1, 1, sb, position, 1, depth);
in Monster.Draw
(put it in monster because it already has a TextureManager).But it doesn't draw anything :(
This pull request adds the ability to load and draw from texture atlases to our TextureManager. This is nice if we want animation in the future.