projects
/
butaba-adventures.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Began working on NPC code
[butaba-adventures.git]
/
level.py
diff --git
a/level.py
b/level.py
index
5aea98c
..
de8d76f
100644
(file)
--- a/
level.py
+++ b/
level.py
@@
-13,7
+13,8
@@
import object
# Class to represent levels
class Level:
# 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
self.background = bgdata
# portals for level above, below, left or right of the character
self.levelleft = levelleft
@@
-23,3
+24,6
@@
class Level:
# objects in the level as a list
self.objects = objects
# objects in the level as a list
self.objects = objects
+
+ # npcs in the level as a list
+ self.npcs = npcs