Exemplo n.º 1
0
        protected override void LoadContent()
        {
            skyBox.Load(this.Content, "Textures\\SkyBoxes\\BlueSky\\SkyEffect", "Textures\\SkyBoxes\\BlueSky\\SkyBoxTex");
            font = Content.Load <SpriteFont>("Fonts\\gameFont");

            sexyTexture = Content.Load <Texture2D>("Textures\\lolbar");
            staminaTex  = Content.Load <Texture2D>("Textures\\yellowGradient");
            healthTex   = Content.Load <Texture2D>("Textures\\greenGradient");
            backBar     = Content.Load <Texture2D>("Textures\\rock");
            infinity    = Content.Load <Texture2D>("Textures\\infinity");

            LoadCharacterModels();
            if (NetworkManager == null || networkManager.GetType().Equals(typeof(ServerNetworkManager)))
            {
                LoadMap();
            }


            if (NetworkManager != null)
            {
                this.NetworkManager.Connect();
            }

            gameManager.Init(this);

            soundManager.StartBackgroundMusic();
        }
Exemplo n.º 2
0
 protected void Load()
 {
     asteroidManager.Load();
     player.Load();
     tunnel.Load();
     skybox.Load();
     gameOverFont = Game.Content.Load <SpriteFont>("Fonts\\menuHuge");
     base.LoadContent();
 }