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

114
data/room/47.yaml Normal file
View File

@@ -0,0 +1,114 @@
# THE BATTLE NEVER ENDS
room:
number: "47"
name: "THE BATTLE NEVER ENDS"
bgColor: black
border: white
tileSetFile: standard.gif
# Room connections (null for no connection)
connections:
up: "51"
down: null
left: "48"
right: null
# Item display colors
itemColor1: red
itemColor2: yellow
# 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:
- [27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, -1, -1, -1, -1, -1, 504, 27, 27, 27, 85, 85]
- [-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, 504, -1, -1, -1, -1, 85, 85]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, 85, 85]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, 85, 85]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, -1, 85, 85]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 412, 412, -1, -1, -1, -1, -1, -1, -1, -1, 85, 85]
- [-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, 85, 85]
- [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 412, 412, 412, 528, -1, -1, -1, -1, -1, -1, -1, 85, 85]
- [27, 528, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, 412, -1, -1, -1, -1, -1, -1, -1, 504, 412, -1, -1, -1, -1, 412, 412, 85, 85]
- [27, -1, 412, 528, -1, -1, -1, -1, -1, -1, -1, -1, 412, 528, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, -1, -1, 85, 85]
- [27, -1, -1, -1, 412, -1, -1, -1, -1, -1, -1, -1, -1, -1, 528, -1, -1, -1, -1, -1, 412, 528, -1, -1, -1, -1, -1, -1, -1, -1, 85, 85]
- [27, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, 412, 412, -1, -1, -1, -1, -1, 528, -1, -1, -1, -1, -1, -1, -1, 85, 85]
- [27, -1, -1, -1, 504, 412, -1, -1, -1, 412, 528, -1, 504, 412, -1, -1, -1, -1, -1, -1, -1, -1, -1, 412, 412, 528, -1, -1, -1, -1, 85, 85]
- [27, -1, -1, 412, -1, -1, -1, -1, -1, -1, -1, 412, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 412, -1, -1, -1, 85, 85]
- [27, -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, 85, 85]
- [27, 27, 27, 27, 27, 388, 388, 388, 27, 27, 27, 27, 27, 388, 388, 388, 27, 27, 27, 27, 27, 388, 388, 27, 388, 27, 27, 27, 27, 27, 85, 85]
# Enemies in this room
enemies:
- animation: jailbattle_alien.yaml
position: {x: 10, y: 3}
velocity: {x: 48.0, y: 0}
boundaries:
x1: 3
y1: 3
x2: 27
y2: 3
color: green
flip: true
- animation: jailbattle_alien.yaml
position: {x: 25, y: 4}
velocity: {x: 0, y: 48.0}
boundaries:
x1: 25
y1: 4
x2: 25
y2: 10
color: yellow
flip: true
- animation: jailbattle_human.yaml
position: {x: 7, y: 6}
velocity: {x: 0, y: 30.0}
boundaries:
x1: 7
y1: 6
x2: 7
y2: 13
color: red
flip: true
- animation: jailbattle_human.yaml
position: {x: 18, y: 13}
velocity: {x: 30.0, y: 0}
boundaries:
x1: 15
y1: 13
x2: 27
y2: 13
color: cyan
flip: true
# Items in this room
items:
- tileSetFile: items.gif
tile: 19
position: {x: 6, y: 14}
counter: 1
- tileSetFile: items.gif
tile: 19
position: {x: 14, y: 14}
counter: 2
- tileSetFile: items.gif
tile: 19
position: {x: 23, y: 14}
counter: 3
- tileSetFile: items.gif
tile: 19
position: {x: 28, y: 6}
counter: 4
- tileSetFile: items.gif
tile: 19
position: {x: 14, y: 5}
counter: 5