Beispiel #1
0
 public void GetViewPort(Viewport viewPort)
 {
     Collision_Manager.GetViewPort(viewPort);
     Asteroid_Manager.GetViewPort(viewPort);
     Ship_Manager.GetViewPort(viewPort);
     Projectile_Manager.GetViewPort(viewPort);
 }
Beispiel #2
0
 public void DrawGameScreen(SpriteBatch spriteBatch)
 {
     Asteroid_Manager.Draw(spriteBatch);
     PowerUp_Manager.Draw(spriteBatch);
     Ship_Manager.Draw(spriteBatch);
     Projectile_Manager.Draw(spriteBatch);
     Explosions.Draw(spriteBatch);
     HUD.Draw(spriteBatch);
 }
Beispiel #3
0
        public void UpdateGameScreen(GameTime gameTime, bool otherScreenHasFocus)
        {
            if (otherScreenHasFocus)
            {
                return;
            }

            Collision_Manager.Update(gameTime);
            Asteroid_Manager.Update(gameTime);
            Ship_Manager.Update(gameTime);
            Projectile_Manager.Update(gameTime);
            PowerUp_Manager.Update(gameTime);
            Explosions.Update(gameTime);
            GameOver_Manager.Update(gameTime);
        }
Beispiel #4
0
 private void Awake()
 {
     totalPower = 5;
     S          = this;
 }
Beispiel #5
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         DestroyImmediate(gameObject);
     }
 }