Fixed some stuff, procrastinating the real problem
This commit is contained in:
@@ -2,10 +2,10 @@ from dusk.event import Event
|
||||
from editortool.map.mapdata import MAP_WIDTH, MAP_HEIGHT, MAP_DEPTH
|
||||
|
||||
class Map:
|
||||
def __init__(self):
|
||||
def __init__(self, parent):
|
||||
self.parent = parent
|
||||
self.position = [0, 0, 0] # x, y, z
|
||||
self.positionEvent = Event()
|
||||
self.chunks = []
|
||||
|
||||
def moveTo(self, x, y, z):
|
||||
self.position = [x, y, z]
|
||||
@@ -16,7 +16,4 @@ class Map:
|
||||
self.position[0] + x,
|
||||
self.position[1] + y,
|
||||
self.position[2] + z
|
||||
)
|
||||
|
||||
# Singleton instance
|
||||
map = Map()
|
||||
)
|
||||
Reference in New Issue
Block a user