Exemplo n.º 1
0
 public Bonhomme(PictureBox hebergeur, int xsg, int ysg, int longueur, int hauteur) : base(hebergeur, xsg, ysg, longueur, hauteur, 0)
 {  //  (10, 60, 30, 80);
     this._Tete        = new MonCercle(hebergeur, xsg + (longueur / 2), ysg - (hauteur / 5), hauteur / 5, Color.Black, Color.Aquamarine);
     this._Oeil        = new MonCercle(hebergeur, xsg / 2 + (longueur), ysg - (hauteur / 5), hauteur / 20, Color.Black, Color.White);
     this._JambeDroite = new Jambe(hebergeur, longueur, hauteur + ysg, longueur / 2, hauteur / 2, 0, Color.Black, Color.DarkSlateGray);
     this._JambeGauche = new Jambe(hebergeur, longueur, hauteur + ysg, longueur / 2, hauteur / 2, 0, Color.Black, Color.DarkSlateGray);
     this._BrasDroit   = new Bras(hebergeur, longueur / 2 + xsg / 2, hauteur - xsg / 2, (longueur / 3) + xsg / 5, hauteur / 2, 0, Color.Black, Color.DarkRed);
     this._BrasGauche  = new Bras(hebergeur, longueur / 2 + xsg / 2, hauteur - xsg / 2, (longueur / 3) + xsg / 5, hauteur / 2, 0, Color.Black, Color.DarkRed);
     this._Sacados     = new MonRectangle_tournant(hebergeur, xsg - 22, hauteur - xsg - 8, longueur, hauteur / 2, 0, Color.Black, Color.DarkSlateGray);
     //this._Snowboard = new snowboard(hebergeur, xsg*10, longueur*7+xsg, longueur*3, hauteur / 3, 0, Color.Black, Color.DarkSlateBlue);
 }
Exemplo n.º 2
0
        public Super_Bonhomme(PictureBox hebergeur, int xsg, int ysg, int longueur, int hauteur) : base(hebergeur, xsg, ysg, longueur, hauteur)
        {
            this.torse   = new Rectangle_movable(hebergeur, xsg, ysg, longueur * 12 / 15, hauteur, Color.Black, Color.OrangeRed);
            this.tete    = new MonCercle(hebergeur, xsg + longueur / 2, ysg - longueur / 3 * 2, longueur * 2 / 3, Color.Black, Color.Brown);
            this.oeil    = new MonCercle(hebergeur, xsg + longueur - 5, ysg - longueur / 3 * 2, longueur * 2 / 11, Color.Black, Color.White);
            this.pupille = new MonCercle(hebergeur, xsg + longueur, ysg - longueur / 3 * 2, longueur * 2 / 18, Color.Black, Color.Black);
            this.brasg   = new Bras(hebergeur, xsg + longueur / 4, ysg + hauteur / 8, longueur / 2, hauteur * 6 / 15, 15, Color.Black, Color.DarkOrange);
            this.brasd   = new Bras(hebergeur, xsg + longueur / 4, ysg + hauteur / 8, longueur / 2, hauteur * 5 / 15, 0f, Color.Black, Color.DarkOrange);
            this.jambeg  = new Jambe(hebergeur, xsg + longueur / 5, ysg + hauteur * 9 / 10, longueur / 2, hauteur * 7 / 15, 10, Color.Black, Color.Blue);
            this.jambed  = new Jambe(hebergeur, xsg + longueur / 5, ysg + hauteur * 9 / 10, longueur / 2, hauteur * 7 / 15, 0f, Color.Black, Color.Blue);

            ja = J;
        }