コード例 #1
0
 public void Update(GameTime gameTime)
 {
     tilePartition.Update(gameTime);
     cellSpacePartition.Update(gameTime);
     entityParticle.Update();
     bulletManager.Update();
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: Dankerprouduct/SpaceGame
        public override void Update(GameTime gameTime)
        {
            keyboardState = Keyboard.GetState();
            mouseState    = Mouse.GetState();
            Movement();
            playerParticleSystem.Update();
            if (weapon1 != null)
            {
                weapon1.Update(gameTime, rightHand.position, rotation - MathHelper.ToRadians(90));
            }
            HandUpdate();

            if (Game1.planet.bulletManager.CheckCollision(rect))
            {
                TakeDamage(10);
            }

            oldMState  = mouseState;
            oldKbState = keyboardState;
        }