public SelectionPersonnage()
        {
            persoAChoisirRestant = ChoixNombrePersonnage.nombreJoueur + ChoixNombrePersonnage.nombreIA;

            bouton1txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.2f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.3f);
            bouton1txt.Texte = "Options";
            bouton1txt.SizeText = 1;
            texteBoutons.Add(bouton1txt);

            texteBoutons.Add(antibug1); texteBoutons.Add(antibug2); texteBoutons.Add(antibug3); texteBoutons.Add(antibug4); texteBoutons.Add(antibug5);

            bouton7txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.2f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.85f);
            bouton7txt.Texte = Langue.French ? "Retour": "Back";
            bouton7txt.SizeText = 1;
            texteBoutons.Add(bouton7txt);

            affichQuiChoisitSonPersonnage = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.3f, TurkeySmashGame.WindowSize.Y * 0.55f);
            if (ChoixNombrePersonnage.nombreJoueur != 0)
                affichQuiChoisitSonPersonnage.Texte = Langue.French ? "Joueur 1:" : "Player 1:";
            else
                affichQuiChoisitSonPersonnage.Texte = Langue.French ? "Ordinateur 1:" : "Computer 1:";

            bouton1txt.NameFont = affichQuiChoisitSonPersonnage.NameFont = bouton7txt.NameFont = "MenuFont";
            affichQuiChoisitSonPersonnage.SizeText = 1;
        }
Esempio n. 2
0
        public Aides()
        {
            continuRetour = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.2f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.85f);
            continuRetour.Texte = Langue.French ?"Continuer" : "Next";
            texteBoutons.Add(continuRetour);
            aidesImages = new Sprite();

            continuRetour.NameFont = "MenuFont";
        }
 public SelectionNiveau()
 {
     texteBoutons.Add(antibug1); texteBoutons.Add(antibug2); texteBoutons.Add(antibug3); texteBoutons.Add(antibug4);
     bouton5txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.25f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.88f);
     bouton5txt.Texte = Langue.French ? "Retour" : "Back";
     bouton5txt.NameFont = "MenuFont";
     bouton5txt.SizeText = 1;
     texteBoutons.Add(bouton5txt);
 }
Esempio n. 4
0
        public Pause()
        {
            bouton1txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.3f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.4f);
            bouton1txt.Texte =Langue.French ? "Retour" : "Back";

            bouton2txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.35f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.6f);
            bouton2txt.Texte = Langue.French ? "Selection Personnages" : "Characters Selection";

            bouton3txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.3f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.8f);
            bouton3txt.Texte = Langue.French ? "Menu Principal" : "Main Menu";

            bouton1txt.NameFont = bouton2txt.NameFont = bouton3txt.NameFont = "MenuFont";
            texteBoutons.Add(bouton1txt); texteBoutons.Add(bouton2txt); texteBoutons.Add(bouton3txt);

            MediaPlayer.Resume();
        }
        public OptionsCombat()
        {
            if (TypePartieSelect == "vie")
            {
                bouton1txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.37f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.3f);
                bouton1txt.Texte = Langue.French ? "Type de partie : Vies" : "Game's Mode : Lifes";
                bouton1txt.SizeText = 1;
                texteBoutons.Add(bouton1txt);

                bouton2txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.42f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.5f);
                bouton2txt.Texte = (Langue.French ? "Nombre de vies : " : "Lifes : ") + NombreVies;
                bouton2txt.SizeText = 1;
                texteBoutons.Add(bouton2txt);
            }
            else
            {
                bouton1txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.37f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.3f);
                bouton1txt.Texte = Langue.French ? "Type de Partie : Temps" : "Game's Mode : Time";
                bouton1txt.SizeText = 1;
                texteBoutons.Add(bouton1txt);

                bouton2txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.42f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.5f);
                bouton2txt.Texte = (Langue.French ? "Temps par Partie : " : "Game's Duration : ") + TempsPartie + " min";
                bouton2txt.SizeText = 1;
                texteBoutons.Add(bouton2txt);
            }

            bouton3txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.35f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.7f);
            bouton3txt.Texte = (Langue.French ? "Objets et bonus : " : "Items and Bonuses : ") + frequenceObjetsBonus;
            bouton3txt.SizeText = 1;
            texteBoutons.Add(bouton3txt);

            bouton4txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.42f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.9f);
            bouton4txt.Texte = Langue.French ? "Retour" : "Back";
            bouton4txt.SizeText = 1;
            texteBoutons.Add(bouton4txt);

            bouton1txt.NameFont = bouton2txt.NameFont = bouton3txt.NameFont = bouton4txt.NameFont = "MenuFont";
            bouton1txt.Load(TurkeySmashGame.content, textes); bouton2txt.Load(TurkeySmashGame.content, textes); bouton3txt.Load(TurkeySmashGame.content, textes); bouton4txt.Load(TurkeySmashGame.content, textes);
        }
Esempio n. 6
0
        public Accueil()
        {
            xPos = TurkeySmashGame.manager.PreferredBackBufferWidth / 4;
            yPos = TurkeySmashGame.manager.PreferredBackBufferHeight / 4;

            jouer = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.2f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.3f);
            jouer.Texte = Langue.French ? "Jouer" : "Play";
            texteBoutons.Add(jouer);

            options = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.25f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.5f);
            options.Texte = "Options";
            texteBoutons.Add(options);

            aides = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.2f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.7f);
            aides.Texte =Langue.French ? "Aides" : "Help" ;
            texteBoutons.Add(aides);

            quitter = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.25f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.9f);
            quitter.Texte =Langue.French ? "Quitter" : "Quit";
            texteBoutons.Add(quitter);

            jouer.NameFont = options.NameFont = aides.NameFont = quitter.NameFont = "MenuFont";
        }
        public ChoixNombrePersonnage()
        {
            nombreJoueur = 1;
            nombreIA = 1;

            bouton1txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.3f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.3f);
            bouton1txt.Texte = (Langue.French ? "Nombre de Joueur : " : "Players : ") + nombreJoueur;
            texteBoutons.Add(bouton1txt);

            bouton2txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.35f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.5f);
            bouton2txt.Texte = (Langue.French ? "Nombre d'IA : " : "IAs : ") + nombreIA;
            texteBoutons.Add(bouton2txt);

            bouton3txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.3f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.7f);
            bouton3txt.Texte = Langue.French ? "Continuer" : "Next";
            texteBoutons.Add(bouton3txt);

            bouton4txt = new Texte(TurkeySmashGame.manager.PreferredBackBufferWidth * 0.35f, TurkeySmashGame.manager.PreferredBackBufferHeight * 0.9f);
            bouton4txt.Texte = Langue.French ? "Retour" : "Back";
            texteBoutons.Add(bouton4txt);

            bouton1txt.NameFont = bouton2txt.NameFont = bouton3txt.NameFont = bouton4txt.NameFont = "MenuFont";
        }
        public EndGameScreen()
        {
            boutonRejouer = new BoutonTexte(TurkeySmashGame.WindowSize.X * 0.15f , TurkeySmashGame.WindowSize.Y * 0.1f);
            boutonMainMenu = new BoutonTexte(TurkeySmashGame.WindowSize.X * 0.85f, TurkeySmashGame.WindowSize.Y * 0.1f);
            boutonRejouer.Texte = Langue.French ? "Rejouer" : "Replay";
            boutonMainMenu.Texte = Langue.French ?"Menu Principal" : "Main Menu";
            boutonRejouer.SizeText = 1.2f;
            boutonMainMenu.SizeText = 1f;
            boutonRejouer.colorOn = Color.Red; boutonRejouer.colorOff = Color.DarkRed;
            boutonMainMenu.colorOn = Color.Red; boutonMainMenu.colorOff = Color.DarkRed;

            #region affichage joueurs
            float YjoueurPos = Ypos * 0.333f;

            for (int i = 0; i < 4; i++)
                if (Results.ResultsBoard[i][1] != -999) // Si il y a 3 joueurs
                {
                    joueurs[i] = new Texte((Xpos / 8) + ((Xpos / 4) * (Results.ResultsBoard[i][0] - 1)), YjoueurPos);
                    joueurs[i].Texte = (Langue.French ? "Joueur " : "Player ") + Results.ResultsBoard[i][0];
                }

            #endregion
            #region affichage frames
            float YframePos = Ypos * 0.205f;
            posFrames[0] = -5;
            posFrames[1] = posFrames[0] + Xpos / 4;
            posFrames[2] = posFrames[1] + Xpos / 4;
            posFrames[3] = posFrames[2] + Xpos / 4;

            goldFrame = new ImageMenu(posFrames[Results.ResultsBoard[0][0]/* = num du joueur qui est 1er au classement*/ - 1], YframePos);
            silverFrame = new ImageMenu(posFrames[Results.ResultsBoard[1][0] - 1], YframePos);
            if(Results.ResultsBoard[2][1] != -999) // Si il y a 3 joueurs
                bronzeFrame = new ImageMenu(posFrames[Results.ResultsBoard[2][0] - 1], YframePos);

            if (Results.ResultsBoard[3][1] != -999) // Si il y a 4 joueurs
                bronzeFrame2 = new ImageMenu(posFrames[Results.ResultsBoard[3][0] - 1], YframePos);
            #endregion
            #region affichage classementTxt

            float YclassPos = Ypos * 0.455f;
            posClassement[0] = Xpos * 0.155f;
            posClassement[1] = posClassement[0] + Xpos / 4;
            posClassement[2] = posClassement[1] + Xpos / 4;
            posClassement[3] = posClassement[2] + Xpos / 4;

            classement[0] = new Texte(posClassement[Results.ResultsBoard[0][0] - 1], YclassPos);
            classement[0].Texte = Langue.French ?"1er":"1st";

            classement[1] = new Texte(posClassement[Results.ResultsBoard[1][0] - 1], YclassPos);
            classement[1].Texte = "2nd";

            if (Results.ResultsBoard[2][1] != -999) // Si il y a 3 joueurs
            {
                classement[2] = new Texte(posClassement[Results.ResultsBoard[2][0] - 1], YclassPos);
                classement[2].Texte = Langue.French ? "3e" : "3rd";
            }

            if (Results.ResultsBoard[3][1] != -999) // Si il y a 4 joueurs
            {
                classement[3] = new Texte(posClassement[Results.ResultsBoard[3][0] - 1], YclassPos);
                classement[3].Texte = Langue.French ?"4e" :"4th";
            }
            #endregion
            #region affichage results
            float YresultPos = Ypos * 0.565f;
            posResults[0] = Xpos * 0.130f;
            posResults[1] = posResults[0] + Xpos/4;
            posResults[2] = posResults[1] + Xpos / 4;
            posResults[3] = posResults[2] + Xpos / 4;

            for (int i = 0; i < 4; i++)
                if (Results.ResultsBoard[i][1] != -999)
                {
                    results[i] = new Texte(posResults[Results.ResultsBoard[i][0] - 1], YresultPos);
                    results[i].Texte = "Score : " + Results.ResultsBoard[i][1];
                }
            #endregion
            #region affichage suicides

            float YautokilltPos = Ypos * 0.657f;
            posSuicide[0] = Xpos * 0.130f;
            posSuicide[1] = posSuicide[0] + Xpos / 4;
            posSuicide[2] = posSuicide[1] + Xpos / 4;
            posSuicide[3] = posSuicide[2] + Xpos / 4;

            for (int i = 0; i < 4; i++)
                if (Results.ResultsBoard[i][1] != -999)
                {
                    suicide[i] = new Texte(posSuicide[Results.ResultsBoard[i][0] - 1], YautokilltPos);
                    suicide[i].Texte = "Suicide : " + Results.ResultsBoard[i][2];
                }
            #endregion
            if (OptionsCombat.TypePartieSelect == "temps")
                #region affichage kills
            {
                float YkillsPos = Ypos * 0.730f;
                posKills[0] = Xpos * 0.130f;
                posKills[1] = posKills[0] + Xpos / 4;
                posKills[2] = posKills[1] + Xpos / 4;
                posKills[3] = posKills[2] + Xpos / 4;
                kills[0] = kills1;
                kills[1] = kills2;
                kills[2] = kills3;

                for (int i = 0; i < 4; i++)
                {
                    int con = 0;
                    for (int j = 0; j < 3; j++)
                    {
                        if (Results.ResultsBoard[i][1] != -999 & Results.ResultsBoard[j + 1][1] != -999)
                        {
                            int n = j + 1;
                            if ((Results.ResultsBoard[i][0]) == n)
                                con = 1;
                            n += con;
                            kills[j][i] = new Texte(posKills[Results.ResultsBoard[i][0] - 1], Ypos * (0.730f + (0.092f * j)));
                            kills[j][i].Texte = (Langue.French ?"Joueur " : "Player ") + n + (Langue.French ?" tues : ":" killed : ") + Results.ResultsBoard[i][3 + (n - 1)];
                        }
                    }
                }
            }
            #endregion
            if (OptionsCombat.TypePartieSelect == "vie")
                #region affichage temps
            {
                float YposTimers = Ypos * 0.810f;
                posTimers[0] = Xpos * 0.130f;
                posTimers[1] = posTimers[0] + Xpos / 4;
                posTimers[2] = posTimers[1] + Xpos / 4;
                posTimers[3] = posTimers[2] + Xpos / 4;

                for (int i = 0; i < 4; i++)
                    if (Results.ResultsBoard[i][1] != -999)
                    {
                        timers[i] = new Texte(posTimers[Results.ResultsBoard[i][0] - 1], YposTimers);
                        if (Results.ResultsBoard[i][3] != -1)
                        {
                            timers[i].Texte = ((Results.ResultsBoard[i][3] / 1000) / 60) + " : " + ((Results.ResultsBoard[i][3] / 1000) % 60);
                            timers[i].SizeText = 1.3f;
                        }
                        else
                        {
                            timers[i].Texte = (Langue.French ? ("Dernier" + "\n" + "Debout") : ("Last One" + "\n" + "Standing")); //last one standing
                        }
                    }
            }
                #endregion

            #region Code de porc
            texteBoutons.Add(antibug1); texteBoutons.Add(antibug2);
            #endregion
            MediaPlayer.Resume();
        }