pytiled_parser icon indicating copy to clipboard operation
pytiled_parser copied to clipboard

Automatically convert infinite map data to finite

Open Cleptomania opened this issue 4 years ago • 2 comments

As reported in https://github.com/pythonarcade/arcade/issues/955 when an infinite map is loaded, the data is stored differently using chunks as opposed to the normal data array you would see in a finite map.

The proposed fix is to automatically create that array for infinite maps, as most games/engines would exclusively be working with finite maps, and the infinite map feature is intended just for the editor more than anything. An infinite map would still store the chunk data and stuff, so re-saving a map or using that data from an engine would still be possible, but it would make it so a game or engine needs no specific code to have support for infinite maps.

Cleptomania avatar Sep 13 '21 14:09 Cleptomania

Gonna try and get this in 2.1

Cleptomania avatar Jan 09 '22 22:01 Cleptomania

Moving this to the version 2.4 milestone. This may take priority over serialization, but we'll see what happens, if serialization is done before this, then we will probably just release and push this to 2.5 or later.

The user work-around for this issue right now is re-saving the map as finite using Tiled(or implementing your rendering system using the Chunk data as opposed to the standard finite data array)

Cleptomania avatar Aug 13 '22 05:08 Cleptomania