public IGameState(GameScreens gs) { gameScreen = gs; }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { b = new Ball(new Vector2(graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight / 2), new Vector2(300, 300)); gs = new GameScreens(); base.Initialize(); }
public GameOver(GameScreens gs, SpriteFont font) : base(gs) { }
public GamePlaying(GameScreens gs, SpriteFont font) : base(gs) { }
public GameStart(GameScreens gs, SpriteFont font) : base(gs) { gamescreen = gs; startFont = gamescreen.font; }