Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.IO.FileStream stream = new System.IO.FileStream(@"Images\SpriteSheet.png", System.IO.FileMode.Open);
- Texture2D texture = Texture2D.FromStream(GraphicsDevice, stream);
- spriteBatch.Draw(SpriteSheet, new Rectangle(200, 98, 32, 32), Color.White);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement