0.2.1 • Published 2 months ago

symbol-art-parser v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Symbol Art Parser

jsdelivr CDN NPM Downloads Open in unpkg npm version Open in Gitpod

TypeScript Phantasy Star Online 2's Symbol Art Parser Libraly.

This library only implements parsing and reading / writing of sar files, and does not include drawing processing.

Sample

Usage

import SymbolArt from 'symbol-art-parser';

const sar = new SymbolArt();

const reader = new FileReader();
reader.onload = () => {
  // Load SymbolArt
  sar.data = reader.result;
};
reader.readAsArrayBuffer('[*.sar file]');

// Dump Symbol Art to json.
const json = sar.json;

// Set Symbol Art from json.
sar.json = json;

// Save SymbolArt as ArrayBuffer
const data = sar.data;

Symbol Art Json Format

See SymbolArtInterface and LayerInterface.

Or use JSON Schema file.

https://github.com/logue/symbol-art-parser/blob/master/schema.json

Reference

  • saredit - The processing referred to this program.

License

MIT

© 2022-2024 By Logue.

All rights to the copyrighted works (images, data, audios, texts, etc.) used in "PSO2: NGS" are owned by SEGA Corporation or its licensors.

0.2.1

2 months ago

0.2.0

4 months ago

0.1.3

6 months ago

0.1.2

9 months ago

0.1.0

1 year ago

0.0.3

1 year ago

0.1.1

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago