public ZYSideBar(ViewManager viewManager) { _holdingFoodFrame = new ZYHoldingFoodFrame(); _viewManager = viewManager; _gameTime = SwinGame.CreateTimer(); SwinGame.StartTimer(_gameTime); winStar = 0; _life = 6; _gameLife = new ZYGameLife(); SwinGame.LoadBitmapNamed("side", "side_menu.png"); _sideBar = SwinGame.CreateSprite(SwinGame.BitmapNamed("side")); SwinGame.LoadBitmapNamed("star.png", "star.png"); SwinGame.LoadBitmapNamed("yellowStar.png", "yellowStar.png"); star1 = SwinGame.CreateSprite(SwinGame.BitmapNamed("star.png")); star2 = SwinGame.CreateSprite(SwinGame.BitmapNamed("star.png")); star3 = SwinGame.CreateSprite(SwinGame.BitmapNamed("star.png")); star4 = SwinGame.CreateSprite(SwinGame.BitmapNamed("yellowStar.png")); star5 = SwinGame.CreateSprite(SwinGame.BitmapNamed("yellowStar.png")); star6 = SwinGame.CreateSprite(SwinGame.BitmapNamed("yellowStar.png")); }
public EasyModeSideBar(ViewManager viewManager) { _holdingFoodFrame = new ZYHoldingFoodFrame(); _viewManager = viewManager; _gameTime = SwinGame.CreateTimer(); SwinGame.StartTimer(_gameTime); _life = 6; _gameLife = new ZYGameLife(); SwinGame.LoadBitmapNamed("side", "side_menu.png"); _sideBar = SwinGame.CreateSprite(SwinGame.BitmapNamed("side")); }