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

@@ -0,0 +1,95 @@
# MAGNETIC FIELDS
room:
number: "60"
name: "MAGNETIC FIELDS"
bgColor: black
border: bright_red
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: "05"
down: "59"
left: null
right: null
# Item display colors
itemColor1: red
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:
- [168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 410, -1, -1, 410, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168]
- [168, -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, 168]
- [168, -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, 168]
- [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168]
- [168, -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, 168]
- [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, -1, -1, -1, -1, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168]
- [168, -1, -1, -1, -1, 307, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 307, -1, -1, -1, -1, 168]
- [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, 410, 410, 410, -1, -1, -1, -1, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168]
- [168, -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, 168]
- [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, -1, -1, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168]
- [168, -1, -1, -1, 307, -1, -1, -1, -1, 307, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 307, -1, -1, -1, -1, 307, -1, -1, -1, 168]
- [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168]
- [168, -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, 168]
- [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, -1, -1, -1, -1, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168]
- [168, -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, 168]
- [168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, -1, -1, 168, 168, 168, 168]
# Enemies in this room
enemies:
- animation: shock.yaml
position: {x: 7, y: 2}
velocity: {x: 0, y: 90.0}
boundaries:
x1: 7
y1: 1
x2: 7
y2: 14
color: yellow
- animation: shock.yaml
position: {x: 24, y: 6}
velocity: {x: 0, y: -90.0}
boundaries:
x1: 24
y1: 1
x2: 24
y2: 14
color: yellow
# Items in this room
items:
- tileSetFile: items.gif
tile: 1
position: {x: 5, y: 4}
counter: 1
- tileSetFile: items.gif
tile: 1
position: {x: 4, y: 9}
counter: 2
- tileSetFile: items.gif
tile: 1
position: {x: 9, y: 9}
counter: 3
- tileSetFile: items.gif
tile: 1
position: {x: 22, y: 9}
counter: 2
- tileSetFile: items.gif
tile: 1
position: {x: 27, y: 9}
counter: 3
- tileSetFile: items.gif
tile: 1
position: {x: 26, y: 4}
counter: 1