Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
erysdren committed Aug 8, 2023
1 parent d31af9e commit 5dd6efc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ Decompile sprite: `sprconv sprite.spr`

Compile sprite: `sprconv sprite.json`

Use in other scripts:

```python
from sprconv import sprite_from_json
from sprconv import json_from_sprite

sprite_from_json(json_filename)
json_from_sprite(sprite_filename)
```

### Example JSON script:

```json
Expand Down

0 comments on commit 5dd6efc

Please sign in to comment.