Beispiel #1
0
 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);
 }
Beispiel #2
0
 public override void Draw(MainGame game, EntityContainer parent)
 {
     game.DrawImage("player", new Rectangle(MainGame.WindowWidth / 2 - 8, MainGame.WindowHeight / 2 - 8, LivingEntSize, LivingEntSize), true);
 }
Beispiel #3
0
 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);
 }