Skip to content

1.0.0

Latest
Compare
Choose a tag to compare
@kishtarn555 kishtarn555 released this 15 Jan 08:44
· 4 commits to main since this release

Features

  • Adds full support for KBI format, a new format created for small representation of ReKarel worlds
    • Added KarelBinarySerializer class
      • KarelBinarySerializer.serialize(world), takes a world and returns a Buffer with its binary representation in KBI format
    • Added deserializeKarelBinary(targetWorld, data) which takes data from a Buffer in KBI and changes the targetWorld to it.
  • Adds support to read MDO/KEC format, a legacy file format for Karel worlds.
    • deserializeMdoKec(targetWorld, mdo, kec?), takes the data from a mdo world a a Buffer and passes it to the targetWorld, if it is also provided with the KEC file, it passes its data to it, otherwise it uses default values.

Note: You can read the KBI specs here