Add-on module for loading 2D puppets and displaying them in the game.
<INP Format information
Currently supported:
- Loading .inp format including JSON data and textures.
- Displays nodes of type Part (the rest are ignored)
- Reading the transformation of the node, identifier, type, Mesh data, transparency.
- Setting the 'part' texture.
- Saving to an .inp file.
- Sorting zoffset.
Not implemented:
- Mask mod.
- Path Deform.
- JointBindingData.
There are some modifications that are not described in the reference:
- It is not necessary to specify the index data.
For rendering, you need a context. The format is loaded in the following way:
Puppetpuppet = newPuppet();
puppet.load("data.inp"); // or puppet.loadFromMem(...);
The function render.draw is used for displaying, since this is an IDrawable object:
Add-on module for loading 2D puppets and displaying them in the game. <INP Format information
Currently supported: - Loading .inp format including JSON data and textures. - Displays nodes of type Part (the rest are ignored) - Reading the transformation of the node, identifier, type, Mesh data, transparency. - Setting the 'part' texture. - Saving to an .inp file. - Sorting zoffset.
Not implemented: - Mask mod. - Path Deform. - JointBindingData.
There are some modifications that are not described in the reference: - It is not necessary to specify the index data.
For rendering, you need a context. The format is loaded in the following way:
The function render.draw is used for displaying, since this is an IDrawable object:
Authors implementations for Tida: TodNaz Authors INP format: LunaTheFoxgirl