Beispiel #1
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()
 {
     // TODO: Add your initialization logic here
     this.IsMouseVisible = true;
     screen    = new LogoScreen(this.Content);
     gamestate = GameState.LOGO_SCREEN;
     base.Initialize();
     nativeWindow = new TryNativeWindow.MyNativeWindow(this.Window.Handle);
 }
Beispiel #2
0
 public GameScreen(ContentManager content, TryNativeWindow.MyNativeWindow nativeWindow)
 {
     pause = new PauseScreen(nativeWindow);
     pause.Content(content);
     nukes.contents(content);
     buildings.Building_Type(content);
     clouds     = content.Load <Texture2D>("clouds");
     background = content.Load <Texture2D>("Background");
     font       = content.Load <SpriteFont>("Bomb_Font");
 }
Beispiel #3
0
 public PauseScreen(TryNativeWindow.MyNativeWindow nativeWindow)
 {
     this.nativeWindow = nativeWindow;
     Returns           = Game1.GameState.GAME_SCREEN;
     this.nativeWindow.Attach();
 }