diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-11-21 21:44:11 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-11-21 21:44:11 +0100 |
commit | 2c6cd362c32a2e9460e5ddebd85f050b9b5ab4e4 (patch) | |
tree | 7b02c4094968629dda47ccab5eae1c49314ffb87 /dist/resources | |
parent | 4443ca205812f4da4aa0ed1bf4897e731107616b (diff) | |
download | rpgedit-2c6cd362c32a2e9460e5ddebd85f050b9b5ab4e4.tar rpgedit-2c6cd362c32a2e9460e5ddebd85f050b9b5ab4e4.zip |
Allow using animated entities as map tiles
A more optimized implementation for animated tiles is planned.
Diffstat (limited to 'dist/resources')
-rw-r--r-- | dist/resources/entity/water.json | 12 | ||||
-rw-r--r-- | dist/resources/map/test.json | 34 | ||||
-rw-r--r-- | dist/resources/sprite/entity/water.png | bin | 0 -> 1718 bytes | |||
-rw-r--r-- | dist/resources/sprite/tile/water.png | bin | 778 -> 0 bytes |
4 files changed, 29 insertions, 17 deletions
diff --git a/dist/resources/entity/water.json b/dist/resources/entity/water.json new file mode 100644 index 0000000..79c7780 --- /dev/null +++ b/dist/resources/entity/water.json @@ -0,0 +1,12 @@ +{ + "sprite": "water", + "frames": 4, + "animation": { + "sequence": [ + [500, 0], + [500, 1], + [500, 2], + [500, 3] + ] + } +} diff --git a/dist/resources/map/test.json b/dist/resources/map/test.json index ec3b3fb..91efc19 100644 --- a/dist/resources/map/test.json +++ b/dist/resources/map/test.json @@ -1,22 +1,22 @@ { "tiles": [ - "stone/floor", - "stone/plate", - "stone/wall/top", - "stone/wall/right", - "stone/wall/bottom", - "stone/wall/left", - "stone/wall/top_left", - "stone/wall/top_right", - "stone/wall/bottom_right", - "stone/wall/bottom_left", - "stone/wall/top_left_inner", - "stone/wall/top_right_inner", - "stone/wall/bottom_right_inner", - "stone/wall/bottom_left_inner", - "water", - "stone/border/bottom_right", - "stone/border/bottom_left" + "-stone/floor", + "-stone/plate", + "-stone/wall/top", + "-stone/wall/right", + "-stone/wall/bottom", + "-stone/wall/left", + "-stone/wall/top_left", + "-stone/wall/top_right", + "-stone/wall/bottom_right", + "-stone/wall/bottom_left", + "-stone/wall/top_left_inner", + "-stone/wall/top_right_inner", + "-stone/wall/bottom_right_inner", + "-stone/wall/bottom_left_inner", + "@water", + "-stone/border/bottom_right", + "-stone/border/bottom_left" ], "layers": [ { diff --git a/dist/resources/sprite/entity/water.png b/dist/resources/sprite/entity/water.png Binary files differnew file mode 100644 index 0000000..61c2d4f --- /dev/null +++ b/dist/resources/sprite/entity/water.png diff --git a/dist/resources/sprite/tile/water.png b/dist/resources/sprite/tile/water.png Binary files differdeleted file mode 100644 index 4a96543..0000000 --- a/dist/resources/sprite/tile/water.png +++ /dev/null |