public void Draw(SpriteBatch spriteBatch) { spriteBatch.Draw( texture, screenSpace.TilePosition(column, row), new Rectangle(currentAnimationFrame * 32, 0, 32, 32), Color.White ); }
public void Draw(SpriteBatch spriteBatch) { for (int i = 0; i < gameState.LivesRemaining; i++) { spriteBatch.Draw( life, gameArea.TilePosition(gameArea.LastColumn - i, -1), Color.White ); } }
public void Draw(SpriteBatch spriteBatch) { if (!levelState.EvidenceRetrieved) { spriteBatch.Draw( texture, gameArea.TilePosition(column, row), Color.White ); } }
public void Draw(SpriteBatch spriteBatch) { for (int column = 0; column < gameArea.Width; column++) { for (int row = 0; row < gameArea.Height; row++) { var sprite = tileMap.GetSprite(row, column); if (sprite.HasValue) { spriteBatch.Draw( graphics.Tile(sprite.Value), gameArea.TilePosition(column, row), Color.White ); } } } }
public void Draw(SpriteBatch spriteBatch) { if (secondsRemaining != 0) { spriteBatch.Draw( graphics.Bomb, screenSpace.TilePosition(column, row), Color.White ); if (secondsRemaining < 6) { var text = $"{secondsRemaining}"; var fontOrigin = graphics.MainFont.MeasureString(text) / 2; spriteBatch.DrawString( graphics.MainFont, text, screenSpace.TileCentrePosition(column, row - 1), Color.White, 0, fontOrigin, 1.0f, SpriteEffects.None, 0.5f); } } }