- [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/09.yaml Normal file
View File

@@ -0,0 +1,82 @@
# THE BIG TREE
room:
number: "09"
name: "THE BIG TREE"
bgColor: black
border: bright_blue
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: "10"
down: "08"
left: null
right: null
# Item display colors
itemColor1: cyan
itemColor2: green
# 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:
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 304, 40, 40, 40, 40, 304, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 16, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 40, 40, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 16, 16, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 16, 16, 16, 16]
- [-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, 517, 16, 16, 16, 16, 16]
- [-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, 517, 16, 16, 16, 16, 16, 16]
- [-1, -1, -1, -1, -1, 304, 304, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 16, 16, 16, 16, 16, 16, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, 304, 304, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, -1, -1, -1, -1, 16, 16, 16, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16, 16, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 348, 348, 348, 348, 348, -1, -1, -1, -1, -1, 304, -1, -1, -1, -1, -1, -1, 16, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, -1, 40, 40, 40, 40, -1, -1, -1, 304, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 40, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16]
- [-1, -1, -1, -1, -1, 304, 304, 530, -1, -1, -1, -1, -1, -1, 40, 40, -1, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 537, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16]
- [562, 562, 562, 562, 562, 562, 562, 562, 562, 562, -1, -1, -1, 40, 40, 40, 40, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, -1, -1, 348, 348, 348]
# Enemies in this room
enemies:
- animation: congo.yaml
position: {x: 10, y: 12}
velocity: {x: 24.0, y: 0}
boundaries:
x1: 10
y1: 12
x2: 20
y2: 12
color: yellow
flip: true
- animation: congo.yaml
position: {x: 12, y: 6}
velocity: {x: 36.0, y: 0}
boundaries:
x1: 12
y1: 6
x2: 17
y2: 6
color: white
flip: true
# Items in this room
items:
- tileSetFile: items.gif
tile: 52
position: {x: 5, y: 7}
counter: 1
- tileSetFile: items.gif
tile: 52
position: {x: 5, y: 1}
counter: 2
- tileSetFile: items.gif
tile: 52
position: {x: 17, y: 4}
counter: 2