Esempio n. 1
0
        public void ResetGame()
        {
            GameTimerHandler.TotalGameTime = 0;
            _player.Reset();
            _enemiesHandler.Reset();


            BuildPlatforms();

            _collectItemHandler.SetPickUpItemsOnPlatforms(_platforms);
            _cloudHandler.Reset();
            _informationPanel.Reset();
        }
Esempio n. 2
0
        public ActionScreen(Game game, SpriteBatch spriteBatch, Texture2D image) : base(game, spriteBatch)
        {
            _image          = image;
            _imageRectangle = new Rectangle(0, 0, Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Height);

            _informationPanel = new InformationPanel(game);
            _informationPanel.Reset();

            _cloudHandler = new CloudHandler(game);

            _playerDies = game.Content.Load <SoundEffect>("Sounds\\pain");

            _collectItemHandler = new CollectItemHandler();
            _collectItemHandler.Init(game);
            _collectItemHandler.CreatePickUpItems();

            CreatePlayer(game);
            _enemiesHandler = new EnemiesHandler(game);
            BuildPlatforms();
            _collectItemHandler.SetPickUpItemsOnPlatforms(_platforms);
        }