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); }
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); }