feat: Unfinished level loading

- Added level struct
- Added loading tests
- Partially implemented level setting up system
This commit is contained in:
Alexey 2026-03-27 18:31:46 +03:00
commit 0ab2620724
9 changed files with 414 additions and 5 deletions

View file

@ -1,3 +1,6 @@
[meta]
tiles = [ "floors", "walls", "wall_connectors" ]
[[tiles.floors]]
x = 0
y = 0
@ -72,7 +75,7 @@ lock = "left"
[[interactive.doors]]
x = 11
y = 1
y = 5
facing = "left"
[[interactive.stairs]]
@ -94,7 +97,7 @@ y = 5
w = 4
h = 4
[interactive.containers.items]
[[interactive.containers.items]]
id = "lockpick"
x = 2
y = 2
@ -105,6 +108,6 @@ y = 5
w = 2
h = 2
[interactive.containers.items]
[[interactive.containers.items]]
id = "lockpick"
rotated = true

View file

@ -1,3 +1,6 @@
[meta]
tiles = [ "floors", "walls", "wall_connectors" ]
[tiles]
floors = [
{ x = 0, y = 0, w = 16 },
@ -26,7 +29,7 @@ doors = [
{ x = 11, y = 5, facing = "left" },
]
stairs = [
{ x = 8, y = 1, floors = 2 },
{ x = 8, y = 1 },
]
containers = [
{ x = 2, y = 1 },