Example #1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     theBackground = new ScrollingBackground();
     Texture2D bg = Content.Load<Texture2D>("Image1.jpg");
     Tesseract.Engine.Content.ContentManager.Initialize(Content, GraphicsDevice);
     theBackground.Load(GraphicsDevice, bg);
     GameManager.Navigate(new IntroState());
 }
Example #2
0
 public override void OnNavigatedTo(GameState previousState)
 {
     spriteBatch = new SpriteBatch(ContentManager.GraphicsDevice);
     overlay = new UpgradeOverlay(spriteBatch);
     theBackground = new ScrollingBackground();
     Texture2D bg = ContentManager.Load<Texture2D>("Image1.jpg");
     theBackground.Load(ContentManager.GraphicsDevice, bg);
     Instantiate(new LevelManager(level));
     Instantiate(new Player());
     //Instantiate(new SpinningBoss());
     Instantiate(new EnemySpawn());
     //Instantiate(new LevelSpawner(6, 60, new Vector2(0,1)));
     base.OnNavigatedTo(previousState);
 }