Ejemplo n.º 1
0
        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);
                }
            }
        }
Ejemplo n.º 2
0
        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);
                }
            }
        }
Ejemplo n.º 3
0
 public Sprite(Char[,] Sprite, SpritePosition _position)
 { // work in progress
     //_posX = posX;
     //_posY = posY;
     sprite = Sprite;
 }
Ejemplo n.º 4
0
 public SpriteRect(SpritePosition _position, SpriteSize _size)
 {
     position = _position;
     size     = _size;
 }
Ejemplo n.º 5
0
 public Sprite(Char[,] Sprite, SpritePosition _position)
 {
     // work in progress
     //_posX = posX;
     //_posY = posY;
     sprite = Sprite;
 }
Ejemplo n.º 6
0
 public SpriteRect(SpritePosition _position, SpriteSize _size)
 {
     position = _position;
     size = _size;
 }