Ejemplo n.º 1
0
 public void Draw(SpriteBatch sb, Vector2 pos, Vector2 scale, Color colour, BlockStore blocks)
 {
     foreach (var kvp in this.tiles)
     {
         var p    = kvp.Key - this.Origin;
         var tile = kvp.Value;
         blocks.DrawTile(sb, pos + new Vector2(p.X * blocks.TileSize * scale.X, p.Y * blocks.TileSize * scale.Y), tile, 0f, colour, scale);
     }
 }