Allow using animated entities as map tiles

A more optimized implementation for animated tiles is planned.
This commit is contained in:
Matthias Schiffer 2018-11-21 21:44:11 +01:00
parent 4443ca2058
commit 2c6cd362c3
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
5 changed files with 133 additions and 42 deletions

12
dist/resources/entity/water.json vendored Normal file
View file

@ -0,0 +1,12 @@
{
"sprite": "water",
"frames": 4,
"animation": {
"sequence": [
[500, 0],
[500, 1],
[500, 2],
[500, 3]
]
}
}

View file

@ -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": [
{

BIN
dist/resources/sprite/entity/water.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 B