Exemplo n.º 1
0
        public void Update(float elapsed)
        {
            player.Update(elapsed);
            foreach (Block block in blocks)
            {
                block.Collide(player);
            }

            camera.Update(player.Position);

            foreach (Light1 light in lights)
            {
                light.Update(elapsed);
            }
        }
Exemplo n.º 2
0
        public void Update(float elapsed)
        {
            player.Update(elapsed);

            foreach (IObstacle obstacle in obstacles)
            {
                obstacle.Collide(player);
            }

            camera.Update(player);

            foreach (Light light in lights)
            {
                light.Update(elapsed);
            }
        }