+ # 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)
+ gold75 = gameobjects.GoldCoins (6, 2, self.img_goldcoins, 75)
+
+ chest1.objects = [ gold50, gold75 ]
+
+ # create the levels
+ self.level1 = level.Level (cPickle.load (file ("levels/level1.dat")),
+ objects = [ chest1 ] )