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

85
data/room/17.yaml Normal file
View File

@@ -0,0 +1,85 @@
# I DID NOT COPY THIS ONE
room:
number: "17"
name: "I DID NOT COPY THIS ONE"
bgColor: black
border: magenta
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: null
down: "18"
left: "49"
right: "16"
# Item display colors
itemColor1: yellow
itemColor2: red
# 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:
- [87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87]
- [87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87]
- [87, 87, -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, 87, 87]
- [87, 87, -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]
- [87, 87, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1]
- [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, 87, 87, 87, 87, 87]
- [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, 87, 87, 87]
- [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, 87, 87]
- [87, 87, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, 410, 410, 410, 410, 522, -1, -1, -1, -1, -1, -1, 87, 87]
- [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, 87, 87]
- [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, 87, 87]
- [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, -1, 87, 87]
- [87, 87, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 87, 87]
- [-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, 554, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
- [362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, -1, -1, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362]
# Enemies in this room
enemies:
- animation: floppy.yaml
position: {x: 5, y: 6}
velocity: {x: 0, y: 24.0}
boundaries:
x1: 5
y1: 4
x2: 5
y2: 10
color: green
- animation: floppy.yaml
position: {x: 12, y: 3}
velocity: {x: 0, y: 24.0}
boundaries:
x1: 12
y1: 2
x2: 12
y2: 9
color: cyan
- animation: chip.yaml
position: {x: 8, y: 13}
velocity: {x: 24.0, y: 0}
boundaries:
x1: 8
y1: 13
x2: 18
y2: 13
color: yellow
# Items in this room
items:
- tileSetFile: items.gif
tile: 21
position: {x: 2, y: 9}
counter: 1
- tileSetFile: items.gif
tile: 21
position: {x: 2, y: 5}
counter: 2