From b83b596b0f79fa1d5b95c462d3fa7171ff221a19 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 11 Nov 2018 00:56:22 +0100 Subject: Add support for simple periodic sprite animations --- dist/resources/entity/square.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dist/resources/entity/square.json (limited to 'dist/resources/entity') 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] + ] + } +} -- cgit v1.2.3