Move the action perform logic to Action.perform() on each Action subclass
Rename Object to Entity to avoid name clashes with Python.object
This commit is contained in:
parent
cde6ea2065
commit
5ce26e310b
4 changed files with 49 additions and 57 deletions
|
@ -88,4 +88,8 @@ class Map:
|
|||
# fg=(255, 255, 255), bg=(80, 40, 40), clear=True)
|
||||
|
||||
size = self.size
|
||||
console.tiles_rgb[0:size.width, 0:size.height] = self.tiles["dark"]
|
||||
console.tiles_rgb[0:size.width, 0:size.height] = self.tiles["dark"]
|
||||
|
||||
class RectangularRoom:
|
||||
def __init__(self, bounds: Rect):
|
||||
self.bounds = bounds
|
Loading…
Add table
Add a link
Reference in a new issue