示例#1
0
 static void ChangeToDefUpgrShop()
 {
     currentScreen = CurrentShopScreen.DefUpgrScreen;
 }
示例#2
0
 static void ChangeToCarShop()
 {
     currentScreen = CurrentShopScreen.CarShopScreen;
 }
示例#3
0
 static void ChangeToAttUpgrShop()
 {
     currentScreen = CurrentShopScreen.AttUpgrScreen;
 }
示例#4
0
 static void ChangeToArenaShop()
 {
     currentScreen = CurrentShopScreen.ArenaShopScreen;
 }
示例#5
0
 public static void Open(int shopUser)
 {
     ShopScreen.shopUser = shopUser;
     currentScreen = CurrentShopScreen.MainShopScreen;
     buttons.Speed = 0;
 }
示例#6
0
        public static void Initialize()
        {
            background.Initialize(Vector2.Zero);
            currentScreen = CurrentShopScreen.MainShopScreen;

            moneyDisplay.Initialize(new Vector2(50, 600));

            ArenaShop.Initialize();
            CarShop.Initialize();
            DefensiveUpgradeShop.Initialize();
            OffensiveUpgradeShop.Initialize();

            //Set up all the buttons
            string[] texts = new string[4];
            texts[0] = "Cars";
            texts[1] = "Shields";
            texts[2] = "Weapons";
            texts[3] = "Arenas";
            buttons.Initialize(texts, 800);

            //Set up the car & example
            example.Initialize((int)ShopScreen.ShopUser);
            example.MakeAI();
            example.DriveExampleCircles();
            example.Position = new Vector2(1000, 300);
            example.Rotation = (float)Math.PI;
            exampleRoad.Initialize(new Vector2(790, 140));

            //Initialize the popups
            notEnoughMoneyNotice.Initialize(Popups.Type.Ok);
            areYouSurePopup.Initialize(Popups.Type.NoOk);
        }