diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-11-11 00:56:22 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-11-11 01:46:08 +0100 |
commit | b83b596b0f79fa1d5b95c462d3fa7171ff221a19 (patch) | |
tree | 0601d178aff79a47cade680fc2a193cd67108aca /dist/resources | |
parent | 426b2c37ff72d8de40f716365c8301449acfdfcb (diff) | |
download | rpgedit-b83b596b0f79fa1d5b95c462d3fa7171ff221a19.tar rpgedit-b83b596b0f79fa1d5b95c462d3fa7171ff221a19.zip |
Add support for simple periodic sprite animations
Diffstat (limited to 'dist/resources')
-rw-r--r-- | dist/resources/entity/square.json | 23 | ||||
-rw-r--r-- | dist/resources/sprite/entity/square.png | bin | 808 -> 528 bytes |
2 files changed, 23 insertions, 0 deletions
diff --git a/dist/resources/entity/square.json b/dist/resources/entity/square.json new file mode 100644 index 0000000..643cfb6 --- /dev/null +++ b/dist/resources/entity/square.json @@ -0,0 +1,23 @@ +{ + "sprite": "square", + "collision": [ + { + "type": "polygon", + "vertices": [ + [-0.46875, -0.46875], + [-0.46875, 0.46875], + [0.46875, 0.46875], + [0.46875, -0.46875] + ] + } + ], + "frames": 4, + "animation": { + "sequence": [ + [500, 0], + [500, 1], + [500, 2], + [500, 3] + ] + } +} diff --git a/dist/resources/sprite/entity/square.png b/dist/resources/sprite/entity/square.png Binary files differindex cdc6981..9fcb9f9 100644 --- a/dist/resources/sprite/entity/square.png +++ b/dist/resources/sprite/entity/square.png |