protected override void Initialize() { //initialize Background-Object bgSpace = new Background_Space(this); bgSpace.Initialize(); base.Initialize(); }
public void resetGame() { player = new Player(this, scrollSpeed); player.setSize(height, width); player.Initialize(); em = new EnemyManager(this, width, height); em.Initialize(); pum = new PowerUpManager(this, width, height); pum.Initialize(); player.LoadContent(Content); em.LoadContent(Content); pum.LoadContent(Content); bgSpace = new Background_Space(this); bgSpace.Initialize(); }