示例#1
0
文件: InGame.cs 项目: hejdan/GamJam
        public void Update(GameTime gameTime)
        {
            world.Update(gameTime);
            player.Update(gameTime);
            collect.Update(gameTime);
            camera.Update();
#if DEBUG
            UpdateFreeCamera();
#endif

            if (player?.spotsLeft == 1 || Keyboard.GetState().IsKeyDown(Keys.Home))
            {
                // Win
                Victory(collect.timeScore);
            }

        }