Beispiel #1
0
 private void InitializeSystems()
 {
     RenderMachine.Initialize(viewForm, screenSize);
     AudioEngine.Initialize();
     LevelManager.Initialize();
     ParticleFactory.Initialize();
     AbstractWeaponFactory.Initialize();
     BotBank.Initialize();
 }
Beispiel #2
0
        private void InitializeGameplay()
        {
            heightDisplay = new HeightDisplay();
            player        = new Player(heightDisplay);
            lava          = new Lava(GraphicsDevice);
            background    = new Background();

            List <Platform> platforms = new List <Platform>();
            List <Hazard>   hazards   = new List <Hazard>();
            List <Particle> particles = new List <Particle>();

            platformHelper  = new PlatformHelper(platforms, lava);
            collisionHelper = new CollisionHelper(player, lava, platforms, hazards);
            particleHelper  = new ParticleHelper(particles);

            Platform.Initialize(hazards);
            ParticleFactory.Initialize(particles);

            SimpleEvent.AddEvent(EventTypes.RESET, null);
        }