Example #1
0
        protected override void LoadContent()
        {
            AudioEngine = new AudioEngine(@"Content\audio\GameAudio.xgs");
            WaveBank = new WaveBank(AudioEngine, @"Content\audio\Wave Bank.xwb");
            SoundBank = new SoundBank(AudioEngine, @"Content\audio\Sound Bank.xsb");

            var w = new WorldGrid();
            BasicManager.AddBasic(w);

            var p = new PlayerModel{Position = new Vector3(0,0,0)};
            BasicManager.AddBasic(p);

            var e = new SimpleEnemy {Position = new Vector3(-10, 2, 10)};
            BasicManager.AddBasic(e);

            Camera.Following = p;

            TrackCue = SoundBank.GetCue("music");
            TrackCue.Play();
            StateManager.StupidLoadContent();
        }
Example #2
0
        protected override void LoadContent()
        {
            SpriteBatch = new SpriteBatch(GraphicsDevice);
            AudioEngine = new AudioEngine(@"Content\audio\GameAudio.xgs");
            WaveBank = new WaveBank(AudioEngine, @"Content\audio\Wave Bank.xwb");
            SoundBank = new SoundBank(AudioEngine, @"Content\audio\Sound Bank.xsb");
            List<Texture2D> textures = new List<Texture2D>();
            textures.Add(Content.Load<Texture2D>("circle"));
            textures.Add(Content.Load<Texture2D>("star"));
            textures.Add(Content.Load<Texture2D>("diamond"));
            ParticleEngine = new ParticleEngine(textures, new Vector2(400, 240));

            var w = new WorldGrid();
            BasicManager.AddBasic(w);

            var p = new PlayerModel { Position = new Vector3(0, 0, 0) };
            BasicManager.AddBasic(p);

            //var e = new SimpleEnemy { Position = new Vector3(-10, 2, 10) };
            //BasicManager.AddBasic(e);

            //var e2 = new ModelEnemy(1.0f, Content.Load<Model>(@"Models\Dodeca")) { Position = new Vector3(-100, 2, 10) };
            //BasicManager.AddBasic(e2);

            Camera.Following = p;

            TrackCue = SoundBank.GetCue("music");
            TrackCue.Play();
            StateManager.StupidLoadContent();
        }