tmx.py 297B

1234567891011121314151617
  1. # coding: utf-8
  2. import tmx
  3. from synergine2_xyz.map import TMXMap
  4. from synergine2_xyz.map import XYZTile
  5. class TerrainTile(XYZTile):
  6. pass
  7. class TileMap(TMXMap):
  8. xyz_tile_class = TerrainTile
  9. def get_default_tileset(self) -> tmx.Tileset:
  10. return self.tmx_tilesets['terrain']