public Sprite(string[] Sprite, SpritePosition _position, ConsoleColor Color = ConsoleColor.White) { SpriteSize size = new SpriteSize(Sprite[0].Length, Sprite.Length); rect = new SpriteRect(_position, size); sprite = new Char[size.height,size.width]; for (int x = 0; x < size.width; x++) { for (int y = 0; y < size.height; y++) { sprite[x, y] = new Char(Sprite[y][x], Color); } } }
public Sprite(string[] Sprite, SpritePosition _position, ConsoleColor Color = ConsoleColor.White) { SpriteSize size = new SpriteSize(Sprite[0].Length, Sprite.Length); rect = new SpriteRect(_position, size); sprite = new Char[size.height, size.width]; for (int x = 0; x < size.width; x++) { for (int y = 0; y < size.height; y++) { sprite[x, y] = new Char(Sprite[y][x], Color); } } }