//doors that will open when the player has acquired the key public Door(Game game, string orientation) : base(game, "closed_door_" + orientation + "_metal", true) { openSprite = new BasicSprite(game, "open_door_" + orientation + "_metal", false); doorLight = new LightEffect(game, "Lights\\open_door_" + orientation + "_light", Color.White); doorLight.hidden = true; }
public void addLight(LightEffect l) { l.addTo(lights); }