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

121
data/room/15.yaml Normal file
View File

@@ -0,0 +1,121 @@
# NOW THIS IS THE BATCAVE!
room:
number: "15"
name: "NOW THIS IS THE BATCAVE!"
bgColor: black
border: black
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: "14"
down: "06"
left: null
right: null
# 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:
- [15, 15, 15, 15, 15, -1, 15, 15, 15, 15, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 301, -1, -1, 301, 301, 15, 15, 15, 15, 15, 15, 15]
- [15, 15, 301, -1, -1, -1, -1, 348, 15, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 301, 15, 15]
- [15, 301, -1, -1, -1, -1, -1, -1, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 301, 15]
- [15, -1, -1, -1, -1, 348, -1, -1, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 422, 422, 422, 422, 422, -1, -1, -1, -1, -1, -1, 15]
- [15, -1, -1, -1, 15, 15, 15, 15, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15]
- [15, -1, -1, -1, -1, -1, 301, 15, 15, 15, 15, -1, -1, -1, 422, -1, -1, -1, 422, 546, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15]
- [15, -1, -1, -1, -1, -1, -1, 301, 15, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 546, -1, -1, -1, -1, 423, 421, 423, 421, -1, -1, 15]
- [15, -1, -1, 423, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 421, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15]
- [15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 421, -1, -1, -1, -1, 421, -1, -1, -1, -1, -1, -1, -1, 421, 15]
- [15, 421, 546, -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, 15]
- [15, -1, -1, 408, -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, 522, 421, 15]
- [15, -1, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 421, 422, 421, 421, 422, 360, 408, -1, -1, 15]
- [15, -1, -1, -1, 421, 408, 421, 422, 421, 421, 422, 408, 421, -1, -1, -1, -1, 422, 423, -1, -1, -1, -1, -1, -1, -1, -1, 288, -1, -1, -1, 15]
- [15, -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, 288, -1, -1, -1, 15]
- [15, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, -1, 288, -1, -1, 15, 15]
- [15, 348, 348, 348, 348, -1, -1, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 15]
# Enemies in this room
enemies:
- animation: batman.yaml
position: {x: 17, y: 13}
velocity: {x: 48.0, y: 0}
boundaries:
x1: 7
y1: 13
x2: 29
y2: 13
color: white
flip: true
- animation: bat.yaml
position: {x: 14, y: 2}
velocity: {x: 30.0, y: 0}
boundaries:
x1: 9
y1: 2
x2: 30
y2: 2
color: bright_blue
- animation: bat.yaml
position: {x: 10, y: 10}
velocity: {x: 30.0, y: 0}
boundaries:
x1: 1
y1: 10
x2: 30
y2: 10
color: cyan
- animation: bat.yaml
position: {x: 15, y: 1}
velocity: {x: 0, y: 42.0}
boundaries:
x1: 15
y1: 1
x2: 15
y2: 11
color: red
# Items in this room
items:
- tileSetFile: items.gif
tile: 0
position: {x: 5, y: 2}
counter: 1
- tileSetFile: items.gif
tile: 0
position: {x: 13, y: 12}
counter: 2
- tileSetFile: items.gif
tile: 0
position: {x: 14, y: 12}
counter: 3
- tileSetFile: items.gif
tile: 0
position: {x: 15, y: 12}
counter: 4
- tileSetFile: items.gif
tile: 0
position: {x: 16, y: 12}
counter: 5
- tileSetFile: items.gif
tile: 0
position: {x: 10, y: 4}
counter: 6
- tileSetFile: items.gif
tile: 0
position: {x: 17, y: 7}
counter: 7