Пример #1
0
        public Source(Vector2 p , float a ,Director d)
        {
            position = p;
            angle = a;

              //  laser.setPosition(new Vector2(position.X + 32, position.Y), angle);

            laser = new Laser(new Vector2(position.X +30, position.Y), angle , d );
        }
Пример #2
0
        public Mirror(Vector2 p, float a, Director d)
        {
            position = p;
            angle = a;

            laser = new Laser(p, angle, d , this);

            hitBox.Width = 70;
            hitBox.Height = 70;

            rect = new RotatedRectangle(new Rectangle((int)position.X -45, (int)position.Y -30, 14, 50), 0f);

            rect.Origin = new Vector2(8, 26);
        }