public void DrawTile(MainGame game, int x, int y, int index) { if (index == 0) { return; } Rectangle rect = new Rectangle(x * this.TileWidth, y * this.TileHeight, this.TileWidth, this.TileHeight); game.DrawImage(_tilesetImage, rect, GetTileRect(index), Color.White); }
public override void Draw(MainGame game, EntityContainer parent) { game.DrawImage("player", new Rectangle(MainGame.WindowWidth / 2 - 8, MainGame.WindowHeight / 2 - 8, LivingEntSize, LivingEntSize), true); }
public virtual void Draw(MainGame game, int x, int y) { if (this.NoDraw) { return; } game.DrawImage(new Rectangle(x * SSMap.TileSize, y * SSMap.TileSize, SSMap.TileSize, SSMap.TileSize), this.DisplayColor); }