Beispiel #1
0
        protected override void Update(GameTime gameTime)
        {
            timeDifference = (float)gameTime.ElapsedGameTime.TotalSeconds;
            time           = (float)((gameTime.TotalGameTime.TotalMilliseconds / 2000) % 2 * Math.PI);
            fps            = 1 / (timeDifference);
            clipPlayer.updateFps(fps);

            nwClient.UpdatePos(timeDifference);
            nwClient.GetMsgs();

            HandleScenesInput(gameTime);

            base.Update(gameTime);
        }