Esempio n. 1
0
        public override void InitializeContent()
        {
            base.InitializeContent();

            try
            {
                cubeModel = Content.Load<Model>("Cube");
                sphereModel = Content.Load<Model>("Sphere");
                wheelModel = Content.Load<Model>("wheel");
                moon = Content.Load<Texture2D>("Moon");
                terrainModel = Content.Load<Model>("terrain2");
                roverModel = Content.Load<Model>("Rover2");
                wheelModel = Content.Load<Model>("wheel");
                landerModel = Content.Load<Model>("Lunar Lander");
                chatFont = Content.Load<SpriteFont>("debugFont");
                roverRadar = Content.Load<Model>("RoverRadar");
                roverCam = Content.Load<Model>("RoverCam");
                RotArm = Content.Load<Model>("RotArm");
                Pole = Content.Load<Model>("Pole");

                radar = Content.Load<Texture2D>("radar");
                radar_icon = Content.Load<Texture2D>("radar_icon");
                laser_icon = Content.Load<Texture2D>("laser_icon");
                energy = Content.Load<Texture2D>("Energy");

                ChatManager = new Chat(chatFont);
                ChatMessageReceived += new Helper.Handlers.ChatMessageEH(ChatManager.ReceiveMessage);

                spawn = Content.Load<SoundEffect>("spawn");
                motor = Content.Load<SoundEffect>("motor");
                radar_noise = Content.Load<SoundEffect>("radar_noise");
                solar_wind = Content.Load<SoundEffect>("solar_wind");

                #region Initialize Assets
                assetManager.AddAsset(AssetTypes.Rover, CreateRover);
                assetManager.AddAsset(AssetTypes.Laser1Pickup, CreateHighFrictionCube);
                assetManager.AddAsset(AssetTypes.Radar1Pickup, CreateSmallSphere);
                assetManager.AddAsset(AssetTypes.Lander, CreateLunarLander);
                #endregion
            }
            catch (Exception E)
            {

            }
        }
Esempio n. 2
0
        public override void InitializeContent()
        {
            base.InitializeContent();
            cubeModel = Content.Load<Model>("Cube");
            sphereModel = Content.Load<Model>("Sphere");
            carModel = Content.Load<Model>("car");
            wheelModel = Content.Load<Model>("wheel");
            moon = Content.Load<Texture2D>("Moon");
            planeModel = Content.Load<Model>("plane");
            terrainModel = Content.Load<Model>("terrain");
            carModel = Content.Load<Model>("car");
            wheelModel = Content.Load<Model>("wheel");
            landerModel = Content.Load<Model>("Lunar Lander");
            airplane = Content.Load<Model>("Airplane");
            chatFont = Content.Load<SpriteFont>("debugFont");

            ChatManager = new Chat(chatFont);
            ChatMessageReceived += new Helper.Handlers.ChatMessageEH(ChatManager.ReceiveMessage);

            SetUpVertices(this.graphicsDevice);

            try
            {
                // http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series3/Pixel_shader.php
                lighteffect = Content.Load<Effect>(@"Lighting\LightEffect");
                wallTexture = Content.Load<Texture2D>("metal3_scr");

            }
            catch (Exception E)
            {
            }
        }