|
@@ -57,6 +57,7 @@ class MapMiddleware(object):
|
57
|
57
|
class TMXMiddleware(MapMiddleware):
|
58
|
58
|
def get_background_sprite(self) -> 'cocos.sprite.Sprite':
|
59
|
59
|
# TODO: Extract it from tmx
|
|
60
|
+ import cocos
|
60
|
61
|
return cocos.sprite.Sprite(os.path.join(
|
61
|
62
|
self.map_dir_path,
|
62
|
63
|
'background.png',
|
|
@@ -64,6 +65,7 @@ class TMXMiddleware(MapMiddleware):
|
64
|
65
|
|
65
|
66
|
def get_interior_sprite(self) -> 'cocos.sprite.Sprite':
|
66
|
67
|
# TODO: Extract it from tmx
|
|
68
|
+ import cocos
|
67
|
69
|
return cocos.sprite.Sprite(os.path.join(
|
68
|
70
|
self.map_dir_path,
|
69
|
71
|
'background_interiors.png',
|