New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

oni-kanim-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

oni-kanim-parser

Parser for Oxygen Not Included animation files.

unpublished
latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

oni-kanim-parser

This library provides paring for Klei KAnim TextAssets from Oxygen Not Included.

These files come in two varieties: build and anim.

  • Build files contain the information of how to extract sprites and their frames from a sprite sheet.
  • Anim files I have yet to look into, but probably how to animate a sprite.

Despite the TextAsset designation, these files are serialized in a custom non-text format.

CLI

This packages includes a command line tool for extracting sprites given a sprite image and a build file. This tool relies on GraphicsMagic to do the heavy lifting, which must be installed to make use of the cli. This tool is optional if you do not intend to run the build in cli tool.

Invoking this tool will split the image into individual folders of frames, spewing the result in the current working directory.

Usage

oni-kanim-parser <image file> <build file>

API

parseKBuild(data: ArrayBuffer): KAnimBuild

Parse a kbuild file from an array buffer. Returns the parsed object.

writeKBuild(build: KAnimBuild): ArrayBuffer

Writes a parsed kbuild object back into raw data for the TextAsset

Keywords

ONI

FAQs

Package last updated on 23 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts