コード例 #1
0
        public override void Update(GameTime gameTime)
        {
            //Movement from controller
            playerController.HandleInput(gameTime);

            this.Direction = playerController.Direction;
            this.Location += this.Direction * (this.Speed * gameTime.ElapsedGameTime.Milliseconds / 1000);

            KeepPlayerOnScreen();
            base.Update(gameTime);
        }