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

@@ -0,0 +1,95 @@
# PLAY IT AGAIN, SAM
room:
number: "24"
name: "PLAY IT AGAIN, SAM"
bgColor: black
border: bright_yellow
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: null
down: null
left: null
right: "23"
# Item display colors
itemColor1: yellow
itemColor2: magenta
# 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:
- [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]
- [19, 19, 19, 19, 19, 19, 19, -1, -1, -1, -1, 306, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 306, -1, -1, -1, -1, 20, 20, 20, 20]
- [19, 19, 19, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 306, 20, 20, 20]
- [19, 19, 19, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, 20]
- [19, 19, 19, 19, 19, 19, 19, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, 20]
- [19, 19, 306, 306, -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, 20, 20]
- [19, 19, -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, 44, 45]
- [19, 19, 19, 19, 19, 19, 19, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 68, 69]
- [44, 45, 44, 45, 44, 45, 133, 399, -1, -1, -1, -1, -1, 518, 19, 19, 542, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 399, 399, 20, 20]
- [68, 69, 68, 69, 68, 69, 133, -1, 399, -1, -1, -1, 518, 19, 22, 23, 19, 542, -1, -1, -1, -1, -1, 399, 399, -1, 399, 399, -1, -1, 20, 20]
- [19, 19, 19, 19, 19, 19, 19, -1, -1, -1, -1, 518, 19, 19, 46, 47, 19, 19, 542, -1, -1, -1, 399, -1, -1, -1, -1, -1, -1, -1, 20, 20]
- [19, 19, 19, 306, -1, -1, -1, -1, -1, -1, 518, 19, 19, 44, 45, 22, 23, 19, 19, 542, -1, -1, -1, -1, -1, 399, -1, -1, -1, -1, 20, 20]
- [19, 19, 306, -1, -1, -1, -1, -1, -1, 518, 19, 19, 19, 68, 69, 46, 47, 19, 19, 19, 542, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, 20]
- [19, 19, -1, -1, -1, -1, -1, -1, 518, 19, 19, 19, 22, 23, 22, 23, 22, 23, 19, 19, 19, 542, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
- [19, 19, -1, -1, -1, -1, -1, 518, 19, 19, 19, 19, 46, 47, 46, 47, 46, 47, 19, 19, 19, 19, 542, -1, -1, 555, -1, -1, -1, -1, -1, -1]
- [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]
# Enemies in this room
enemies:
- animation: sam.yaml
position: {x: 4, y: 2}
velocity: {x: 0, y: 0}
boundaries:
x1: 4
y1: 2
x2: 4
y2: 2
color: white
- animation: shock.yaml
position: {x: 5, y: 11}
velocity: {x: 0, y: 30.0}
boundaries:
x1: 5
y1: 11
x2: 5
y2: 14
color: bright_green
- animation: spider.yaml
position: {x: 25, y: 1}
velocity: {x: 0, y: 30.0}
boundaries:
x1: 25
y1: 1
x2: 25
y2: 10
color: bright_green
# Items in this room
items:
- tileSetFile: items.gif
tile: 31
position: {x: 2, y: 6}
counter: 1
- tileSetFile: items.gif
tile: 31
position: {x: 2, y: 14}
counter: 2
- tileSetFile: items.gif
tile: 31
position: {x: 15, y: 7}
counter: 3
- tileSetFile: items.gif
tile: 31
position: {x: 29, y: 5}
counter: 4