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

95
data/room/31.yaml Normal file
View File

@@ -0,0 +1,95 @@
# 256 COLORS
room:
number: "31"
name: "256 COLORS"
bgColor: black
border: bright_magenta
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: null
down: null
left: "28"
right: null
# Item display colors
itemColor1: bright_red
itemColor2: bright_cyan
# Conveyor belt direction: left (-1), none (0), right (1)
autoSurface: -1
# Tilemap: 16 rows × 32 columns (256×192 pixels @ 8px/tile)
# Values are 0-based tile indices (0 = empty)
tilemap:
- [192, 197, 192, 193, 195, 201, 199, 194, 196, 200, 199, 193, 193, 195, 198, 193, 195, 193, 193, 201, 199, 196, 195, 193, 192, 201, 193, 202, 192, 196, 203, 195]
- [192, 200, 194, 203, 194, 196, 199, 193, 202, 197, 197, 195, 196, 201, 199, 194, 193, 198, 200, 194, 195, 193, 198, 194, 197, 200, 193, 194, 198, 193, 201, 193]
- [193, 199, 195, 195, 200, 197, -1, -1, 196, 198, -1, -1, 193, 197, 193, 192, 202, 203, 194, 193, 194, 192, 193, -1, -1, -1, -1, -1, -1, -1, 193, 199]
- [194, 202, 193, 192, 199, 192, -1, -1, 197, 192, -1, -1, 194, 198, 196, 193, 201, 194, -1, -1, -1, 196, 201, -1, -1, -1, -1, -1, -1, -1, 203, 200]
- [197, 194, 198, 196, 202, 194, -1, -1, 203, 194, -1, -1, 195, 193, 200, 194, 194, 195, -1, -1, -1, 202, 195, -1, -1, -1, -1, -1, -1, -1, 203, 193]
- [193, 196, 194, 197, 192, 195, -1, -1, 194, 193, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 198, 202, -1, -1, -1, -1, -1, -1, -1, 196, 199]
- [199, 201, 192, 193, 194, 198, -1, -1, 195, 195, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 192, 193, -1, -1, -1, -1, -1, -1, -1, 192, 194]
- [192, 195, 197, 195, 193, 197, -1, -1, 192, 202, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 194, 195, -1, -1, -1, -1, -1, -1, 513, 196, 203]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 394, 394, -1, -1, -1, -1, -1, -1, -1, -1, -1, 203, 192, -1, -1, -1, -1, -1, 512, 192, 193, 195]
- [-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, 196, 196, 201, 196]
- [198, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 197, 199, 198, 200, 199]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 397, 397, 397, 397, 397, 397, 397, 397, 397, -1, 516, 195, 202, 200, 193, 196, 194]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 515, 199, 193, 192, 194, 196, 198, 197]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 514, 201, 195, 193, 198, 194, 203, 201, 196]
- [-1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, 559, -1, -1, -1, 555, -1, -1, -1, -1, 559, -1, 513, 195, 203, 197, 200, 195, 197, 193, 194, 197]
- [192, 193, 194, 198, 197, 195, 203, 199, 197, 202, 198, 197, 194, 201, 201, 199, 200, 197, 199, 198, 192, 196, 194, 196, 198, 194, 195, 196, 193, 199, 194, 192]
# Enemies in this room
enemies:
- animation: guitar.yaml
position: {x: 13, y: 5}
velocity: {x: 0, y: 36.0}
boundaries:
x1: 13
y1: 5
x2: 13
y2: 13
color: magenta
- animation: sigmasua.yaml
position: {x: 24, y: 2}
velocity: {x: 0, y: 36.0}
boundaries:
x1: 24
y1: 2
x2: 24
y2: 9
color: red
- animation: paco.yaml
position: {x: 6, y: 2}
velocity: {x: 0, y: 36.0}
boundaries:
x1: 6
y1: 2
x2: 6
y2: 8
color: yellow
- animation: chip.yaml
position: {x: 15, y: 9}
velocity: {x: 36.0, y: 0}
boundaries:
x1: 15
y1: 9
x2: 23
y2: 9
color: green
# Items in this room
items:
- tileSetFile: items.gif
tile: 61
position: {x: 10, y: 3}
counter: 1
- tileSetFile: items.gif
tile: 61
position: {x: 29, y: 3}
counter: 2