RenderTiles

platypus.components. RenderTiles

new RenderTiles()

This component handles rendering tile map backgrounds.

When rendering the background, this component figures out what tiles are being displayed and caches them so they are rendered as one image rather than individually.

As the camera moves, the cache is updated by blitting the relevant part of the old cached image into a new cache and then rendering tiles that have shifted into the camera's view into the cache.

Source:
Listens to Events: