예제 #1
0
        public WelcomeScreen(GameData theData)
        {
            data = theData;

            Vector2 buttonPos = new Vector2(0.5f, 0.9f);
            playButton = new MyButton(data, buttonPos);
        }
예제 #2
0
        public PlayAgainScreen(GameData theData)
        {
            data = theData;

            Vector2 yesPos = new Vector2(0.5f, 5 / 8f);
            yesButton = new MyButton(data, yesPos);

            Vector2 noPos = new Vector2(0.5f, 6 / 8f);
            noButton = new MyButton(data, noPos);
        }
예제 #3
0
        public WelcomeScreen(GameData theData)
        {
            data = theData;

            Vector2 buttonPos = new Vector2(0.5f, 0.6f);
            playButton = new MyButton(data, buttonPos);

            buttonPos = new Vector2(0.5f, 0.75f);
            optionsButton = new MyButton(data, buttonPos);

            buttonPos = new Vector2(0.5f, 0.9f);
            creditsButton = new MyButton(data, buttonPos);
        }
예제 #4
0
        public PlayAgainScreen(GameData theData, Boolean isTheWinner = false)
        {
            data = theData;
            isWinner = isTheWinner;
            System.Console.Out.WriteLine("isWinner", isWinner);

            Vector2 yesPos = new Vector2(0.5f, 5 / 8f);
            yesButton = new MyButton(data, yesPos);

            Vector2 noPos = new Vector2(0.5f, 6 / 8f);
            noButton = new MyButton(data, noPos);

            Vector2 winnerPos = new Vector2(0.5f, 0.2f);
            winner = new MyButton(data, winnerPos);
        }