Guest User

Untitled

a guest
Oct 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. spriteBatch.Begin();
  2. for (int y = 0; y < tileMap.GetLength(0); y++)
  3. {
  4. for (int x = 0; x < tileMap.GetLength(1); x++)
  5. {
  6. spriteBatch.Draw(
  7. tiles[tileMap[y, x]],
  8. new Vector2(x * tileWidth, y * tileHeight),
  9. Color.White);
  10. }
  11. }
  12. spriteBatch.End();
Add Comment
Please, Sign In to add comment