Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void Draw(GameTime gameTime)
- {
- GraphicsDevice.Clear(Color.CornflowerBlue);
- spriteBatch.Begin(SpriteBlendMode.AlphaBlend);
- for (int y = 0; y < map.GetLength(0); y++)
- {
- for (int x = 0; x < map.GetLength(1); x++)
- {
- spriteBatch.Draw(tiles[map[y, x]],
- new Rectangle(
- x * tileWidht,
- y * tileHeight,
- tileWidht,
- tileHeight),
- Color.White);
- }
- }
- base.Draw(gameTime);
- spriteBatch.End();
- }
Add Comment
Please, Sign In to add comment