class Underground(RandomizedTile):
IMGDIR = "underground"
+class Grate(Tile):
+ IMG = os.path.join('grate', 'grate')
+ TILESET = 'bunker'
+
class Tunnel(OrientatedTile):
@classmethod
from pgzero.loaders import ResourceLoader
-from ..gamelib.tiles import Wall, Floor, Tunnel, Underground
+from ..gamelib.tiles import Wall, Floor, Tunnel, Underground, Grate
from ..gamelib.level import Level
neighbors = [x[layer] if x else None for x in neighborhood]
tile['%s image' % layer] = \
TILES[tile[layer]['base']].image(neighbors)
+ # Hack this for now
+ if layer == 'floor' and 'crawl' in tile[layer]['behaviour']:
+ print('Here')
+ tile['floor image'] = Grate.image(neighbors)
levels = LevelLoader('levels')