예제 #1
0
        public Tireur( Rectangle rectangle, ContentManager Content, int height, int width, Color colo, int time_lunch)
        {
            this.rectangle = rectangle;
            this.rectangle_C = rectangle;
            this.decallageX = 0; decallageY = 0;
            largeurX = rectangle.Width - decallageX; hauteurY = rectangle.Height - decallageY;
            this.Ia_color = colo;
            this.timer_lunch = time_lunch;
            Munition_color = colo;
            bullet = new Bullet_manager(new Rectangle(rectangle.X, rectangle.Y, 10, 50), 15, 4, Content.Load<SoundEffect>("hero//vaisseau//tir2"), Munition_color, width, 50);
            this.width = width;
            dir = -1;
            _speed = 7;
            vie = 2;

            this.FrameColunm  = 1;
        }
예제 #2
0
        public Tireur(Rectangle rectangle, ContentManager Content, int height, int width, quaintuplet quaint)
        {
            this.rectangle = rectangle;
            this.rectangle_C = rectangle;
            this.decallageX = 0; decallageY = 0;
            largeurX = rectangle.Width - decallageX; hauteurY = rectangle.Height - decallageY;
            this.width = width;
            dir = -1;

            bullet = new Bullet_manager( new Rectangle(rectangle.X, rectangle.Y, 10, 50), 15, quaint.bullet_Speed,
                Content.Load<SoundEffect>("hero//vaisseau//tir2"), quaint.color, width, quaint.firerate);

            timer_lunch = quaint.seconde;
            _speed = quaint.speed;
            vie = quaint.vie;
            trajectory = quaint.trajectory;
            FrameColunm  = 1;
        }
예제 #3
0
        public Viseur_aI( Rectangle rectangle, ContentManager Content, int height, int width, Color colo, int gametime)
        {
            this.rectangle = rectangle;
            this.rectangle_C = rectangle;
            this.decallageX = 0; decallageY = 0;
            largeurX = rectangle.Width - decallageX; hauteurY = rectangle.Height - decallageY;

            Munition_color = colo;
            bullet = new Bullet_manager( new Rectangle(rectangle.X, rectangle.Y, 10, 50), 15, 7, Content.Load<SoundEffect>("hero//vaisseau//tir2"), Munition_color, width, 60);
            this.width = width;
            dir = -1;
            _speed = 6;

            this.Ia_color = Color.Green;
            this.vie = 2;
            this.timer_lunch = gametime;
            this.Effects = SpriteEffects.None;
            this.FrameLine = 1;
            this.FrameColunm = 1;
            this.Timer = 0;
        }
예제 #4
0
 public void Load(ContentManager Content, Texture2D n_texture)
 {
     texture = n_texture;
     mtexture = Content.Load<Texture2D>("bullet//bullet");
     bullet = new Bullet_manager( new Rectangle(rectangle.X, rectangle.Y, 10, 50), 15, 10, Content.Load<SoundEffect>("hero//vaisseau//tir2"), color_V, width, 30);
 }