- [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

82
data/room/21.yaml Normal file
View File

@@ -0,0 +1,82 @@
# ENTER PAKU SIMBEL
room:
number: "21"
name: "ENTER PAKU SIMBEL"
bgColor: bright_black
border: yellow
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: "23"
down: null
left: "22"
right: "20"
# Item display colors
itemColor1: magenta
itemColor2: yellow
# 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:
- [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 529, -1, -1, -1, -1, 20, 20, 20, 20, 20]
- [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, -1, -1, 529, -1, -1, -1, -1, -1, 306, 20, 20]
- [20, 20, 20, 306, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 529, -1, -1, -1, -1, -1, -1, 20]
- [20, 20, 306, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 529, -1, -1, -1, -1, -1, 20]
- [20, -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, 529, -1, -1, -1, -1, 20]
- [-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, 529, -1, 518, 20, 20]
- [-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, 518, 20, 20, 20, 20]
- [-1, -1, -1, -1, -1, 399, -1, -1, -1, 396, 396, 396, 396, 397, 399, 399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 298, 20, 22, 23, 20]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 399, -1, -1, -1, -1, -1, -1, 518, 298, 298, 20, 46, 47, 20]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 298, 298, 298, 20, 20, 20, 20]
- [418, 396, -1, 418, 398, 398, 418, 418, -1, 396, 396, 396, 418, 418, 418, 398, 418, 396, 418, -1, 418, 398, 418, 418, 418, 396, 418, 418, 418, 418, 418, 20]
- [-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, 20]
- [-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, -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, -1, -1]
- [-1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
- [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]
# Enemies in this room
enemies:
- animation: mummy.yaml
position: {x: 13, y: 13}
velocity: {x: 18.0, y: 0}
boundaries:
x1: 9
y1: 13
x2: 18
y2: 13
color: yellow
flip: true
- animation: spider.yaml
position: {x: 13, y: 9}
velocity: {x: 36.0, y: 0}
boundaries:
x1: 4
y1: 9
x2: 21
y2: 9
color: bright_green
flip: true
# Items in this room
items:
- tileSetFile: items.gif
tile: 36
position: {x: 8, y: 11}
counter: 1
- tileSetFile: items.gif
tile: 36
position: {x: 19, y: 11}
counter: 2
- tileSetFile: items.gif
tile: 36
position: {x: 5, y: 3}
counter: 3