littlektframework / littlekt

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.
https://littlekt.com
Apache License 2.0
321 stars 12 forks source link

Add ability to uncompress GZIP and Zlib #118

Open LeHaine opened 2 years ago

LeHaine commented 2 years ago

Being able to uncompress a ByteArray or a String with GZIP and ZLib as an extension method, Mainly needed to uncompress data when using Tiled map editor.

val data = inputData.uncompress(GZIP) // or ZLib