+ # set up the objects first
+ chest1 = gameobjects.Chest (2, 6, "chest", self.img_chest, constants.KEY_CHEST1, True)
+ chest2 = gameobjects.Chest (6, 6, "chest", self.img_chest, constants.KEY_CHEST2, True)
+ key1 = gameobjects.Key (5, 3, "a chest key", self.img_key2, constants.KEY_CHEST1)
+ key2 = gameobjects.Key (5, 3, "a chest key", self.img_key, constants.KEY_CHEST2)
+ potion = gameobjects.HealthPotion (5, 2, self.img_redpotion)
+ gold50 = gameobjects.GoldCoins (6, 2, self.img_goldcoins, 50)
+ gold25 = gameobjects.GoldCoins (6, 2, self.img_goldcoins, 25)
+ gold10 = gameobjects.GoldCoins (6, 2, self.img_goldcoins, 10)
+ potion2 = gameobjects.HealthPotion (5, 2, self.img_redpotion)
+ potion3 = gameobjects.HealthPotion (5, 2, self.img_redpotion)
+
+ npc_bulisa = npcs.Bulisa (4, 3, self.img_bulisa, self.img_bulisa_portrait,
+ [ os.path.join ("dialogues", "bulisa1.dlg") ])
+
+ chest1.objects = [ gold50, gold25, potion2, potion3, key2, gold10 ]
+
+ # create the levels
+ self.level1 = level.Level (cPickle.load (file ("levels/level1.dat")),
+ objects = [ chest1 ] )
+
+ self.level1w = level.Level (cPickle.load (file ("levels/level1w.dat")))