Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spriteBatch.Begin();
- for (int y = 0; y < tileMap.GetLength(0); y++)
- {
- for (int x = 0; x < tileMap.GetLength(1); x++)
- {
- spriteBatch.Draw(
- tiles[tileMap[y, x]],
- new Vector2(x * tileWidth, y * tileHeight),
- Color.White);
- }
- }
- spriteBatch.End();
Add Comment
Please, Sign In to add comment