public PlayerStats(ContentManager content, GraphicsDevice graphics, String playerName, GameMain game) { TextFont = content.Load <SpriteFont>("Fonts/File"); TimeWarningSound = content.Load <SoundEffect>("Sound Effects/Time Warning"); PeachDiesSound = content.Load <SoundEffect>("Sound Effects/Peach Dies"); LevelClearSound = content.Load <SoundEffect>("Sound Effects/LevelClear"); SpriteBatch = new SpriteBatch(graphics); PlayerName = playerName; Score = Constants.SCORE; Lives = Constants.LIVES; TimeRemaining = Constants.TIMER_MAIN_GAME; passedSeconds = Constants.ZERO; passedSecondsGradeRoom = Constants.ZERO; passedSecondsCoinRoom = Constants.ZERO; counting = false; TopLeft = new Vector2(Constants.ZERO, -5); TopCenter = new Vector2((graphics.Viewport.Width / 2) - 45, -5); Top2ndLeft = new Vector2(TopCenter.X / 2, -5); Top2ndRight = new Vector2(Top2ndLeft.X * 3, -5); TopRight = new Vector2(graphics.Viewport.Width - 90, -5); StartingPoint = Vector2.Zero; Game = game; MiniCoin = MakeCoinSprite(content, graphics); MiniAvatar = MakeAvatarSprite(content, graphics); Victory = false; FlagPoints = Constants.FLAG_POINTS; FlagPointsAdded = true; GradeRoom = false; CoinRoom = false; GPA = Constants.GPA; Grades = Constants.GRADES; TimeRemainingGradeRoom = Constants.TIMER_GRADE_ROOM; TimeRemainingCoinRoom = Constants.TIMER_GRADE_ROOM; FireBallPowerUp = false; CoinRoomCoin = Constants.ZERO; CoinMultiplier = false; }
static void Main() { using (var game = new GameMain()) game.Run(); }