https://github.com/dainfloop/kaboom-animations
https://github.com/dainfloop/kaboom-animations
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dainfloop/kaboom-animations
- Owner: DaInfLoop
- Created: 2022-04-11T14:20:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-11T21:11:18.000Z (about 4 years ago)
- Last Synced: 2024-12-26T13:13:52.108Z (over 1 year ago)
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kaboom-animations
a repo i use to host things for kaboom (use https://kaboom-animations.dainfloop.repl.co to see all of these used)
## how to use?
create a new folder and the following files must be in it:
- sprite.png (the sprite of your character)
- atlas.json (sprite data) (should be a [SpriteAtlasEntry](https://kaboomjs.com/#SpriteAtlasEntry))
- create a pr with it
example (no animations):
- sprite.png

- atlas.json
```json
{} // leave it empty!
```
example (has animations):
- sprite.png ([https://deadrevolver.itch.io/pixel-prototype-player-sprites](https://deadrevolver.itch.io/pixel-prototype-player-sprites))

- atlas.json
```json
{
"sliceX": 14,
"sliceY": 18.9,
"anims": {
"idle": {
"from": 14,
"to": 20,
},
"move": {
"from": 42,
"to": 49
},
"jump": {
"from": 113,
"to": 117
},
"crouch": {
"from": 127,
"to": 131
},
}
}
```