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

157
data/room/36.yaml Normal file
View File

@@ -0,0 +1,157 @@
# BE CAREFUL WITH THE FUSE
room:
number: "36"
name: "BE CAREFUL WITH THE FUSE"
bgColor: black
border: bright_cyan
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: null
down: null
left: "37"
right: "35"
# 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:
- [117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118]
- [118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117]
- [-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, 119]
- [-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, 143]
- [-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, 119]
- [-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, 143]
- [-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, 119]
- [-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, 143]
- [-1, -1, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 353, -1, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, -1, 119]
- [-1, -1, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, -1, 353, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, -1, 143]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 353, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 119]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 353, -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, 353, -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, 353, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 119]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 353, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 143]
- [117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118, 117, 118]
# Enemies in this room
enemies:
- animation: spark.yaml
position: {x: 6, y: 13}
velocity: {x: 24.0, y: 0}
boundaries:
x1: 2
y1: 13
x2: 14
y2: 13
color: yellow
- animation: spark.yaml
position: {x: 21, y: 13}
velocity: {x: 24.0, y: 0}
boundaries:
x1: 17
y1: 13
x2: 29
y2: 13
color: yellow
- animation: spark.yaml
position: {x: 2, y: 10}
velocity: {x: 24.0, y: 0}
boundaries:
x1: 2
y1: 10
x2: 14
y2: 10
color: yellow
mirror: true
- animation: spark.yaml
position: {x: 17, y: 10}
velocity: {x: 24.0, y: 0}
boundaries:
x1: 17
y1: 10
x2: 29
y2: 10
color: yellow
mirror: true
- animation: shock.yaml
position: {x: 13, y: 2}
velocity: {x: 0, y: 24.0}
boundaries:
x1: 13
y1: 2
x2: 13
y2: 7
color: bright_yellow
- animation: shock.yaml
position: {x: 10, y: 4}
velocity: {x: 0, y: 30.0}
boundaries:
x1: 10
y1: 2
x2: 10
y2: 7
color: bright_yellow
- animation: shock.yaml
position: {x: 7, y: 6}
velocity: {x: 0, y: 36.0}
boundaries:
x1: 7
y1: 2
x2: 7
y2: 7
color: bright_yellow
- animation: shock.yaml
position: {x: 24, y: 2}
velocity: {x: 0, y: 24.0}
boundaries:
x1: 24
y1: 2
x2: 24
y2: 7
color: bright_yellow
- animation: shock.yaml
position: {x: 21, y: 4}
velocity: {x: 0, y: 30.0}
boundaries:
x1: 21
y1: 2
x2: 21
y2: 7
color: bright_yellow
- animation: shock.yaml
position: {x: 18, y: 6}
velocity: {x: 0, y: 36.0}
boundaries:
x1: 18
y1: 2
x2: 18
y2: 7
color: bright_yellow
# Items in this room
items:
- tileSetFile: items.gif
tile: 57
position: {x: 3, y: 7}
counter: 1
- tileSetFile: items.gif
tile: 57
position: {x: 28, y: 7}
counter: 2