- [NEW] Ficades les habitacions amb el nou format YAML

- [NEW] Afegit el fkYAML de una capçalera
- [NEW] El treeview ja funciona com deu mana
- [NEW] En el treeview ja funciona el scroll amb el mouse sheel
- [NEW] El treeview ja mostra les habitacions i els enemics (falten items)
This commit is contained in:
2025-11-18 13:13:07 +01:00
parent 22b62dd46b
commit f05dec21b1
186 changed files with 20401 additions and 6579 deletions

90
data/room/54.yaml Normal file
View File

@@ -0,0 +1,90 @@
# THE BASEMENT
room:
number: "54"
name: "THE BASEMENT"
bgColor: black
border: blue
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: "18"
down: null
left: null
right: "55"
# Item display colors
itemColor1: yellow
itemColor2: blue
# Conveyor belt direction: left (-1), none (0), right (1)
autoSurface: 0
# Tilemap: 16 rows × 32 columns (256×192 pixels @ 8px/tile)
# Values are 0-based tile indices (0 = empty)
tilemap:
- [15, 15, 15, 15, 15, 15, 15, 15, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, -1, -1, -1, -1, 518, 348, 348, 348, 15, 15, 15, 15, 15, 15]
- [15, 15, 15, 15, 15, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, -1, -1, -1, -1, -1, -1, 301, 15, 15, 15]
- [15, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, -1, -1, -1, -1, -1, -1, -1, -1, -1, 301, 15]
- [15, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 31, 31, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15]
- [15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15]
- [15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, -1, -1, -1, -1, -1, -1, -1, 348, 15, 15, -1, -1, -1, -1, -1, -1]
- [15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, -1, -1, -1, -1, -1, -1, 348, 15, 15, 301, -1, -1, -1, -1, -1, -1, -1]
- [31, -1, -1, -1, -1, -1, -1, 505, 31, 31, 31, 31, 31, 31, -1, -1, -1, -1, -1, -1, -1, -1, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1]
- [31, -1, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
- [31, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
- [31, 31, 31, 31, 31, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 408, 408, 408, 408, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
- [31, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
- [31, -1, -1, -1, -1, -1, -1, 408, 408, 408, 408, 408, 408, 408, 408, -1, -1, -1, -1, -1, -1, -1, -1, 518, 15, 15, 15, 15, 15, 15, 15, 15]
- [31, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 31, 15, 133, 15, 133, 15, 15, 15, 15]
- [31, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 31, 31, 15, 133, 15, 133, 15, 15, 15, 15]
- [31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348]
# Enemies in this room
enemies:
- animation: spider.yaml
position: {x: 2, y: 14}
velocity: {x: 30.0, y: 0}
boundaries:
x1: 2
y1: 14
x2: 18
y2: 14
color: magenta
- animation: spider.yaml
position: {x: 10, y: 1}
velocity: {x: 0, y: 60.0}
boundaries:
x1: 10
y1: 1
x2: 10
y2: 6
color: yellow
- animation: spider.yaml
position: {x: 7, y: 11}
velocity: {x: 18.0, y: 0}
boundaries:
x1: 7
y1: 11
x2: 14
y2: 11
color: cyan
# Items in this room
items:
- tileSetFile: items.gif
tile: 35
position: {x: 15, y: 9}
counter: 1
- tileSetFile: items.gif
tile: 35
position: {x: 1, y: 14}
counter: 2
- tileSetFile: items.gif
tile: 35
position: {x: 1, y: 9}
counter: 3