internal static void DrawDiscoveredMonsters(SpriteBatch spriteBatch, Rectangle tileSize, Rectangle localView) { foreach (var monster in monsters) { if (monster.Discovered || GameConstants.DEBUG_MODE_REVEAL) { monster.Draw(spriteBatch, FloorGenerator.TranslateRecToTile(tileSize, localView, monster.Location), localView); } } }
internal static void DrawCounters(SpriteBatch spriteBatch, Rectangle tileSize, Rectangle currentView) { Rectangle currentDrawRectangle; if (GameConstants.DEBUG_MODE_DRAW_STEPS_TO_HERO) { for (int x = 1; x < FloorGenerator.FloorWidth - 1; x++) { for (int y = 1; y < FloorGenerator.FloorHeight - 1; y++) { currentDrawRectangle = FloorGenerator.TranslateRecToTile(tileSize, currentView, new Point(x, y)); pathCounterText[x, y].Location = new Point( currentDrawRectangle.Center.X - pathCounterText[x, y].Width / 2, currentDrawRectangle.Center.Y - pathCounterText[x, y].Height / 2); pathCounterText[x, y].Draw(spriteBatch); } } } }
internal void Draw(SpriteBatch spriteBatch, Rectangle tileSize, Rectangle localView) { Rectangle fittedRectangle = Utility.FittedSprite(sprite, FloorGenerator.TranslateRecToTile(tileSize, localView, Location)); spriteBatch.Draw(sprite, fittedRectangle, Color.White); // White is full color with no tinting }