Ejemplo n.º 1
0
 protected override void Initialize()
 {
     //initialize Background-Object
     bgSpace = new Background_Space(this);
     bgSpace.Initialize();
     base.Initialize();
 }
Ejemplo n.º 2
0
        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();
        }