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

101
data/room/34.yaml Normal file
View File

@@ -0,0 +1,101 @@
# ULA HOP!
room:
number: "34"
name: "ULA HOP!"
bgColor: black
border: cyan
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: null
down: "32"
left: "35"
right: null
# Item display colors
itemColor1: green
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:
- [113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114]
- [115, -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, 139, 115]
- [139, -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, 115, 139]
- [115, -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, 139, 115]
- [139, -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, 115, 139]
- [115, -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, 139, 115]
- [139, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 113, 114, 113, 114, 113, 114, 113, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 376, 115, 139]
- [115, -1, -1, -1, -1, -1, -1, -1, 376, -1, -1, 113, 114, 113, 114, 113, 114, 113, 114, -1, -1, -1, -1, 376, 376, -1, -1, -1, -1, -1, 139, 115]
- [139, -1, -1, -1, -1, -1, -1, -1, -1, 376, -1, -1, -1, 113, 114, 113, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 115, 139]
- [115, -1, -1, -1, 376, 376, 376, -1, -1, -1, -1, -1, -1, 114, 113, 114, 113, -1, -1, -1, -1, -1, 376, 376, 376, 376, -1, -1, -1, -1, 139, 115]
- [139, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 376, -1, 113, 114, 113, 114, -1, -1, 376, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 115, 139]
- [115, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 114, 113, 114, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, 430, 431, 113, 114, 139, 115]
- [139, -1, -1, -1, -1, -1, -1, 376, 376, -1, -1, -1, -1, 113, 114, 113, 114, -1, -1, -1, -1, -1, -1, 430, 431, 430, 431, 430, 431, -1, 115, 139]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 376, 114, 113, 114, 113, -1, -1, 376, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, 115]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 113, 114, 113, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 115, 139]
- [113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, -1, -1, 113, 114, 113, 114, 113, 114]
# Enemies in this room
enemies:
- animation: floppy.yaml
position: {x: 20, y: 1}
velocity: {x: 0, y: 48.0}
boundaries:
x1: 20
y1: 1
x2: 20
y2: 13
color: cyan
- animation: spark.yaml
position: {x: 11, y: 4}
velocity: {x: 30.0, y: 0}
boundaries:
x1: 11
y1: 4
x2: 18
y2: 4
color: cyan
- animation: spark.yaml
position: {x: 1, y: 1}
velocity: {x: 60.0, y: 0}
boundaries:
x1: 1
y1: 1
x2: 29
y2: 1
color: yellow
mirror: true
- animation: wave.yaml
position: {x: 1, y: 6}
velocity: {x: 30.0, y: 0}
boundaries:
x1: 1
y1: 6
x2: 10
y2: 6
color: yellow
- animation: wave.yaml
position: {x: 17, y: 8}
velocity: {x: 54.0, y: 0}
boundaries:
x1: 17
y1: 8
x2: 29
y2: 8
color: yellow
# Items in this room
items:
- tileSetFile: items.gif
tile: 66
position: {x: 29, y: 3}
counter: 1