Began working on NPC code
[butaba-adventures.git] / level.py
index 4ba77a9..de8d76f 100644 (file)
--- a/level.py
+++ b/level.py
@@ -10,13 +10,11 @@ import object
 # second item is tile col in the tilest
 # third item defines whether solid or not (0 or 1)
 
-# constants for in-game use
-KEY_CHEST1 = 1000
-KEY_ROOM1 = 1001
 
 # Class to represent levels
 class Level:
-       def __init__ (self, bgdata, levelleft=None, levelright=None, leveltop = None, levelbottom = None, objects=[]):
+       def __init__ (self, bgdata, levelleft=None, levelright=None,
+                               leveltop = None, levelbottom = None, objects=[], npcs=[]):
                self.background = bgdata
                # portals for level above, below, left or right of the character
                self.levelleft = levelleft
@@ -26,3 +24,6 @@ class Level:
 
                # objects in the level as a list
                self.objects = objects
+
+               # npcs in the level as a list
+               self.npcs = npcs