Esempio n. 1
0
        protected override void Update(GameTime gameTime)
        {
            KeyMouseReader.Update();
            if (KeyMouseReader.KeyClick(Keys.Escape))
            {
                Exit();
            }

            //Calculate delta and multiply it with 2.2.
            float delta = (float)gameTime.ElapsedGameTime.TotalSeconds;

            delta *= 2.2f;

            //Update the simulation world.
            world.Update(delta);

            base.Update(gameTime);
        }