Esempio n. 1
0
        private void Restart()
        {
            playerHP        = 100;
            player.position = new MFVector(0.0f, 0.0f);
            player.Spawn();
            state = MainGameState.Running;
            GameStateEventArgs args = new GameStateEventArgs();

            args.state = state;
            OnEventGameState(this, args);
        }
Esempio n. 2
0
        private void GameOver()
        {
            foreach (MFBullet b in listBullet)
            {
                b.Destroy();
            }
            listBullet.Clear();
            player.Destroy();
            state = MainGameState.GameOver;
            GameStateEventArgs args = new GameStateEventArgs();

            args.state = state;
            OnEventGameState(this, args);
        }