public SpriteController(SpriteBatch SB, GameController gameController, GameServiceContainer gameServiceContainer, GraphicsDevice graphicsDevice) { this.gameController = gameController; _graphicsDevice = graphicsDevice; spriteBatch = SB; if (content == null) content = new ContentManager(gameServiceContainer, "Content"); LoadSprites(); LoadFonts(); }
public override void LoadContent() { gameController = new GameController(); spriteController = new SpriteController(ScreenManager.SpriteBatch, gameController, ScreenManager.Game.Services, ScreenManager.GraphicsDevice); gameController.RegisterSpriteController(spriteController); GameController.Ammo = GameController.Ammos.Bullet; gameController.Reset(); //TODO hvis xbox last opp en ovenforliggende skjer med kun et alternativ, nemlig ready. Legg ved bilde av kontrollerne SoundController.StartBackgroundMusic(); base.LoadContent(); }