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); } } }
public Sprite(Char[,] Sprite, SpritePosition _position) { // work in progress //_posX = posX; //_posY = posY; sprite = Sprite; }
public SpriteRect(SpritePosition _position, SpriteSize _size) { position = _position; size = _size; }