![]() ![]() Instead, perform load only on the compressed parts of the map that you want to read. However, if that is not the case, and you only want to read some part of it, you can hold off on performing the load method on the map struct. ![]() If you want to save the map again, then the library will decompress everything anyways (its included in the save method). To compensate for this, the library will not load layer, image and sound data on parsing, instead this can be done manually. Parts of the binary map data are compressed with zlib compression, this is the main slowdown factor when loading maps. ![]() 0, saving maps in webassembly should produce the same binary output. Note that the library does support compilation to webassembly. The binary map format is documented in the libtw2 repo here. Compatibility with all Teeworlds (0.7) maps and DDNet (0.6) maps.Safely parse, edit and save Teeworlds and DDNet maps.Īlso check out: TwGpu (Renderer), Python bindings, Blender Addon
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |