Exemple #1
0
 public void GameOver()
 {
     SoundPool.StopBackgroundMusic();
     PhysicsWorld.Instance.DestroyAllBodies();
     Initialize();
     gameIsOver = true;
     gameObjects.Clear();
     ScoreSystem.Reset();
     MoveCamera(Vector2.Zero);
     backgroundMap = ItemSpriteFactory.Instance.CreateGameOverSprite();
 }
Exemple #2
0
        public void LoadAllGameObjects()
        {
            DKLevelParser.ParseLevel("Levels/fullLevel1.tmx", out gameObjects);

            Player p = new Player();

            gameObjects.Add(p);
            inputReceivers.Add(p);
            player = p;
            SoundPool.PlayBackgroundMusic();

            backgroundMap = ItemSpriteFactory.Instance.CreateBackgroundSprite();
        }