public static void turnLightOn()
 {
     lights.Clear();
     map = new Lightmap(12, 67, 40);
     lights.Add(new Light(true));
     SoundComponent.decreaseFrequency();
 }
        public override void Initialize()
        {
            Random rand = new Random();

            map = new Lightmap(12, 67, 40);//15,54,32
            lights.Add(new Light(true));
            base.Initialize();
        }
 public static void passLights(List <Light> newLights)
 {
     lights.Clear();
     map = new Lightmap(12, 67, 40);
     lights.Add(new Light(true));
     foreach (Light l in newLights)
     {
         lights.Add(l);
     }
 }
 public static void turnOffLights()
 {
     lights.Clear();
     map = new Lightmap(12, 67, 40);
     SoundComponent.increaseFrequency();
 }
Exemple #5
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            map = new Lightmap(40, 40, 12);
        }