Ejemplo n.º 1
0
 public ScoreScreen(Motus.TypeDePartie _type_partie)
 {
     typepartie    = _type_partie;
     visualisation = true;
     ThemeColor();
     TypePartie(typepartie);
     multi = new Multi(ApiKey, GameId);
 }
Ejemplo n.º 2
0
 public ScoreScreen(Motus.TypeDePartie _type_partie, int score_joueur)
 {
     _score_joueur = score_joueur;
     typepartie    = _type_partie;
     visualisation = false;
     ThemeColor();
     TypePartie(typepartie);
     multi = new Multi(ApiKey, GameId);
 }
Ejemplo n.º 3
0
 private void TypePartie(Motus.TypeDePartie type_partie)
 {
     if (type_partie == Motus.TypeDePartie.Marathon)
     {
         nom_partie = "Marathon";
         GameId     = "5173f2a1a5";
     }
     else
     {
         nom_partie = "Montre";
         GameId     = "a9f0052330";
     }
 }
Ejemplo n.º 4
0
        public OptionFinPartie(int position_Y, SpriteFont font, Texture2D texture_lambda, Texture2D menu, string rejouer_string, string menu_string, Motus.TypeDePartie type_partie)
        {
            _type_partie    = type_partie;
            _font           = font;
            _rejouer        = texture_lambda;
            _menu           = menu;
            _position_Y     = position_Y;
            _rejouer_string = rejouer_string;
            _menu_string    = menu_string;

            _position1 = new Vector2(120, _position_Y);
            _position2 = new Vector2(300, _position_Y);
            _size1     = new Vector2(_font.MeasureString(rejouer_string).X + 30, _rejouer.Height + 100);
            _size2     = new Vector2(menu.Width + 50, _rejouer.Height + 100);
        }