PlayerManager(Device device)
        {
            Task <Resource> loadTask = ResourceManager.CreateResource().GetResource("image5.png");

            _player      = new Moodie(((TextureResource)loadTask.GetAwaiter().GetResult()).GetTexture(), (device.Viewport.Width / 2) - 60, device.Viewport.Height - 185, 5);
            Playerstartx = GetPlayerX();
        }
        public void CreateNewPlayer()
        {
            _player = null;
            Random r            = new Random();
            int    randomMoodie = 1;

            randomMoodie = r.Next(1, 5);
            string          image    = "image" + randomMoodie + ".png";
            Task <Resource> loadTask = ResourceManager.CreateResource().GetResource(image);

            _player = new Moodie(((TextureResource)loadTask.GetAwaiter().GetResult()).GetTexture(),
                                 (GameAppFramework.GetGameAppFramework().Device.Viewport.Width / 2) - 60,
                                 GameAppFramework.GetGameAppFramework().Device.Viewport.Height - 185, randomMoodie);
            Playerstartx = GetPlayerX();
            _wall        = false;
        }
 public void AddHangingMoodie(Moodie moodie)
 {
     hangingMoodies.Add(moodie);
 }