Implemented NPC movement (random)
[butaba-adventures.git] / level.py
index 5aea98c..e634b00 100644 (file)
--- a/level.py
+++ b/level.py
@@ -1,7 +1,5 @@
 # level.py - level data and class
 
-import object
-
 # Background level data
 # A level is a list of list of tuples. Level is a 10x10 room of 48 pixel images
 #
@@ -13,7 +11,8 @@ import object
 
 # 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
@@ -23,3 +22,6 @@ class Level:
 
                # objects in the level as a list
                self.objects = objects
+
+               # npcs in the level as a list
+               self.npcs = npcs