示例#1
0
 public void Update()
 {
     foreach (EffectNode EN in Nodes)
     {
         EN.Update(TheCardGameState);
     }
 }
示例#2
0
        protected override void Update(GameTime gameTime)
        {
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                Exit();
            }

            player.Update(gameTime);

            if (EnemyCubes.Count < 5)
            {
                EnemyCubes.Add(new Enemy(new Vector2(random.Next(1, 800), random.Next(1, 400)), EnemyCubeTexture, BulletTexture, spriteBatch, 0.02f, 15));
            }

            foreach (Enemy EN in EnemyCubes)
            {
                EN.Update(gameTime);
            }
            base.Update(gameTime);
        }