mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-15 04:10:00 -06:00
load_file in map.py sets the tiles based on a json file
This commit is contained in:
BIN
triple-dungeon/resources/images/tiles/wall_tile.png
Normal file
BIN
triple-dungeon/resources/images/tiles/wall_tile.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
19
triple-dungeon/resources/levels/box.json
Normal file
19
triple-dungeon/resources/levels/box.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"elements" : {
|
||||
"w" : "resources/images/tiles/wall_tile.png",
|
||||
" " : "resources/images/tiles/floor_tile.png",
|
||||
"e" : ""
|
||||
},
|
||||
"structure" : [
|
||||
["w", "w", "w", "w", "w", "w", "w", "w", "w", "w"],
|
||||
["w", " ", " ", " ", " ", " ", " ", " ", " ", "w"],
|
||||
["w", " ", " ", " ", " ", " ", " ", " ", " ", "w"],
|
||||
["w", " ", " ", " ", " ", " ", " ", " ", " ", "w"],
|
||||
["w", " ", " ", " ", " ", " ", " ", " ", " ", "w"],
|
||||
["w", " ", " ", " ", " ", " ", " ", " ", " ", "w"],
|
||||
["w", " ", " ", " ", " ", " ", " ", " ", " ", "w"],
|
||||
["w", " ", " ", " ", " ", " ", " ", " ", " ", "w"],
|
||||
["w", " ", " ", " ", " ", " ", " ", " ", " ", "w"],
|
||||
["w", "w", "w", "w", "w", "w", "w", "w", "w", "w"]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user