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