Implement loading tile sets from JSON files
This commit is contained in:
parent
718679c13b
commit
b4635cdb99
3 changed files with 53 additions and 16 deletions
26
assets/tilesets/terrain.json
Normal file
26
assets/tilesets/terrain.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"texture": "terrain.png",
|
||||
"tile_size": 32,
|
||||
"tiles": [
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
{
|
||||
"x": 1,
|
||||
"y": 0
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 0
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue