bitcraft / pyscroll

make scrolling games with animated maps in pygame
GNU General Public License v3.0
177 stars 28 forks source link

Make use of the TiledMapData.visible_tile_layers property #41

Closed nmfm closed 3 years ago

nmfm commented 3 years ago

Shouldn't self.visible_tile_layers be used here instead of self.tmx.visible_tile_layers?

https://github.com/bitcraft/pyscroll/blob/master/pyscroll/data.py#L389

Otherwise, what's the point of overriding that method in a subclass?

Thanks

bitcraft commented 3 years ago

That is a DataAdapter class and is meant to operate directly on TMX data.