@ultrapowa/sc-tools
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "@ultrapowa/sc-tools", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A tool to unpack, repack, edit and play 2d animations from Supercell games", | ||
@@ -5,0 +5,0 @@ "keywords": ["supercell", "sc", "clash of clans", "clash royale", "brawl stars", "boom beach", "hay day", "reverse"], |
@@ -13,5 +13,3 @@ # SC Tools | ||
- Add engine web example | ||
- Publish to NPM | ||
- Check sc compression perf | ||
- Update readme | ||
@@ -23,8 +21,8 @@ ## Recipes | ||
```js | ||
import { basename, resolve, join } from 'path'; | ||
import { basename, join } from 'path'; | ||
import glob from 'glob'; | ||
import { unpack } from '@ultrapowa/sc-tools'; | ||
const sourcePattern = resolve('path/to/apk/assets/e30a1e4a93c76bea755877299ebebf535e1b3d73/sc/*.sc'); | ||
const projectDir = resolve('path/to/local/workspace/brawl-stars-33.127'); | ||
const sourcePattern = 'path/to/apk/assets/e30a1e4a93c76bea755877299ebebf535e1b3d73/sc/*.sc'; | ||
const projectDir = 'path/to/local/workspace/brawl-stars-33.127'; | ||
@@ -55,8 +53,8 @@ const files = glob.sync(sourcePattern) | ||
```js | ||
import { basename, resolve, join } from 'path'; | ||
import { basename, join } from 'path'; | ||
import glob from 'glob'; | ||
import { unpack, buildPngShapes } from '@ultrapowa/sc-tools'; | ||
const sourcePattern = resolve('path/to/apk/**/*.sc'); | ||
const projectDir = resolve('path/to/local/workspace/brawl-stars-38.111'); | ||
const sourcePattern = 'path/to/apk/**/*.sc'; | ||
const projectDir = 'path/to/local/workspace/brawl-stars-38.111'; | ||
@@ -76,2 +74,4 @@ const files = glob.sync(sourcePattern) | ||
This part of the code is not migrated yet. | ||
```js | ||
@@ -78,0 +78,0 @@ import path from 'path'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2625
102439