Exemplo n.º 1
0
 public IGameState(GameScreens gs)
 {
     gameScreen = gs;
 }
Exemplo n.º 2
0
 /// <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();
 }
Exemplo n.º 3
0
 public GameOver(GameScreens gs, SpriteFont font) : base(gs)
 {
 }
Exemplo n.º 4
0
 public GamePlaying(GameScreens gs, SpriteFont font) : base(gs)
 {
 }
Exemplo n.º 5
0
 public GameStart(GameScreens gs, SpriteFont font) : base(gs)
 {
     gamescreen = gs;
     startFont  = gamescreen.font;
 }