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

166
data/room/18.yaml Normal file
View File

@@ -0,0 +1,166 @@
# MAKE MONEY
room:
number: "18"
name: "MAKE MONEY"
bgColor: black
border: yellow
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: "17"
down: "54"
left: "19"
right: null
# Item display colors
itemColor1: bright_green
itemColor2: bright_yellow
# 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:
- [4, 4, 4, 4, 4, 4, 4, 4, -1, -1, -1, -1, -1, -1, 505, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
- [4, 4, 4, 4, 4, 4, 4, -1, -1, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 4]
- [4, 4, 4, 4, 4, 4, 4, -1, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4]
- [4, 4, 4, 4, 4, 4, 4, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4]
- [4, 4, 4, 4, 4, 4, 4, -1, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4]
- [4, 4, 4, 4, 172, -1, 133, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4]
- [556, 556, 556, 556, 556, 556, 133, -1, 414, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4]
- [4, 4, 4, 4, 4, 4, 4, 414, 414, 414, 529, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4]
- [4, 4, 4, 4, 4, 4, -1, -1, -1, -1, -1, 529, -1, -1, -1, -1, -1, -1, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 4]
- [4, 4, 4, 4, 4, -1, -1, -1, -1, -1, -1, -1, 529, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 529, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 516, 366, 4]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 366, 366, 366, 366, 428, 428, -1, 428, 428, 366, 366, 366, 366, 366, 366, 366, 366, 4]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 342, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 4]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 342, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 4]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 342, -1, -1, -1, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, 4, 4]
- [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, -1, -1, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61]
# Enemies in this room
enemies:
- animation: code.yaml
position: {x: 19, y: 6}
velocity: {x: 24.0, y: 0}
boundaries:
x1: 18
y1: 6
x2: 29
y2: 6
color: magenta
- animation: spider.yaml
position: {x: 14, y: 10}
velocity: {x: 36.0, y: 0}
boundaries:
x1: 14
y1: 10
x2: 28
y2: 10
color: yellow
- animation: spider.yaml
position: {x: 23, y: 12}
velocity: {x: 36.0, y: 0}
boundaries:
x1: 23
y1: 12
x2: 28
y2: 12
color: magenta
mirror: true
- animation: lamp.yaml
position: {x: 19, y: 1}
velocity: {x: 0, y: 0}
boundaries:
x1: 19
y1: 1
x2: 19
y2: 1
color: yellow
- animation: lamp.yaml
position: {x: 26, y: 1}
velocity: {x: 0, y: 0}
boundaries:
x1: 26
y1: 1
x2: 26
y2: 1
color: yellow
# Items in this room
items:
- tileSetFile: items.gif
tile: 14
position: {x: 19, y: 3}
counter: 1
- tileSetFile: items.gif
tile: 14
position: {x: 19, y: 3}
counter: 1
- tileSetFile: items.gif
tile: 14
position: {x: 20, y: 3}
counter: 2
- tileSetFile: items.gif
tile: 14
position: {x: 21, y: 3}
counter: 3
- tileSetFile: items.gif
tile: 14
position: {x: 22, y: 3}
counter: 4
- tileSetFile: items.gif
tile: 14
position: {x: 23, y: 3}
counter: 5
- tileSetFile: items.gif
tile: 14
position: {x: 24, y: 3}
counter: 6
- tileSetFile: items.gif
tile: 14
position: {x: 25, y: 3}
counter: 7
- tileSetFile: items.gif
tile: 14
position: {x: 26, y: 3}
counter: 8
- tileSetFile: items.gif
tile: 14
position: {x: 27, y: 3}
counter: 9
- tileSetFile: items.gif
tile: 14
position: {x: 28, y: 3}
counter: 10
- tileSetFile: items.gif
tile: 14
position: {x: 29, y: 3}
counter: 11
- tileSetFile: items.gif
tile: 14
position: {x: 30, y: 3}
counter: 12
- tileSetFile: items.gif
tile: 14
position: {x: 29, y: 12}
counter: 13