public static void ResetGame()
        {
            State = GameState.Running;
            EnemyManager.ResetAll();
            Player.ResetAll();
            ShaderWrapper.ResetAll();
            ForceCounter.ResetAll();

            currentLevel = 0;

            NextLevel(false);
        }
示例#2
0
        protected override void LoadContent()
        {
            LevelManager.Assemble();
            CollisionGrid.Assemble();

            spriteBatch   = new SpriteBatch(GraphicsDevice);
            rand          = new Random();
            player        = new Player(this);
            eManager      = new EnemyManager(this);
            uILayer       = new UILayer(this, spriteBatch);
            shaderWrapper = new ShaderWrapper(this);
            counter       = new ForceCounter(this);

            ShaderWrapper.ClearBG(Color.SteelBlue);
        }