Allow using animated entities as map tiles
A more optimized implementation for animated tiles is planned.
This commit is contained in:
parent
4443ca2058
commit
2c6cd362c3
5 changed files with 133 additions and 42 deletions
12
dist/resources/entity/water.json
vendored
Normal file
12
dist/resources/entity/water.json
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"sprite": "water",
|
||||
"frames": 4,
|
||||
"animation": {
|
||||
"sequence": [
|
||||
[500, 0],
|
||||
[500, 1],
|
||||
[500, 2],
|
||||
[500, 3]
|
||||
]
|
||||
}
|
||||
}
|
34
dist/resources/map/test.json
vendored
34
dist/resources/map/test.json
vendored
|
@ -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
BIN
dist/resources/sprite/entity/water.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
dist/resources/sprite/tile/water.png
vendored
BIN
dist/resources/sprite/tile/water.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 778 B |
Reference in a new issue