diff --git a/config/assets.yaml b/config/assets.yaml index 66b749c..59be9ec 100644 --- a/config/assets.yaml +++ b/config/assets.yaml @@ -20,18 +20,10 @@ assets: # PALETTES palettes: PALETTE: - - ${PREFIX}/data/palette/cpc.pal - - ${PREFIX}/data/palette/carnival-32.pal - - ${PREFIX}/data/palette/cpc-boy.pal - - ${PREFIX}/data/palette/downgraded-32.pal - - ${PREFIX}/data/palette/endesga-32.pal - - ${PREFIX}/data/palette/fantasy.pal - - ${PREFIX}/data/palette/mulfok32.pal - - ${PREFIX}/data/palette/nanner-pancakes.pal - - ${PREFIX}/data/palette/pico-8-secret-palette.pal - - ${PREFIX}/data/palette/pineapple-32.pal - - ${PREFIX}/data/palette/resurrect-32.pal - - ${PREFIX}/data/palette/sheltzy32.pal + - ${PREFIX}/data/palette/aap-64.pal + - ${PREFIX}/data/palette/blk-nx64.pal + - ${PREFIX}/data/palette/endesga-64.pal + - ${PREFIX}/data/palette/resurrect-64.pal # LOCALE locale: @@ -77,63 +69,6 @@ assets: - ${PREFIX}/data/room/01.yaml - ${PREFIX}/data/room/02.yaml - ${PREFIX}/data/room/03.yaml - - ${PREFIX}/data/room/04.yaml - - ${PREFIX}/data/room/05.yaml - - ${PREFIX}/data/room/06.yaml - - ${PREFIX}/data/room/07.yaml - - ${PREFIX}/data/room/08.yaml - - ${PREFIX}/data/room/09.yaml - - ${PREFIX}/data/room/10.yaml - - ${PREFIX}/data/room/11.yaml - - ${PREFIX}/data/room/12.yaml - - ${PREFIX}/data/room/13.yaml - - ${PREFIX}/data/room/14.yaml - - ${PREFIX}/data/room/15.yaml - - ${PREFIX}/data/room/16.yaml - - ${PREFIX}/data/room/17.yaml - - ${PREFIX}/data/room/18.yaml - - ${PREFIX}/data/room/19.yaml - - ${PREFIX}/data/room/20.yaml - - ${PREFIX}/data/room/21.yaml - - ${PREFIX}/data/room/22.yaml - - ${PREFIX}/data/room/23.yaml - - ${PREFIX}/data/room/24.yaml - - ${PREFIX}/data/room/25.yaml - - ${PREFIX}/data/room/26.yaml - - ${PREFIX}/data/room/27.yaml - - ${PREFIX}/data/room/28.yaml - - ${PREFIX}/data/room/29.yaml - - ${PREFIX}/data/room/30.yaml - - ${PREFIX}/data/room/31.yaml - - ${PREFIX}/data/room/32.yaml - - ${PREFIX}/data/room/33.yaml - - ${PREFIX}/data/room/34.yaml - - ${PREFIX}/data/room/35.yaml - - ${PREFIX}/data/room/36.yaml - - ${PREFIX}/data/room/37.yaml - - ${PREFIX}/data/room/38.yaml - - ${PREFIX}/data/room/39.yaml - - ${PREFIX}/data/room/40.yaml - - ${PREFIX}/data/room/41.yaml - - ${PREFIX}/data/room/42.yaml - - ${PREFIX}/data/room/43.yaml - - ${PREFIX}/data/room/44.yaml - - ${PREFIX}/data/room/45.yaml - - ${PREFIX}/data/room/46.yaml - - ${PREFIX}/data/room/47.yaml - - ${PREFIX}/data/room/48.yaml - - ${PREFIX}/data/room/49.yaml - - ${PREFIX}/data/room/50.yaml - - ${PREFIX}/data/room/51.yaml - - ${PREFIX}/data/room/52.yaml - - ${PREFIX}/data/room/53.yaml - - ${PREFIX}/data/room/54.yaml - - ${PREFIX}/data/room/55.yaml - - ${PREFIX}/data/room/56.yaml - - ${PREFIX}/data/room/57.yaml - - ${PREFIX}/data/room/58.yaml - - ${PREFIX}/data/room/59.yaml - - ${PREFIX}/data/room/60.yaml # TILESETS tilesets: diff --git a/data/palette/aap-64.pal b/data/palette/aap-64.pal new file mode 100644 index 0000000..a79f2d3 --- /dev/null +++ b/data/palette/aap-64.pal @@ -0,0 +1,67 @@ +JASC-PAL +0100 +64 +6 6 8 +20 16 19 +59 23 37 +115 23 45 +180 32 42 +223 62 35 +250 106 10 +249 163 27 +255 213 65 +255 252 64 +214 242 100 +156 219 67 +89 193 53 +20 160 46 +26 122 62 +36 82 59 +18 32 32 +20 52 100 +40 92 196 +36 159 222 +32 214 199 +166 252 219 +255 255 255 +254 243 192 +250 214 184 +245 160 151 +232 106 115 +188 74 155 +121 58 128 +64 51 83 +36 34 52 +34 28 26 +50 43 40 +113 65 59 +187 117 71 +219 164 99 +244 210 156 +218 224 234 +179 185 209 +139 147 175 +109 117 141 +74 84 98 +51 57 65 +66 36 51 +91 49 56 +142 82 82 +186 117 106 +233 181 163 +227 230 255 +185 191 251 +132 155 228 +88 141 190 +71 125 133 +35 103 78 +50 132 100 +93 175 141 +146 220 186 +205 247 226 +228 210 170 +199 176 139 +160 134 98 +121 103 85 +90 78 68 +66 57 52 diff --git a/data/palette/blk-nx64.pal b/data/palette/blk-nx64.pal new file mode 100644 index 0000000..e067fbf --- /dev/null +++ b/data/palette/blk-nx64.pal @@ -0,0 +1,67 @@ +JASC-PAL +0100 +64 +0 0 0 +18 23 61 +41 50 104 +70 75 140 +107 116 178 +144 158 221 +193 217 242 +255 255 255 +162 147 196 +123 106 165 +83 66 127 +60 44 104 +67 30 102 +93 47 140 +133 76 191 +180 131 239 +140 255 155 +66 188 127 +34 137 110 +20 102 91 +15 74 76 +10 42 51 +29 26 89 +50 45 137 +53 74 178 +62 131 209 +80 185 235 +140 218 255 +83 161 173 +59 118 143 +33 82 107 +22 55 85 +0 135 130 +0 170 165 +39 211 203 +120 250 230 +205 197 153 +152 143 100 +92 93 65 +53 63 35 +145 155 69 +175 211 112 +255 224 145 +255 170 110 +255 105 90 +178 60 64 +255 102 117 +221 55 69 +165 38 57 +114 28 47 +178 46 105 +229 66 134 +255 110 175 +255 165 213 +255 211 173 +204 129 122 +137 86 84 +97 57 59 +63 31 60 +114 51 82 +153 76 105 +195 114 137 +242 159 170 +255 204 208 diff --git a/data/palette/carnival-32.pal b/data/palette/carnival-32.pal deleted file mode 100644 index f308455..0000000 --- a/data/palette/carnival-32.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -77 34 53 -113 40 42 -151 86 56 -208 118 62 -235 172 77 -242 208 141 -221 172 136 -198 141 128 -175 109 119 -199 68 70 -159 56 71 -110 64 109 -167 167 88 -113 129 65 -73 101 65 -55 67 59 -42 28 49 -66 49 87 -77 82 138 -85 106 151 -92 129 163 -125 173 200 -176 214 217 -236 230 223 -207 204 202 -166 166 166 -120 120 120 -98 98 98 -74 74 74 -54 54 54 -97 140 112 -139 116 99 diff --git a/data/palette/cpc-boy.pal b/data/palette/cpc-boy.pal deleted file mode 100644 index 535c712..0000000 --- a/data/palette/cpc-boy.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -0 0 0 -27 27 101 -53 53 201 -102 30 37 -85 51 97 -127 53 201 -188 53 53 -192 70 110 -223 109 155 -27 101 27 -27 110 131 -30 121 229 -121 95 27 -128 128 128 -145 148 223 -201 127 53 -227 155 141 -248 120 248 -53 175 53 -53 183 143 -53 193 215 -127 201 53 -173 200 170 -141 225 199 -225 198 67 -228 221 154 -255 255 255 -238 234 224 -172 181 107 -118 132 72 -63 80 63 -36 49 55 diff --git a/data/palette/cpc.pal b/data/palette/cpc.pal deleted file mode 100755 index 4236eee..0000000 --- a/data/palette/cpc.pal +++ /dev/null @@ -1,31 +0,0 @@ -JASC-PAL -0100 -27 -0 0 0 -0 0 0 -0 0 128 -0 0 255 -128 0 0 -128 0 128 -128 0 255 -255 0 0 -255 0 128 -255 0 255 -0 128 0 -0 128 128 -0 128 255 -128 128 0 -128 128 128 -128 128 255 -255 128 0 -255 128 128 -255 128 255 -0 255 0 -0 255 128 -0 255 255 -128 255 0 -128 255 128 -128 255 255 -255 255 0 -255 255 128 -255 255 255 diff --git a/data/palette/downgraded-32.pal b/data/palette/downgraded-32.pal deleted file mode 100644 index cc68a77..0000000 --- a/data/palette/downgraded-32.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -123 51 76 -161 77 85 -199 115 105 -227 160 132 -242 203 155 -211 123 134 -175 93 139 -128 64 133 -91 51 116 -65 32 81 -92 72 106 -136 125 141 -184 180 178 -220 218 201 -255 255 224 -182 245 219 -137 217 217 -114 182 207 -92 139 168 -78 102 121 -70 73 105 -68 53 93 -61 0 61 -98 23 72 -148 44 75 -199 66 79 -224 107 81 -242 165 97 -252 239 141 -177 212 128 -128 184 120 -101 141 120 diff --git a/data/palette/endesga-32.pal b/data/palette/endesga-32.pal deleted file mode 100644 index 3449799..0000000 --- a/data/palette/endesga-32.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -190 74 47 -215 118 67 -234 212 170 -228 166 114 -184 111 80 -115 62 57 -62 39 49 -162 38 51 -228 59 68 -247 118 34 -254 174 52 -254 231 97 -99 199 77 -62 137 72 -38 92 66 -25 60 62 -18 78 137 -0 153 219 -44 232 245 -255 255 255 -192 203 220 -139 155 180 -90 105 136 -58 68 102 -38 43 68 -24 20 37 -255 0 68 -104 56 108 -181 80 136 -246 117 122 -232 183 150 -194 133 105 diff --git a/data/palette/endesga-64.pal b/data/palette/endesga-64.pal new file mode 100644 index 0000000..7184271 --- /dev/null +++ b/data/palette/endesga-64.pal @@ -0,0 +1,67 @@ +JASC-PAL +0100 +64 +255 0 64 +19 19 19 +27 27 27 +39 39 39 +61 61 61 +93 93 93 +133 133 133 +180 180 180 +255 255 255 +199 207 221 +146 161 185 +101 115 146 +66 76 110 +42 47 78 +26 25 50 +14 7 27 +28 18 28 +57 31 33 +93 44 40 +138 72 54 +191 111 74 +230 156 105 +246 202 159 +249 230 207 +237 171 80 +224 116 56 +198 69 36 +142 37 29 +255 80 0 +237 118 20 +255 162 20 +255 200 37 +255 235 87 +211 252 126 +153 230 95 +90 197 79 +51 152 75 +30 111 80 +19 76 76 +12 46 68 +0 57 109 +0 105 170 +0 152 220 +0 205 249 +12 241 255 +148 253 255 +253 210 237 +243 137 245 +219 63 253 +122 9 250 +48 3 217 +12 2 147 +3 25 63 +59 20 67 +98 36 97 +147 56 143 +202 82 201 +200 80 134 +246 129 135 +245 85 93 +234 50 60 +196 36 48 +137 30 43 +87 28 39 diff --git a/data/palette/fantasy.pal b/data/palette/fantasy.pal deleted file mode 100644 index 6f8e373..0000000 --- a/data/palette/fantasy.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -237 228 218 -191 184 180 -145 141 141 -99 97 103 -53 53 64 -169 73 73 -202 89 84 -229 111 75 -227 147 71 -238 181 81 -232 198 91 -189 163 81 -139 145 80 -85 125 85 -68 99 80 -62 85 76 -139 176 173 -118 159 166 -102 141 169 -92 105 159 -90 88 136 -124 109 162 -148 122 157 -188 135 165 -217 166 166 -212 194 182 -189 170 151 -134 115 91 -126 103 76 -115 91 66 -96 75 61 -77 63 56 diff --git a/data/palette/mulfok32.pal b/data/palette/mulfok32.pal deleted file mode 100644 index e7beb11..0000000 --- a/data/palette/mulfok32.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -91 166 117 -107 201 108 -171 221 100 -252 239 141 -255 184 121 -234 98 98 -204 66 94 -163 40 88 -117 23 86 -57 9 71 -97 24 81 -135 53 85 -166 85 95 -201 115 115 -242 174 153 -255 195 242 -238 143 203 -212 110 179 -135 62 132 -31 16 42 -74 48 82 -123 84 128 -166 133 159 -217 189 200 -255 255 255 -174 226 255 -141 183 255 -109 128 250 -132 101 236 -131 77 196 -125 45 160 -78 24 124 diff --git a/data/palette/nanner-pancakes.pal b/data/palette/nanner-pancakes.pal deleted file mode 100644 index 3154b8e..0000000 --- a/data/palette/nanner-pancakes.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -160 221 211 -111 176 183 -87 127 157 -74 87 134 -62 59 102 -57 41 69 -45 30 47 -69 46 63 -93 69 80 -123 98 104 -156 128 126 -195 167 156 -219 201 180 -252 236 209 -170 215 149 -100 176 130 -72 136 133 -63 91 116 -235 200 167 -211 160 132 -184 126 108 -143 82 82 -106 57 72 -197 127 121 -171 89 125 -124 61 100 -78 43 69 -122 59 79 -169 75 84 -216 114 94 -240 159 113 -247 207 145 diff --git a/data/palette/pico-8-secret-palette.pal b/data/palette/pico-8-secret-palette.pal deleted file mode 100644 index 8b4e4ed..0000000 --- a/data/palette/pico-8-secret-palette.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -0 0 0 -29 43 83 -126 37 83 -0 135 81 -171 82 54 -95 87 79 -194 195 199 -255 241 232 -255 0 77 -255 163 0 -255 236 39 -0 228 54 -41 173 255 -131 118 156 -255 119 168 -255 204 170 -41 24 20 -17 29 53 -66 33 54 -18 83 89 -116 47 41 -73 51 59 -162 136 121 -243 239 125 -190 18 80 -255 108 36 -168 231 46 -0 181 67 -6 90 181 -117 70 101 -255 110 89 -255 157 129 diff --git a/data/palette/pineapple-32.pal b/data/palette/pineapple-32.pal deleted file mode 100644 index 783ee83..0000000 --- a/data/palette/pineapple-32.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -67 0 42 -137 0 39 -217 36 60 -255 97 87 -255 183 98 -199 110 70 -115 57 46 -52 17 31 -3 7 16 -39 59 45 -69 130 57 -156 185 59 -255 216 50 -255 130 59 -209 64 31 -124 25 26 -49 12 27 -131 63 52 -235 156 110 -255 218 172 -255 255 228 -191 195 198 -109 138 141 -41 59 73 -4 21 40 -3 62 94 -28 146 167 -119 214 193 -255 224 220 -255 136 169 -192 59 148 -96 23 97 diff --git a/data/palette/resurrect-32.pal b/data/palette/resurrect-32.pal deleted file mode 100644 index 346cc18..0000000 --- a/data/palette/resurrect-32.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -255 255 255 -251 107 29 -232 59 59 -131 28 93 -195 36 84 -240 79 120 -246 129 129 -252 167 144 -227 200 150 -171 148 122 -150 108 108 -98 85 101 -62 53 70 -11 94 101 -11 138 143 -30 188 115 -145 219 105 -251 255 134 -251 185 84 -205 104 61 -158 69 57 -122 48 69 -107 62 117 -144 94 169 -168 132 243 -234 173 237 -143 211 255 -77 155 230 -77 101 180 -72 74 119 -48 225 185 -143 248 226 diff --git a/data/palette/resurrect-64.pal b/data/palette/resurrect-64.pal new file mode 100644 index 0000000..bce601b --- /dev/null +++ b/data/palette/resurrect-64.pal @@ -0,0 +1,67 @@ +JASC-PAL +0100 +64 +46 34 47 +62 53 70 +98 85 101 +150 108 108 +171 148 122 +105 79 98 +127 112 138 +155 171 178 +199 220 208 +255 255 255 +110 39 39 +179 56 49 +234 79 54 +245 125 74 +174 35 52 +232 59 59 +251 107 29 +247 150 23 +249 194 43 +122 48 69 +158 69 57 +205 104 61 +230 144 78 +251 185 84 +76 62 36 +103 102 51 +162 169 71 +213 224 75 +251 255 134 +22 90 76 +35 144 99 +30 188 115 +145 219 105 +205 223 108 +49 54 56 +55 78 74 +84 126 100 +146 169 132 +178 186 144 +11 94 101 +11 138 143 +14 175 155 +48 225 185 +143 248 226 +50 51 83 +72 74 119 +77 101 180 +77 155 230 +143 211 255 +69 41 63 +107 62 117 +144 94 169 +168 132 243 +234 173 237 +117 60 84 +162 75 111 +207 101 127 +237 128 153 +131 28 93 +195 36 84 +240 79 120 +246 129 129 +252 167 144 +253 203 176 diff --git a/data/palette/sheltzy32.pal b/data/palette/sheltzy32.pal deleted file mode 100644 index 3f0013e..0000000 --- a/data/palette/sheltzy32.pal +++ /dev/null @@ -1,35 +0,0 @@ -JASC-PAL -0100 -32 -140 255 222 -69 184 179 -131 151 64 -201 236 133 -70 198 87 -21 137 104 -44 91 109 -34 42 92 -86 106 137 -139 171 191 -204 226 225 -255 219 165 -204 172 104 -163 109 62 -104 60 52 -0 0 0 -56 0 44 -102 59 147 -139 114 222 -156 216 252 -94 150 221 -57 83 192 -128 12 83 -195 75 145 -255 148 179 -189 31 63 -236 97 74 -255 164 104 -255 246 174 -255 218 112 -244 176 60 -255 255 255 diff --git a/data/player/player.aseprite b/data/player/player.aseprite deleted file mode 100644 index 5b22555..0000000 Binary files a/data/player/player.aseprite and /dev/null differ diff --git a/data/player/player.gif b/data/player/player.gif index 880aafb..faf4c8e 100644 Binary files a/data/player/player.gif and b/data/player/player.gif differ diff --git a/data/room/01.yaml b/data/room/01.yaml index adf0bee..c0b47e9 100644 --- a/data/room/01.yaml +++ b/data/room/01.yaml @@ -1,6 +1,6 @@ room: - bgColor: bright_blue - border: blue + bgColor: 1 + border: 0 tileSetFile: standard.gif # Conexiones de la habitación (null = sin conexión) @@ -11,13 +11,13 @@ room: right: 02.yaml # Colores de los objetos - itemColor1: yellow - itemColor2: magenta + itemColor1: 12 + itemColor2: 6 # Dirección de la cinta transportadora: left, none, right conveyorBelt: none -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) +# Tilemap: 21 filas x 32 columnas @ 8px/tile # Índices de tiles (-1 = vacío) tilemap: - [191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191] @@ -33,9 +33,14 @@ tilemap: - [33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33] - [33, 33, 33, 33, 33, 33, 33, 33, 33, -1, -1, -1, -1, -1, -1, -1, 33, 137, 138, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33] - [33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33] - - [33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33] + - [33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33] + - [33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, 33, 33, 33, 33, 33] + - [33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 545, -1, -1, -1, -1, -1, 33, 33, 33, 33, 33, 33] + - [26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 545, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] + - [26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 545, -1, -1, -1, -1, -1, -1, -1, -1, -1] + - [26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 303, 303, -1, -1, -1, -1, -1, -1, -1] + - [26, -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] + - [26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26] # Enemigos en esta habitación enemies: @@ -45,7 +50,6 @@ enemies: boundaries: position1: {x: 1, y: 13} position2: {x: 1, y: 13} - color: white - animation: jailer3.yaml position: {x: 4, y: 13} @@ -53,7 +57,6 @@ enemies: boundaries: position1: {x: 4, y: 13} position2: {x: 4, y: 13} - color: white - animation: jailer1.yaml position: {x: 7, y: 13} @@ -61,7 +64,6 @@ enemies: boundaries: position1: {x: 7, y: 13} position2: {x: 7, y: 13} - color: white - animation: jailer2.yaml position: {x: 10, y: 13} @@ -69,7 +71,6 @@ enemies: boundaries: position1: {x: 10, y: 13} position2: {x: 10, y: 13} - color: white - animation: jailer1.yaml position: {x: 13, y: 13} @@ -77,7 +78,6 @@ enemies: boundaries: position1: {x: 13, y: 13} position2: {x: 13, y: 13} - color: white - animation: elsa.yaml position: {x: 3, y: 9} @@ -85,7 +85,6 @@ enemies: boundaries: position1: {x: 3, y: 9} position2: {x: 3, y: 9} - color: white - animation: elsa.yaml position: {x: 6, y: 9} @@ -93,7 +92,6 @@ enemies: boundaries: position1: {x: 6, y: 9} position2: {x: 6, y: 9} - color: white - animation: lamp.yaml position: {x: 23, y: 6} @@ -101,7 +99,6 @@ enemies: boundaries: position1: {x: 23, y: 6} position2: {x: 23, y: 6} - color: white - animation: bry.yaml position: {x: 17, y: 13} @@ -109,7 +106,4 @@ enemies: boundaries: position1: {x: 17, y: 13} position2: {x: 17, y: 13} - color: white -# No items in this room -items: [] \ No newline at end of file diff --git a/data/room/02.yaml b/data/room/02.yaml index 7dc8043..f96f72d 100644 --- a/data/room/02.yaml +++ b/data/room/02.yaml @@ -1,6 +1,6 @@ room: - bgColor: black - border: blue + bgColor: 0 + border: 0 tileSetFile: standard.gif # Conexiones de la habitación (null = sin conexión) @@ -11,19 +11,19 @@ room: right: 03.yaml # Colores de los objetos - itemColor1: yellow - itemColor2: bright_yellow + itemColor1: 12 + itemColor2: 13 # Dirección de la cinta transportadora: left, none, right conveyorBelt: none -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) +# Tilemap: 21 filas x 32 columnas @ 8px/tile # Índices de tiles (-1 = vacío) tilemap: - [191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 42, 42, 42, 42, 42] - [42, 165, 165, 166, 167, 165, 184, 166, 165, 184, 165, 165, 167, 165, 165, 166, 165, 165, 184, 165, 165, 165, 184, 166, 165, 165, 165, 184, 24, 24, 24, 24] - - [42, 42, 210, 211, 211, 210, 180, 210, 212, 210, 180, 210, 211, 212, 210, 180, 210, 210, 210, 210, 211, 212, 210, 180, 210, 212, 180, 210, 134, -1, -1, -1] - - [42, 42, 42, -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, 134, -1, -1, -1] + - [42, 42, 210, 211, 211, 210, 180, 210, 212, 210, 180, 210, 211, 212, 210, 180, 210, 210, 210, 210, 211, 212, 210, 180, 210, 212, 180, 210, -1, -1, -1, -1] + - [42, 42, 42, -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] - [42, 42, 42, -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, 24, 24, 24, 24] - [33, 33, 303, -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, 24, 24, 24] - [33, 33, -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, 302, 24, 24] @@ -34,26 +34,31 @@ tilemap: - [33, 33, -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, 24, 24] - [33, 33, 412, -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, 410, 24, 24] - [-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] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 523, 188, 190, 547, -1, -1, -1, -1] - - [33, 33, 188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 190, -1, -1, 188, 189, 188, 189, 188, 189, 188, 190, 24, 24] + - [-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] + - [-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] + - [-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] + - [-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] + - [-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] + - [-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] + - [188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190, 188, 190] # Enemigos en esta habitación enemies: - animation: bin.yaml position: {x: 4, y: 7} - velocity: {x: 36.0, y: 0} + velocity: {x: 36, y: 0} boundaries: position1: {x: 4, y: 7} position2: {x: 25, y: 7} - color: green + color: 8 - animation: upv_student.yaml - position: {x: 4, y: 13} - velocity: {x: 36.0, y: 0} + position: {x: 9, y: 18} + velocity: {x: 36, y: 0} boundaries: - position1: {x: 4, y: 13} - position2: {x: 19, y: 13} - color: cyan + position1: {x: 3, y: 18} + position2: {x: 23, y: 18} + color: 10 flip: true # Objetos en esta habitación @@ -62,3 +67,4 @@ items: tile: 2 position: {x: 4, y: 6} counter: 1 + diff --git a/data/room/03.yaml b/data/room/03.yaml index 9e4e6ab..83f45f9 100644 --- a/data/room/03.yaml +++ b/data/room/03.yaml @@ -1,6 +1,6 @@ room: - bgColor: black - border: bright_black + bgColor: 0 + border: 1 tileSetFile: standard.gif # Conexiones de la habitación (null = sin conexión) @@ -11,31 +11,36 @@ room: right: null # Colores de los objetos - itemColor1: bright_cyan - itemColor2: yellow + itemColor1: 11 + itemColor2: 12 # Dirección de la cinta transportadora: left, none, right conveyorBelt: left -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) +# Tilemap: 21 filas x 32 columnas @ 8px/tile # Índices de tiles (-1 = vacío) tilemap: - - [24, 24, -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, 24, 24] - - [24, 24, -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, 24, 24] - - [-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, 24, 24] - - [-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, 24, 24] - - [24, 24, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, -1, -1, 504, 24, 24, 24, 24, 24, 24, 24, 24] - - [24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, 24, -1, -1, -1, -1, -1, 24, 24] - - [24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, 24, -1, -1, -1, -1, -1, 24, 24] - - [24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, 24, -1, -1, -1, -1, -1, 24, 24] - - [24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, 24, -1, -1, -1, -1, -1, 24, 24] - - [24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, 24, -1, -1, -1, -1, -1, 24, 24] - - [24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, 24, -1, -1, -1, -1, -1, 24, 24] - - [24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, -1, 24, 24, 24, -1, -1, -1, 24, 24] - - [24, 24, -1, -1, -1, -1, -1, -1, -1, 252, 252, 252, 252, 252, 252, 252, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 24] - - [-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, 134, 24] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 440, 440, 440, 440, -1, -1, -1, -1, -1, -1, -1, -1, 134, 24] - - [24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24] + - [24, 26, -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, 24, 26] + - [48, 50, -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, 24, 26] + - [-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, 24, 26] + - [-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, 24, 26] + - [0, 2, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, -1, -1, 504, 6, 7, 7, 7, 7, 7, 24, 26] + - [24, 26, -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, 24, 26] + - [24, 26, -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, -1, 24, 26] + - [24, 26, -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, -1, -1, 24, 26] + - [24, 26, -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, -1, -1, -1, 24, 26] + - [24, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 26] + - [24, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 26] + - [24, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 26] + - [24, 26, -1, -1, -1, -1, -1, -1, -1, 6, 7, 7, 7, 7, 7, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 26] + - [24, 26, -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, 24, 26] + - [24, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 26] + - [48, 50, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 48, 50, 329, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 26] + - [-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, 24, 26] + - [-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, 24, 26] + - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 1, 2, -1, -1, -1, -1, -1, 24, 26] + - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 25, 25, 26, -1, -1, -1, -1, -1, 24, 26] + - [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 53, 25, 25, 51, 1, 1, 1, 1, 1, 53, 51] # Enemigos en esta habitación enemies: @@ -45,12 +50,16 @@ enemies: boundaries: position1: {x: 3, y: 2} position2: {x: 27, y: 2} - color: yellow + color: 12 # Objetos en esta habitación items: - tileSetFile: items.gif - tile: 42 - position: {x: 21, y: 13} + tile: 0 + position: {x: 10, y: 11} + + - tileSetFile: items.gif + tile: 0 + position: {x: 13, y: 11} counter: 1 diff --git a/data/room/04.yaml b/data/room/04.yaml deleted file mode 100644 index 5bc0dfb..0000000 --- a/data/room/04.yaml +++ /dev/null @@ -1,63 +0,0 @@ -room: - bgColor: black - border: cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 02.yaml - down: null - left: 07.yaml - right: 05.yaml - - # Colores de los objetos - itemColor1: white - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 189, 188, 190, -1, -1, -1, 527, 188, 189, 188, 189, 188, 189, 188, 189] - - [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, -1, -1, -1, -1, -1, 527, -1, 14, 14, 14, 14, 14, 14, 14, 14] - - [14, 14, 14, -1, -1, -1, -1, 14, 14, 14, 14, 14, 14, 14, 301, -1, -1, -1, -1, -1, -1, 527, -1, -1, 14, 14, 14, 14, 14, 14, 14, 14] - - [14, 14, -1, -1, -1, -1, -1, 301, 14, 14, 14, 14, 14, -1, -1, -1, -1, -1, -1, -1, 527, -1, -1, -1, 14, 14, 14, 14, 14, 14, 14, 14] - - [14, 14, -1, -1, -1, -1, -1, -1, 14, 14, 14, 14, -1, -1, -1, -1, -1, -1, -1, 527, -1, -1, -1, -1, 14, 14, 14, 14, 14, 14, 14, 14] - - [14, 14, -1, -1, -1, -1, -1, -1, 14, 14, 14, -1, -1, -1, -1, -1, -1, -1, 527, -1, -1, -1, -1, -1, 14, 14, 14, 14, 14, 14, 14, 14] - - [14, 14, -1, -1, -1, -1, -1, -1, 14, 14, -1, -1, -1, -1, -1, -1, -1, 527, -1, -1, -1, -1, -1, -1, 14, 14, 14, 14, 14, 301, -1, -1] - - [14, 14, -1, -1, -1, -1, 414, 414, 14, 14, -1, -1, -1, 414, 414, 414, 414, -1, -1, -1, -1, -1, -1, -1, 14, 14, 14, 14, 301, -1, -1, -1] - - [14, 14, -1, -1, -1, -1, -1, -1, 14, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 14, 14, 14, 14, -1, -1, -1, -1, -1] - - [14, 14, 414, -1, -1, -1, -1, -1, 14, 14, 414, 414, 414, 551, -1, -1, -1, -1, -1, -1, -1, -1, 14, 14, 14, 14, -1, -1, -1, -1, -1, -1] - - [14, 14, -1, -1, -1, -1, 414, 414, 14, 14, -1, -1, -1, -1, 551, -1, -1, -1, -1, -1, -1, 14, 14, 14, 14, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 551, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, 414, 414, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 551, -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, 551, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, 518, 14, 62, 14, 62, 542, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 551, -1, -1, -1, -1, 518, 14, 62, 14, 62, 14, 62, 14, 62] - - [62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62] - -# Enemigos en esta habitación -enemies: - - animation: chip.yaml - position: {x: 24, y: 12} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 24, y: 12} - position2: {x: 31, y: 12} - color: magenta - - - animation: chip.yaml - position: {x: 4, y: 2} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 4, y: 2} - position2: {x: 4, y: 12} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 51 - position: {x: 2, y: 3} - counter: 1 diff --git a/data/room/05.yaml b/data/room/05.yaml deleted file mode 100644 index 2ec44a5..0000000 --- a/data/room/05.yaml +++ /dev/null @@ -1,79 +0,0 @@ -room: - bgColor: black - border: red - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 60.yaml - left: 04.yaml - right: 06.yaml - - # Colores de los objetos - itemColor1: bright_green - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [24, 24, 24, 24, 24, 24, -1, -1, 304, -1, -1, -1, 304, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 425, 426, 425, 426] - - [24, 24, 24, 24, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 425, 426, 92] - - [24, 24, 24, -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, 66, 67, 116] - - [133, -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, 226, 116] - - [133, -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, 116] - - [24, -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, 116] - - [24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 416, 416, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 140] - - [24, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24] - - [24, 24, 24, 24, 24, 24, -1, -1, -1, 416, 416, -1, -1, -1, -1, -1, -1, -1, 304, 30, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304] - - [-1, -1, -1, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 30, -1, -1, -1, -1, 416, 416, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, 416, 416, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 30, -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, 30, -1, -1, -1, -1, 416, 416, 416, -1, -1, 24, 24, 24] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 416, 416, -1, -1, -1, -1, -1, -1, -1, -1, 30, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24] - - [-1, -1, -1, -1, -1, 416, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 30, 531, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 88] - - [30, 30, 531, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 30, 48, 48, 48, 48, 48, 48, 48, 48, 88, 89, 88, 89] - - [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 304, -1, -1, 304, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30] - -# Enemigos en esta habitación -enemies: - - animation: floppy.yaml - position: {x: 15, y: 4} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 15, y: 0} - position2: {x: 15, y: 11} - color: magenta - - - animation: congo.yaml - position: {x: 21, y: 12} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 21, y: 12} - position2: {x: 28, y: 12} - color: yellow - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 68 - position: {x: 1, y: 3} - counter: 1 - - - tileSetFile: items.gif - tile: 68 - position: {x: 2, y: 3} - counter: 2 - - - tileSetFile: items.gif - tile: 68 - position: {x: 29, y: 12} - counter: 3 - - - tileSetFile: items.gif - tile: 68 - position: {x: 30, y: 12} - counter: 4 diff --git a/data/room/06.yaml b/data/room/06.yaml deleted file mode 100644 index 70b3f20..0000000 --- a/data/room/06.yaml +++ /dev/null @@ -1,84 +0,0 @@ -room: - bgColor: blue - border: yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 15.yaml - down: null - left: 05.yaml - right: 25.yaml - - # Colores de los objetos - itemColor1: green - itemColor2: bright_blue - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [425, 426, 425, 426, -1, -1, -1, -1, 425, 426, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67] - - [426, 425, 426, -1, -1, -1, -1, -1, -1, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91] - - [92, -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, 92] - - [116, -1, -1, -1, 425, 426, 425, 426, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 116] - - [116, -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, 116] - - [116, -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, 525, 402, 403, 403, 116] - - [140, -1, -1, 425, 426, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, -1, -1, -1, -1, 116] - - [31, -1, -1, -1, 425, 426, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, -1, -1, -1, -1, -1, 116] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, 402, 403, 403, 403, 404, 549, -1, -1, -1, 116] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, -1, -1, -1, -1, -1, -1, -1, 549, -1, -1, 116] - - [-1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, -1, -1, -1, -1, -1, -1, -1, -1, -1, 402, 403, 116] - - [31, 66, 67, 66, 67, 403, 403, 403, 403, 403, 404, -1, -1, -1, 402, 66, 67, 66, 67, 66, 67, 66, 67, 404, -1, -1, -1, -1, -1, -1, -1, 140] - - [31, 90, 91, 90, 91, 225, -1, -1, -1, -1, -1, -1, -1, -1, 91, 90, 91, 90, 91, 90, 91, 90, 91, 225, -1, -1, -1, -1, -1, -1, -1, 31] - - [134, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 427, -1, -1, -1, -1, -1, -1, -1] - - [134, -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, 555, -1, -1, -1, -1, -1] - - [88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89] - -# Enemigos en esta habitación -enemies: - - animation: abad.yaml - position: {x: 1, y: 13} - velocity: {x: 48.0, y: 0} - boundaries: - position1: {x: 1, y: 13} - position2: {x: 23, y: 13} - color: yellow - flip: true - - - animation: spider.yaml - position: {x: 24, y: 4} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 24, y: 2} - position2: {x: 24, y: 7} - color: green - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 49 - position: {x: 7, y: 2} - counter: 1 - - - tileSetFile: items.gif - tile: 49 - position: {x: 1, y: 14} - counter: 2 - - - tileSetFile: items.gif - tile: 49 - position: {x: 18, y: 14} - counter: 3 - - - tileSetFile: items.gif - tile: 49 - position: {x: 30, y: 9} - counter: 4 - - - tileSetFile: items.gif - tile: 49 - position: {x: 30, y: 4} - counter: 5 diff --git a/data/room/07.yaml b/data/room/07.yaml deleted file mode 100644 index 3ad8c64..0000000 --- a/data/room/07.yaml +++ /dev/null @@ -1,110 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 08.yaml - right: 04.yaml - - # Colores de los objetos - itemColor1: magenta - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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] - - [-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] - - [-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] - - [-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] - - [-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] - - [-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] - - [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] - - [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] - - [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] - - [1, 410, -1, -1, -1, -1, -1, 412, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 412, -1, -1, -1, -1, -1, 410, 1] - - [1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, 1] - - [1, -1, -1, -1, -1, -1, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6, 410, 410, -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, 6, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, 412, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6, 412, -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, 6, -1, -1, -1, -1, -1, -1, -1, -1] - - [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6] - -# Enemigos en esta habitación -enemies: - - animation: sigmasua.yaml - position: {x: 15, y: 7} - velocity: {x: 48.0, y: 0} - boundaries: - position1: {x: 7, y: 7} - position2: {x: 23, y: 7} - color: cyan - - - animation: sigmasua.yaml - position: {x: 15, y: 4} - velocity: {x: -30.0, y: 0} - boundaries: - position1: {x: 7, y: 4} - position2: {x: 23, y: 4} - color: blue - - - animation: sigmasua.yaml - position: {x: 3, y: 8} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 3, y: 5} - position2: {x: 3, y: 13} - color: bright_red - - - animation: sigmasua.yaml - position: {x: 27, y: 8} - velocity: {x: 0, y: -24.0} - boundaries: - position1: {x: 27, y: 5} - position2: {x: 27, y: 13} - color: yellow - - - animation: sigmasua.yaml - position: {x: 12, y: 10} - velocity: {x: 0, y: 18.0} - boundaries: - position1: {x: 12, y: 10} - position2: {x: 12, y: 13} - color: bright_magenta - - - animation: sigmasua.yaml - position: {x: 17, y: 13} - velocity: {x: 0, y: -18.0} - boundaries: - position1: {x: 17, y: 10} - position2: {x: 17, y: 13} - color: bright_green - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 67 - position: {x: 15, y: 6} - counter: 1 - - - tileSetFile: items.gif - tile: 67 - position: {x: 1, y: 8} - counter: 2 - - - tileSetFile: items.gif - tile: 67 - position: {x: 30, y: 8} - counter: 3 - - - tileSetFile: items.gif - tile: 67 - position: {x: 21, y: 13} - counter: 4 diff --git a/data/room/08.yaml b/data/room/08.yaml deleted file mode 100644 index 2ff4b43..0000000 --- a/data/room/08.yaml +++ /dev/null @@ -1,66 +0,0 @@ -room: - bgColor: black - border: cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 09.yaml - down: null - left: 16.yaml - right: 07.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [81, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 40, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, 81] - - [81, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, -1, 81] - - [81, -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, 504, -1, -1, 81] - - [81, -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, 504, -1, -1, -1, 81] - - [81, -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, 81] - - [81, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, 305, 305, -1, -1, -1, 305, -1, -1, -1, -1, -1, 81] - - [81, -1, -1, -1, -1, 305, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 81] - - [81, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, 81] - - [81, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, 305, -1, -1, -1, 81] - - [81, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 81] - - [81, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, 305, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, 81] - - [81, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 81] - - [81, -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, 81] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 515, 81, 81, 81, 81, 81, 81, 539, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 515, 81, 81, 81, 81, 81, 81, 81, 81, 539, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81] - -# Enemigos en esta habitación -enemies: - - animation: abad.yaml - position: {x: 4, y: 13} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 2, y: 13} - position2: {x: 10, y: 13} - color: green - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 18 - position: {x: 5, y: 5} - counter: 1 - - - tileSetFile: items.gif - tile: 18 - position: {x: 25, y: 9} - counter: 2 - - - tileSetFile: items.gif - tile: 18 - position: {x: 10, y: 5} - counter: 3 diff --git a/data/room/09.yaml b/data/room/09.yaml deleted file mode 100644 index 2af1a97..0000000 --- a/data/room/09.yaml +++ /dev/null @@ -1,75 +0,0 @@ -room: - bgColor: black - border: bright_blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 10.yaml - down: 08.yaml - left: null - right: null - - # Colores de los objetos - itemColor1: cyan - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 304, 40, 40, 40, 40, 304, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 16, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 40, 40, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 16, 16, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 16, 16, 16, 16] - - [-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, 517, 16, 16, 16, 16, 16] - - [-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, 517, 16, 16, 16, 16, 16, 16] - - [-1, -1, -1, -1, -1, 304, 304, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 16, 16, 16, 16, 16, 16, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, 304, 304, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, -1, -1, -1, -1, 16, 16, 16, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16, 16, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 348, 348, 348, 348, 348, -1, -1, -1, -1, -1, 304, -1, -1, -1, -1, -1, -1, 16, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, -1, 40, 40, 40, 40, -1, -1, -1, 304, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 40, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16] - - [-1, -1, -1, -1, -1, 304, 304, 530, -1, -1, -1, -1, -1, -1, 40, 40, -1, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 530, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 537, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16] - - [562, 562, 562, 562, 562, 562, 562, 562, 562, 562, -1, -1, -1, 40, 40, 40, 40, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, -1, -1, 348, 348, 348] - -# Enemigos en esta habitación -enemies: - - animation: congo.yaml - position: {x: 10, y: 12} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 10, y: 12} - position2: {x: 20, y: 12} - color: yellow - flip: true - - - animation: congo.yaml - position: {x: 12, y: 6} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 12, y: 6} - position2: {x: 17, y: 6} - color: white - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 52 - position: {x: 5, y: 7} - counter: 1 - - - tileSetFile: items.gif - tile: 52 - position: {x: 5, y: 1} - counter: 2 - - - tileSetFile: items.gif - tile: 52 - position: {x: 17, y: 4} - counter: 2 diff --git a/data/room/10.yaml b/data/room/10.yaml deleted file mode 100644 index 19d20e4..0000000 --- a/data/room/10.yaml +++ /dev/null @@ -1,48 +0,0 @@ -room: - bgColor: bright_black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 09.yaml - left: null - right: 11.yaml - - # Colores de los objetos - itemColor1: green - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 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, -1, 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, 304, -1, -1, 304, -1, -1, -1, 85, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, 304, -1, 304, 304, -1, 304, -1, 304, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, 304, 304, 304, 304, -1, 304, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 304, -1, 304, 304, 304, 304, 304, 304, -1, 304, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85] - - [-1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 304, -1, 304, 304, 304, 304, -1, 304, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, 304, 304, -1, 304, 304, 304, 304, 304, 304, 304, 304, -1, 304, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, 304, 304, -1, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 304, 304, 304, 304, 304, 304, 304, 304, -1, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, 304, -1, -1, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 304, 304, 304, 40, 40, 304, 304, 304, -1, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 304, -1, 304, 40, 40, 40, 40, 304, -1, 304, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 304, 304, 40, 40, 40, 40, 304, 304, -1, -1, 304, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 304, -1, 304, 40, 40, 40, 40, 304, -1, 304, 304, -1, -1, -1, -1, -1, -1, -1, -1, 517, 85, 85] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 40, 40, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 85, 85, 85] - -# No enemies in this room -enemies: [] - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 16 - position: {x: 21, y: 4} - counter: 1 diff --git a/data/room/11.yaml b/data/room/11.yaml deleted file mode 100644 index 8b116af..0000000 --- a/data/room/11.yaml +++ /dev/null @@ -1,83 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 10.yaml - right: 12.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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, 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, -1, -1, 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, -1, -1, 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, -1, -1, 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, -1, -1, 27] - - [388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, -1, 364, -1, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 340, -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, 340, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, 559, 559, -1, -1, -1, -1, -1, -1, 340, -1, -1, -1, -1, -1, 559, 559, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 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, -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, -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, -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, -1, -1] - - [85, 85, 539, -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, 515, 85, 85] - - [85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85] - -# Enemigos en esta habitación -enemies: - - animation: lamp.yaml - position: {x: 7, y: 10} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 7, y: 10} - position2: {x: 7, y: 10} - color: magenta - - - animation: lamp.yaml - position: {x: 21, y: 10} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 21, y: 10} - position2: {x: 21, y: 10} - color: magenta - - - animation: bin.yaml - position: {x: 12, y: 14} - velocity: {x: 48.0, y: 0} - boundaries: - position1: {x: 3, y: 14} - position2: {x: 27, y: 14} - color: green - - - animation: wave.yaml - position: {x: 7, y: 6} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 0, y: 6} - position2: {x: 14, y: 6} - color: green - - - animation: wave.yaml - position: {x: 23, y: 6} - velocity: {x: -30.0, y: 0} - boundaries: - position1: {x: 16, y: 6} - position2: {x: 31, y: 6} - color: green - -# No items in this room -items: [] \ No newline at end of file diff --git a/data/room/12.yaml b/data/room/12.yaml deleted file mode 100644 index 723d6c6..0000000 --- a/data/room/12.yaml +++ /dev/null @@ -1,68 +0,0 @@ -room: - bgColor: black - border: green - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 11.yaml - right: 13.yaml - - # Colores de los objetos - itemColor1: red - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [24, -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] - - [24, -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] - - [24, -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] - - [24, -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] - - [24, -1, -1, -1, 526, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, 24, 24, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 250, -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, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 526, 24] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 24, 550, -1, -1, -1, -1, -1, -1, -1, -1, -1, 526, 24, 24] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 24, 24, 24, 24, -1, -1, -1, -1, -1, 24, 24, 24, 24, 24] - - [24, 24, 24, 24, -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, 24, 24, 24] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 250, -1, -1, -1, -1, -1, 24, 24] - - [-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, 24] - - [-1, -1, -1, -1, 394, 394, 394, 394, 394, 370, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, -1, -1, -1, -1, -1, -1, 24] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 322, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [24, 24, 550, -1, -1, -1, -1, -1, -1, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24] - -# Enemigos en esta habitación -enemies: - - animation: floppy.yaml - position: {x: 9, y: 10} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 4, y: 10} - position2: {x: 22, y: 10} - color: green - - - animation: floppy.yaml - position: {x: 1, y: 0} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 1, y: 0} - position2: {x: 1, y: 7} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 34 - position: {x: 17, y: 8} - counter: 1 - - - tileSetFile: items.gif - tile: 34 - position: {x: 3, y: 6} - counter: 2 diff --git a/data/room/13.yaml b/data/room/13.yaml deleted file mode 100644 index f55f0c7..0000000 --- a/data/room/13.yaml +++ /dev/null @@ -1,89 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 12.yaml - right: 14.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: cyan - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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] - - [-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] - - [-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] - - [-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] - - [-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] - - [-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] - - [25, 25, 25, 25, 25, -1, -1, 25, 25, 25, 25, 25, -1, -1, 25, 25, 25, 25, 25, -1, -1, 25, 25, 25, 25, 25, -1, -1, 25, 25, 25, 25] - - [136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136] - - [136, 65, 136, 65, 136, -1, -1, 136, 65, 136, 65, 136, -1, -1, 136, 65, 136, 65, 136, -1, -1, 136, 65, 136, 65, 136, -1, -1, 136, 65, 136, 65] - - [136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136] - - [136, 65, 136, 65, 136, -1, -1, 136, 65, 136, 65, 136, -1, -1, 136, 65, 136, 65, 136, -1, -1, 136, 65, 136, 65, 136, -1, -1, 136, 65, 136, 65] - - [136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136, 136, -1, -1, 136, 136, 136, 136] - - [136, 136, 111, 136, 136, -1, -1, 136, 136, 111, 136, 136, -1, -1, 136, 136, 111, 136, 136, -1, -1, 136, 136, 111, 136, 136, -1, -1, 136, 136, 111, 136] - - [-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] - - [-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] - - [25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25] - -# Enemigos en esta habitación -enemies: - - animation: matatunos.yaml - position: {x: 5, y: 1} - velocity: {x: 0, y: 60.0} - boundaries: - position1: {x: 5, y: 1} - position2: {x: 5, y: 13} - color: bright_blue - - - animation: tuno.yaml - position: {x: 12, y: 4} - velocity: {x: 0, y: 66.0} - boundaries: - position1: {x: 12, y: 1} - position2: {x: 12, y: 13} - color: red - - - animation: tuno.yaml - position: {x: 19, y: 7} - velocity: {x: 0, y: 54.0} - boundaries: - position1: {x: 19, y: 1} - position2: {x: 19, y: 13} - color: yellow - - - animation: tuno.yaml - position: {x: 26, y: 11} - velocity: {x: 0, y: 42.0} - boundaries: - position1: {x: 26, y: 1} - position2: {x: 26, y: 13} - color: magenta - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 53 - position: {x: 9, y: 4} - counter: 1 - - - tileSetFile: items.gif - tile: 53 - position: {x: 16, y: 4} - counter: 2 - - - tileSetFile: items.gif - tile: 53 - position: {x: 23, y: 4} - counter: 3 diff --git a/data/room/14.yaml b/data/room/14.yaml deleted file mode 100644 index 07d53b2..0000000 --- a/data/room/14.yaml +++ /dev/null @@ -1,76 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 15.yaml - left: 13.yaml - right: 45.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: cyan - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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, 29] - - [-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, 29] - - [-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, 29] - - [-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, 29] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, 29] - - [-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, 305, -1, -1, -1, -1, -1, 29] - - [25, 25, 25, 25, 25, -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, 29] - - [136, 136, 136, 136, 136, -1, 25, 25, 25, 25, 25, 537, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, 305, -1, -1, 305, 29] - - [136, 65, 136, 65, 136, -1, 136, 136, 136, 136, 136, 136, 537, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1] - - [136, 136, 136, 136, 136, 421, 136, 136, 65, 136, 65, 136, 136, 537, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1] - - [136, 65, 136, 65, 136, -1, 136, 136, 136, 136, 136, 136, 136, 136, 537, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, 305, -1, -1] - - [136, 136, 136, 136, 136, -1, 136, 136, 65, 136, 65, 136, 65, 136, 136, 537, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, 29, 29] - - [136, 136, 136, 136, 336, -1, 336, 136, 136, 136, 136, 136, 136, 136, 136, 136, -1, -1, -1, -1, -1, 325, -1, -1, -1, -1, -1, -1, -1, -1, -1, 29] - - [-1, -1, -1, -1, 336, -1, 336, -1, -1, -1, -1, -1, -1, -1, 312, -1, -1, -1, -1, 305, -1, -1, 325, -1, -1, 305, -1, 325, 305, -1, -1, 29] - - [-1, -1, -1, -1, 336, -1, 336, -1, -1, -1, -1, -1, -1, -1, 312, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 29] - - [15, 15, 15, 15, 15, -1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 325, -1, -1, 325, 325, 15, 15, 15, 15, 15, 15, 15] - -# Enemigos en esta habitación -enemies: - - animation: matatunos.yaml - position: {x: 6, y: 5} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 5, y: 5} - position2: {x: 10, y: 5} - color: bright_green - - - animation: tuno.yaml - position: {x: 21, y: 2} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 21, y: 2} - position2: {x: 21, y: 13} - color: red - - - animation: tuno.yaml - position: {x: 28, y: 6} - velocity: {x: 0, y: -24.0} - boundaries: - position1: {x: 28, y: 2} - position2: {x: 28, y: 13} - color: magenta - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 53 - position: {x: 30, y: 14} - counter: 1 - - - tileSetFile: items.gif - tile: 53 - position: {x: 25, y: 1} - counter: 2 diff --git a/data/room/15.yaml b/data/room/15.yaml deleted file mode 100644 index 1cda5ac..0000000 --- a/data/room/15.yaml +++ /dev/null @@ -1,110 +0,0 @@ -room: - bgColor: black - border: black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 14.yaml - down: 06.yaml - left: null - right: null - - # Colores de los objetos - itemColor1: yellow - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -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] - -# Enemigos en esta habitación -enemies: - - animation: batman.yaml - position: {x: 17, y: 13} - velocity: {x: 48.0, y: 0} - boundaries: - position1: {x: 7, y: 13} - position2: {x: 29, y: 13} - color: white - flip: true - - - animation: bat.yaml - position: {x: 14, y: 2} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 9, y: 2} - position2: {x: 30, y: 2} - color: bright_blue - - - animation: bat.yaml - position: {x: 10, y: 10} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 1, y: 10} - position2: {x: 30, y: 10} - color: cyan - - - animation: bat.yaml - position: {x: 15, y: 1} - velocity: {x: 0, y: 42.0} - boundaries: - position1: {x: 15, y: 1} - position2: {x: 15, y: 11} - color: red - -# Objetos en esta habitación -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 diff --git a/data/room/16.yaml b/data/room/16.yaml deleted file mode 100644 index 761e688..0000000 --- a/data/room/16.yaml +++ /dev/null @@ -1,81 +0,0 @@ -room: - bgColor: blue - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 44.yaml - down: null - left: 17.yaml - right: 08.yaml - - # Colores de los objetos - itemColor1: bright_cyan - itemColor2: yellow - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [28, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 416, -1, -1, 416, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 28] - - [28, -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, 28] - - [28, -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, 28] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 272, 272, 272, 272, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 28] - - [-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, 28] - - [28, 28, 28, 28, -1, 28, 28, 28, 28, 28, -1, 28, 28, 28, 28, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 28] - - [28, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 321, 321, 321, 321, 321, 321, 321, 321, -1, -1, 321, -1, 28] - - [28, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, -1, -1, -1, -1, -1, -1, -1, -1, 28] - - [28, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, -1, -1, -1, -1, -1, -1, -1, -1, 28] - - [28, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 28, 28, 28, 28, -1, -1, 28, 28, 28, 28, 28, 28, 28, -1, -1, -1, -1, -1, -1, -1, 28] - - [28, -1, -1, -1, -1, 272, 272, 272, 272, 272, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 28] - - [28, -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, 28] - - [28, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 28] - - [-1, -1, -1, -1, -1, -1, 344, -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, 344, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 552, -1, -1, -1, -1, -1, -1, 552, -1, -1, -1, -1, -1, -1] - - [28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28] - -# Enemigos en esta habitación -enemies: - - animation: chip.yaml - position: {x: 7, y: 3} - velocity: {x: 60.0, y: 0} - boundaries: - position1: {x: 2, y: 3} - position2: {x: 13, y: 3} - color: magenta - - - animation: chip.yaml - position: {x: 30, y: 7} - velocity: {x: -48.0, y: 0} - boundaries: - position1: {x: 10, y: 7} - position2: {x: 30, y: 7} - color: bright_white - - - animation: wave.yaml - position: {x: 15, y: 12} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 15, y: 12} - position2: {x: 30, y: 12} - color: bright_magenta - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 6 - position: {x: 2, y: 2} - counter: 1 - - - tileSetFile: items.gif - tile: 6 - position: {x: 29, y: 5} - counter: 2 - - - tileSetFile: items.gif - tile: 6 - position: {x: 21, y: 12} - counter: 3 diff --git a/data/room/17.yaml b/data/room/17.yaml deleted file mode 100644 index 509de90..0000000 --- a/data/room/17.yaml +++ /dev/null @@ -1,76 +0,0 @@ -room: - bgColor: black - border: magenta - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 18.yaml - left: 49.yaml - right: 16.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87] - - [87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87] - - [87, 87, -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, 87, 87] - - [87, 87, -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] - - [87, 87, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1] - - [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, 87, 87, 87, 87, 87] - - [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, 87, 87, 87] - - [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, 87, 87] - - [87, 87, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, 410, 410, 410, 410, 522, -1, -1, -1, -1, -1, -1, 87, 87] - - [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, 87, 87] - - [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, 87, 87] - - [87, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, -1, 87, 87] - - [87, 87, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 87, 87] - - [-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] - - [-1, -1, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, -1, -1, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362, 362] - -# Enemigos en esta habitación -enemies: - - animation: floppy.yaml - position: {x: 5, y: 6} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 5, y: 4} - position2: {x: 5, y: 10} - color: green - - - animation: floppy.yaml - position: {x: 12, y: 3} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 12, y: 2} - position2: {x: 12, y: 9} - color: cyan - - - animation: chip.yaml - position: {x: 8, y: 13} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 8, y: 13} - position2: {x: 18, y: 13} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 21 - position: {x: 2, y: 9} - counter: 1 - - - tileSetFile: items.gif - tile: 21 - position: {x: 2, y: 5} - counter: 2 diff --git a/data/room/18.yaml b/data/room/18.yaml deleted file mode 100644 index 08ed18f..0000000 --- a/data/room/18.yaml +++ /dev/null @@ -1,153 +0,0 @@ -room: - bgColor: black - border: yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 17.yaml - down: 54.yaml - left: 19.yaml - right: null - - # Colores de los objetos - itemColor1: bright_green - itemColor2: bright_yellow - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: left - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -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] - -# Enemigos en esta habitación -enemies: - - animation: code.yaml - position: {x: 19, y: 6} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 18, y: 6} - position2: {x: 29, y: 6} - color: magenta - - - animation: spider.yaml - position: {x: 14, y: 10} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 14, y: 10} - position2: {x: 28, y: 10} - color: yellow - - - animation: spider.yaml - position: {x: 23, y: 12} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 23, y: 12} - position2: {x: 28, y: 12} - color: magenta - mirror: true - - - animation: lamp.yaml - position: {x: 19, y: 1} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 19, y: 1} - position2: {x: 19, y: 1} - color: yellow - - - animation: lamp.yaml - position: {x: 26, y: 1} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 26, y: 1} - position2: {x: 26, y: 1} - color: yellow - -# Objetos en esta habitación -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 diff --git a/data/room/19.yaml b/data/room/19.yaml deleted file mode 100644 index 83d1c48..0000000 --- a/data/room/19.yaml +++ /dev/null @@ -1,90 +0,0 @@ -room: - bgColor: black - border: cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 20.yaml - right: 18.yaml - - # Colores de los objetos - itemColor1: cyan - itemColor2: blue - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348] - - [-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, 187] - - [-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, 187] - - [-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, 187] - - [-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, 187] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 37, 37, 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 187] - - [-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, 187] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 240, 240, -1, -1, -1, -1, -1, -1, 240, 240, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 187] - - [-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, 187] - - [-1, -1, -1, -1, -1, -1, 37, 37, 240, 240, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 240, 240, 37, 37, -1, -1, -1, -1, -1, 187] - - [-1, -1, -1, -1, -1, 37, 37, -1, -1, -1, -1, 240, 240, -1, -1, -1, -1, -1, -1, 240, 240, -1, -1, -1, -1, 37, 37, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, 37, 37, -1, -1, -1, -1, -1, -1, -1, -1, 240, 240, 240, 240, -1, -1, -1, -1, -1, -1, -1, -1, 37, 37, -1, -1, -1, -1] - - [-1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, 240, 240, -1, -1, -1, -1, -1, -1, 240, 240, -1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1] - - [-1, -1, -1, 240, 37, -1, -1, -1, 240, 240, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 240, 240, -1, -1, -1, 37, 240, -1, -1, -1] - - [-1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1] - - [37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37] - -# Enemigos en esta habitación -enemies: - - animation: batman.yaml - position: {x: 10, y: 13} - velocity: {x: 48.0, y: 0} - boundaries: - position1: {x: 5, y: 13} - position2: {x: 26, y: 13} - color: bright_cyan - flip: true - - - animation: spider.yaml - position: {x: 0, y: 1} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 1, y: 1} - position2: {x: 31, y: 1} - color: cyan - mirror: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 34 - position: {x: 14, y: 6} - counter: 1 - - - tileSetFile: items.gif - tile: 34 - position: {x: 15, y: 6} - counter: 2 - - - tileSetFile: items.gif - tile: 34 - position: {x: 16, y: 6} - counter: 3 - - - tileSetFile: items.gif - tile: 34 - position: {x: 17, y: 6} - counter: 4 - - - tileSetFile: items.gif - tile: 34 - position: {x: 5, y: 12} - counter: 5 - - - tileSetFile: items.gif - tile: 34 - position: {x: 26, y: 12} - counter: 6 diff --git a/data/room/20.yaml b/data/room/20.yaml deleted file mode 100644 index cdb227c..0000000 --- a/data/room/20.yaml +++ /dev/null @@ -1,68 +0,0 @@ -room: - bgColor: black - border: red - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 21.yaml - right: 19.yaml - - # Colores de los objetos - itemColor1: magenta - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [20, 20, 20, 20, 20, 20, -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, 20, 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, -1, -1] - - [20, 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, -1, -1, -1, -1] - - [20, -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] - - [20, -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] - - [20, -1, -1, -1, -1, -1, -1, 412, 412, 412, 412, 412, -1, -1, -1, -1, 412, 412, 412, 412, 412, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, -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] - - [20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 412, -1, -1, -1, -1, -1, -1, -1] - - [20, -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] - - [20, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 412, 412, 412, 412, 412, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, 20, 20, -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] - - [20, 20, 20, -1, -1, -1, -1, -1, -1, -1, 412, 412, 412, 412, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 412, 412, 412, -1, -1, -1] - - [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, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 412, 412, 412, 412, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1] - - [20, 20, 20, 20, 20, 20, 20, 20, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155] - -# Enemigos en esta habitación -enemies: - - animation: bin.yaml - position: {x: 8, y: 12} - velocity: {x: 60.0, y: 0} - boundaries: - position1: {x: 8, y: 12} - position2: {x: 24, y: 12} - color: green - - - animation: code.yaml - position: {x: 13, y: 2} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 13, y: 2} - position2: {x: 13, y: 9} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 19 - position: {x: 7, y: 3} - counter: 1 - - - tileSetFile: items.gif - tile: 19 - position: {x: 27, y: 8} - counter: 2 diff --git a/data/room/21.yaml b/data/room/21.yaml deleted file mode 100644 index 83c1fdb..0000000 --- a/data/room/21.yaml +++ /dev/null @@ -1,75 +0,0 @@ -room: - bgColor: bright_black - border: yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 23.yaml - down: null - left: 22.yaml - right: 20.yaml - - # Colores de los objetos - itemColor1: magenta - itemColor2: yellow - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 529, -1, -1, -1, -1, 20, 20, 20, 20, 20] - - [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, -1, -1, 529, -1, -1, -1, -1, -1, 306, 20, 20] - - [20, 20, 20, 306, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 529, -1, -1, -1, -1, -1, -1, 20] - - [20, 20, 306, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 529, -1, -1, -1, -1, -1, 20] - - [20, -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, 529, -1, -1, -1, -1, 20] - - [-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, 529, -1, 518, 20, 20] - - [-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, 518, 20, 20, 20, 20] - - [-1, -1, -1, -1, -1, 399, -1, -1, -1, 396, 396, 396, 396, 397, 399, 399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 298, 20, 22, 23, 20] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 399, -1, -1, -1, -1, -1, -1, 518, 298, 298, 20, 46, 47, 20] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 298, 298, 298, 20, 20, 20, 20] - - [418, 396, -1, 418, 398, 398, 418, 418, -1, 396, 396, 396, 418, 418, 418, 398, 418, 396, 418, -1, 418, 398, 418, 418, 418, 396, 418, 418, 418, 418, 418, 20] - - [-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, 20] - - [-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] - - [-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] - - [-1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20] - -# Enemigos en esta habitación -enemies: - - animation: mummy.yaml - position: {x: 13, y: 13} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 9, y: 13} - position2: {x: 18, y: 13} - color: yellow - flip: true - - - animation: spider.yaml - position: {x: 13, y: 9} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 4, y: 9} - position2: {x: 21, y: 9} - color: bright_green - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 36 - position: {x: 8, y: 11} - counter: 1 - - - tileSetFile: items.gif - tile: 36 - position: {x: 19, y: 11} - counter: 2 - - - tileSetFile: items.gif - tile: 36 - position: {x: 5, y: 3} - counter: 3 diff --git a/data/room/22.yaml b/data/room/22.yaml deleted file mode 100644 index 391b90e..0000000 --- a/data/room/22.yaml +++ /dev/null @@ -1,79 +0,0 @@ -room: - bgColor: bright_black - border: yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: null - right: 21.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 23, 20] - - [20, 20, 20, 20, 22, 23, 20, 22, 23, 20, 22, 23, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 46, 47, 20] - - [20, -1, -1, 20, 46, 47, 20, 46, 47, 20, 46, 47, 20, 20, 306, -1, -1, -1, -1, -1, -1, -1, -1, -1, 306, 20, 20, 20, 20, 20, 20, 20] - - [20, -1, -1, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 306, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 306, 20, 20] - - [20, -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, 20] - - [20, 399, -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] - - [20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 399, 399, 399, 399, 399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, 399, 399, -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] - - [20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, -1, -1, 398, -1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, -1, -1, -1, 398, -1, -1, 505, 418, 396, 396, 396, 418, 418, 397, 418, 418, 418, 418, 418, -1, 396, 396, 396, 418, 397, 396, 396, 418, -1, 418, 418] - - [20, -1, -1, -1, -1, -1, 505, -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, -1, -1, -1, -1, 505, -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, -1, -1, -1, 505, -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] - - [20, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20] - -# Enemigos en esta habitación -enemies: - - animation: mummy.yaml - position: {x: 15, y: 13} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 12, y: 13} - position2: {x: 21, y: 13} - color: yellow - flip: true - - - animation: mummy.yaml - position: {x: 13, y: 8} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 13, y: 8} - position2: {x: 19, y: 8} - color: bright_yellow - flip: true - - - animation: mummy.yaml - position: {x: 22, y: 8} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 22, y: 8} - position2: {x: 28, y: 8} - color: bright_yellow - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 37 - position: {x: 1, y: 2} - counter: 1 - - - tileSetFile: items.gif - tile: 37 - position: {x: 19, y: 5} - counter: 2 diff --git a/data/room/23.yaml b/data/room/23.yaml deleted file mode 100644 index 209efe5..0000000 --- a/data/room/23.yaml +++ /dev/null @@ -1,76 +0,0 @@ -room: - bgColor: black - border: bright_yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 21.yaml - left: 24.yaml - right: null - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [20, 20, 20, 20, 20, 22, 23, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20] - - [20, 20, 20, 20, 20, 46, 47, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20] - - [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20] - - [20, 20, 20, -1, -1, -1, -1, 306, -1, 306, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 306, 20, 20, 20] - - [20, 20, -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, 306, 20, 20] - - [20, 20, -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, 20, 20] - - [20, 20, 399, -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, 20, 20] - - [20, 20, -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, 20, 20] - - [20, 20, -1, -1, 399, 399, 399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 399, 399, 399, -1, -1, -1, -1, -1, 399, 20, 20] - - [20, 20, -1, 399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 399, 399, -1, -1, -1, 20, 20] - - [20, 20, -1, -1, -1, -1, -1, -1, 399, 399, 399, -1, -1, -1, -1, -1, -1, 399, 399, 399, -1, -1, -1, -1, -1, -1, -1, -1, 20, 20, 20, 20] - - [20, 20, -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, 22, 23, 20] - - [20, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 20, 20, 20, 20, 542, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, 46, 47, 20] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 20, 20, 22, 23, 20, 20, 542, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, 22, 23, 20] - - [-1, -1, -1, -1, -1, 555, -1, -1, -1, 518, 20, 20, 20, 46, 47, 20, 20, 20, 542, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, 46, 47, 20] - - [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, -1, -1, 21, 21, 21, 21, 21] - -# Enemigos en esta habitación -enemies: - - animation: shock.yaml - position: {x: 7, y: 7} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 7, y: 3} - position2: {x: 7, y: 14} - color: magenta - - - animation: shock.yaml - position: {x: 20, y: 10} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 20, y: 3} - position2: {x: 20, y: 14} - color: magenta - - - animation: shock.yaml - position: {x: 27, y: 10} - velocity: {x: 0, y: -48.0} - boundaries: - position1: {x: 27, y: 3} - position2: {x: 27, y: 14} - color: magenta - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 38 - position: {x: 29, y: 5} - counter: 1 - - - tileSetFile: items.gif - tile: 38 - position: {x: 2, y: 4} - counter: 2 diff --git a/data/room/24.yaml b/data/room/24.yaml deleted file mode 100644 index 569efc3..0000000 --- a/data/room/24.yaml +++ /dev/null @@ -1,86 +0,0 @@ -room: - bgColor: black - border: bright_yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: null - right: 23.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -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] - -# Enemigos en esta habitación -enemies: - - animation: sam.yaml - position: {x: 4, y: 2} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 4, y: 2} - position2: {x: 4, y: 2} - color: white - - - animation: shock.yaml - position: {x: 5, y: 11} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 5, y: 11} - position2: {x: 5, y: 14} - color: bright_green - - - animation: spider.yaml - position: {x: 25, y: 1} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 25, y: 1} - position2: {x: 25, y: 10} - color: bright_green - -# Objetos en esta habitación -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 diff --git a/data/room/25.yaml b/data/room/25.yaml deleted file mode 100644 index 16e3468..0000000 --- a/data/room/25.yaml +++ /dev/null @@ -1,100 +0,0 @@ -room: - bgColor: blue - border: yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 06.yaml - right: 26.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: cyan - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67] - - [90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91] - - [92, -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, 92] - - [116, -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, 116] - - [116, -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, 116] - - [116, 397, -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, 140] - - [116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, 92, 549, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31] - - [116, 403, 404, -1, -1, -1, -1, -1, -1, -1, -1, -1, 402, 403, 403, 403, 403, 404, 399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [116, -1, -1, -1, -1, -1, -1, -1, -1, -1, 398, 399, -1, -1, -1, 116, -1, -1, -1, 427, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1] - - [116, -1, -1, 402, 403, 404, -1, -1, -1, 427, -1, -1, -1, -1, -1, 116, -1, -1, -1, -1, -1, -1, -1, 525, 402, 403, 403, 31, 31, 31, 31, 31] - - [116, -1, 427, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, -1, -1, -1, -1, 525, -1, -1, -1, -1, 31, -1, -1, 31, 31] - - [140, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, -1, -1, -1, 525, -1, -1, -1, -1, -1, 31, -1, -1, 31, 31] - - [31, 403, 403, 404, 398, -1, -1, -1, 396, -1, -1, -1, 402, 403, 403, 403, 403, 404, -1, 402, 404, -1, -1, -1, 402, 403, 403, 31, 31, 31, 31, 31] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, 31, 31] - - [-1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, 88, 93, 140, 555, -1, -1, -1, -1, -1, -1, -1, -1, 88, 93, 134, -1, -1, 31, 88] - - [88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89] - -# Enemigos en esta habitación -enemies: - - animation: batman_bell.yaml - position: {x: 28, y: 13} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 28, y: 13} - position2: {x: 28, y: 13} - color: cyan - - - animation: bell.yaml - position: {x: 28, y: 10} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 28, y: 10} - position2: {x: 28, y: 10} - color: cyan - - - animation: bell.yaml - position: {x: 6, y: 2} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 6, y: 2} - position2: {x: 6, y: 2} - color: cyan - - - animation: dong.yaml - position: {x: 6, y: 4} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 6, y: 4} - position2: {x: 6, y: 13} - color: cyan - - - animation: bell.yaml - position: {x: 20, y: 2} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 20, y: 2} - position2: {x: 20, y: 2} - color: cyan - - - animation: dong.yaml - position: {x: 20, y: 13} - velocity: {x: 0, y: -30.0} - boundaries: - position1: {x: 20, y: 4} - position2: {x: 20, y: 13} - color: cyan - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 48 - position: {x: 1, y: 2} - counter: 1 - - - tileSetFile: items.gif - tile: 48 - position: {x: 26, y: 13} - counter: 2 diff --git a/data/room/26.yaml b/data/room/26.yaml deleted file mode 100644 index 582bc5d..0000000 --- a/data/room/26.yaml +++ /dev/null @@ -1,131 +0,0 @@ -room: - bgColor: blue - border: yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 25.yaml - right: 27.yaml - - # Colores de los objetos - itemColor1: magenta - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67] - - [90, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 226, 225, 91] - - [92, -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, 92] - - [116, -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, 116] - - [116, -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, 116] - - [140, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, 427, -1, -1, -1, -1, 116] - - [31, -1, -1, -1, -1, -1, -1, 402, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 404, -1, -1, -1, -1, -1, -1, 116] - - [-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, 116] - - [-1, -1, -1, -1, -1, 427, 549, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 140] - - [92, -1, -1, -1, -1, -1, -1, 402, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 404, -1, -1, -1, -1, -1, -1, 31] - - [116, 549, -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] - - [140, -1, 549, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, 427, -1, -1, -1, -1, -1] - - [31, 31, 31, 31, -1, -1, -1, 402, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 404, -1, -1, -1, 31, 31, 31, 31] - - [92, -1, -1, 92, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 92, -1, -1, 92] - - [140, -1, -1, 140, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 525, 427, 549, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 140, -1, -1, 140] - - [88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89, 88, 89] - -# Enemigos en esta habitación -enemies: - - animation: batman_bell.yaml - position: {x: 1, y: 13} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 1, y: 13} - position2: {x: 1, y: 13} - color: cyan - - - animation: abad_bell.yaml - position: {x: 29, y: 13} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 29, y: 13} - position2: {x: 29, y: 13} - color: cyan - - - animation: bell.yaml - position: {x: 1, y: 4} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 1, y: 4} - position2: {x: 29, y: 4} - color: yellow - - - animation: dong.yaml - position: {x: 1, y: 2} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 1, y: 2} - position2: {x: 1, y: 2} - color: yellow - - - animation: bell.yaml - position: {x: 26, y: 7} - velocity: {x: -36.0, y: 0} - boundaries: - position1: {x: 1, y: 7} - position2: {x: 29, y: 7} - color: yellow - - - animation: dong.yaml - position: {x: 28, y: 2} - velocity: {x: -0, y: 0} - boundaries: - position1: {x: 28, y: 2} - position2: {x: 28, y: 2} - color: yellow - - - animation: bell.yaml - position: {x: 1, y: 10} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 1, y: 10} - position2: {x: 29, y: 10} - color: yellow - - - animation: bell.yaml - position: {x: 26, y: 13} - velocity: {x: -36.0, y: 0} - boundaries: - position1: {x: 4, y: 13} - position2: {x: 26, y: 13} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 60 - position: {x: 26, y: 3} - counter: 1 - - - tileSetFile: items.gif - tile: 60 - position: {x: 5, y: 6} - counter: 2 - - - tileSetFile: items.gif - tile: 60 - position: {x: 26, y: 9} - counter: 3 - - - tileSetFile: items.gif - tile: 60 - position: {x: 4, y: 13} - counter: 4 - - - tileSetFile: items.gif - tile: 60 - position: {x: 27, y: 13} - counter: 5 diff --git a/data/room/27.yaml b/data/room/27.yaml deleted file mode 100644 index 2509fd4..0000000 --- a/data/room/27.yaml +++ /dev/null @@ -1,58 +0,0 @@ -room: - bgColor: blue - border: cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 28.yaml - down: 29.yaml - left: 26.yaml - right: null - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [66, 67, 66, 67, 66, 67, -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, 16] - - [90, 91, 90, 91, 90, -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, 16] - - [92, -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, 16] - - [116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, 256, -1, -1, -1, -1, -1, 16] - - [116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 256, -1, -1, -1, -1, -1, -1, -1, 16] - - [116, -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, 16] - - [116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 304, 304, -1, 304, -1, -1, -1, -1, -1, 16] - - [116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, 304, 304, 304, 304, -1, 304, 304, -1, -1, -1, 16] - - [140, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, 304, -1, 304, 304, 304, 304, -1, -1, -1, -1, -1, 16] - - [31, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, 304, 304, 304, 304, 304, 304, -1, 304, -1, -1, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 304, 304, 304, 304, 304, 304, 304, 304, -1, -1, -1, 16] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 304, 304, 40, 40, 304, 304, 304, -1, -1, -1, 16] - - [31, 425, 426, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, 304, -1, 40, 40, 304, -1, -1, 304, -1, -1, 16] - - [92, -1, 425, 426, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 40, 40, -1, -1, 304, -1, -1, -1, 16] - - [140, 425, 426, 425, 426, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 40, -1, -1, -1, -1, -1, -1, 16] - - [88, 89, 88, 89, 88, 89, 88, 89, 88, 93, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, -1, 522, 16, 16, 16] - -# No enemies in this room -enemies: [] - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 28 - position: {x: 1, y: 13} - counter: 1 - - - tileSetFile: items.gif - tile: 32 - position: {x: 11, y: 14} - counter: 2 - - - tileSetFile: items.gif - tile: 32 - position: {x: 14, y: 14} - counter: 3 diff --git a/data/room/28.yaml b/data/room/28.yaml deleted file mode 100644 index 828b980..0000000 --- a/data/room/28.yaml +++ /dev/null @@ -1,55 +0,0 @@ -room: - bgColor: bright_black - border: black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 32.yaml - down: 27.yaml - left: null - right: 31.yaml - - # Colores de los objetos - itemColor1: bright_magenta - itemColor2: bright_green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [89, 88, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 88, 93, 40, 234, 234, -1, -1, 234, 234, 40, 88, 89, 88] - - [88, 93, 214, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 213, 214, -1, -1, -1, -1, -1, -1, -1, -1, 213, 88, 89] - - [213, 214, -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, 213, 88] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, 234, -1, -1, -1, -1, -1, 213] - - [-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, 234, -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, 234, -1, -1, -1, -1, 234, -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, -1, -1, -1, -1] - - [88, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [93, 214, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, -1, -1, -1, -1, -1] - - [88, 93, -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] - - [93, 214, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 414, 414, 414, 414, 414, 414] - - [88, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [89, 88, 93, -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] - - [88, 89, 88, 93, -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] - - [66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 66, 67, 88, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 90, 91, 66, 67, 88, 93, 428, 428, 428, 428, 428, 428, 428, 428, -1, 428, 428, 428, 428, 428, 428, 428] - -# Enemigos en esta habitación -enemies: - - animation: lord_abad.yaml - position: {x: 0, y: 5} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 0, y: 5} - position2: {x: 0, y: 5} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 58 - position: {x: 2, y: 11} - counter: 1 diff --git a/data/room/29.yaml b/data/room/29.yaml deleted file mode 100644 index e47160d..0000000 --- a/data/room/29.yaml +++ /dev/null @@ -1,84 +0,0 @@ -room: - bgColor: blue - border: bright_black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 27.yaml - down: null - left: 30.yaml - right: null - - # Colores de los objetos - itemColor1: green - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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, 504, 132] - - [-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, 504, -1, 132] - - [132, 132, -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, 504, -1, -1, 132] - - [132, 132, -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, 132] - - [132, 132, -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, 132] - - [132, 132, -1, -1, 233, 233, 233, -1, -1, 233, 233, 233, -1, -1, 233, 233, 233, -1, -1, 233, 233, 233, -1, -1, 233, 233, -1, -1, 233, -1, -1, 132] - - [132, 132, -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, 132] - - [132, 132, 233, 233, -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, 233, 230, 132] - - [132, 132, 233, 233, -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, 132] - - [132, 132, -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, 132] - - [132, 132, -1, -1, 233, 233, 233, -1, -1, 229, 233, 233, -1, -1, 233, 233, 233, -1, -1, 233, 233, 233, -1, -1, 233, 233, -1, -1, -1, -1, -1, 132] - - [132, 132, -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, 233, 233, 132] - - [132, 132, -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, 132] - - [-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, 233, 233, -1, -1, -1, -1, 132] - - [-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, 132] - - [132, 132, 132, 132, 132, 132, 132, 128, 128, 132, 132, 132, 129, 129, 132, 132, 132, 129, 129, 132, 132, 132, 128, 128, 132, 132, 132, 132, 132, 132, 132, 132] - -# Enemigos en esta habitación -enemies: - - animation: qvoid.yaml - position: {x: 7, y: 1} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 7, y: 1} - position2: {x: 7, y: 13} - color: magenta - - - animation: qvoid.yaml - position: {x: 12, y: 6} - velocity: {x: 0, y: 36.0} - boundaries: - position1: {x: 12, y: 1} - position2: {x: 12, y: 13} - color: green - - - animation: qvoid.yaml - position: {x: 17, y: 8} - velocity: {x: 0, y: 54.0} - boundaries: - position1: {x: 17, y: 1} - position2: {x: 17, y: 13} - color: green - - - animation: qvoid.yaml - position: {x: 22, y: 10} - velocity: {x: 0, y: 42.0} - boundaries: - position1: {x: 22, y: 1} - position2: {x: 22, y: 13} - color: magenta - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 20 - position: {x: 9, y: 9} - counter: 1 - - - tileSetFile: items.gif - tile: 20 - position: {x: 30, y: 6} - counter: 2 diff --git a/data/room/30.yaml b/data/room/30.yaml deleted file mode 100644 index 9ffdfb3..0000000 --- a/data/room/30.yaml +++ /dev/null @@ -1,74 +0,0 @@ -room: - bgColor: blue - border: bright_black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: null - right: 29.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [126, 127, 128, 129, 130, 131, 132, 126, 127, 128, 129, 130, 131, 132, 126, 127, 128, 129, 130, 131, 132, 126, 127, 128, 129, 130, 131, 132, 126, 127, 128, 129] - - [131, -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, 131, 127] - - [130, -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, 128] - - [129, 227, 228, -1, -1, 229, 230, -1, -1, 231, 232, -1, -1, 233, 227, -1, -1, 228, 229, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 129] - - [128, -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, 130] - - [127, -1, -1, 230, 231, -1, -1, 232, 233, -1, -1, 227, 228, -1, -1, 229, 230, -1, -1, -1, 231, 232, -1, -1, -1, -1, -1, -1, -1, -1, -1, 131] - - [126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 233, 227, 230, 547, -1, -1, 132] - - [126, -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, 228, 230, 126] - - [127, -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, 127] - - [127, -1, -1, -1, -1, -1, -1, -1, -1, 231, 232, 227, -1, -1, -1, 484, 484, -1, -1, -1, 229, 230, 231, -1, -1, -1, 484, 484, -1, -1, -1, 128] - - [128, -1, -1, -1, 228, 229, 230, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 129] - - [129, -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, 130] - - [130, 231, 232, 547, -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, 131] - - [131, -1, -1, -1, 547, -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] - - [131, -1, -1, -1, -1, 547, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, -1, -1, -1, -1, 554, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [132, 554, 554, 554, 554, 554, 126, 127, 128, 129, 130, 131, 484, 484, 484, 484, 484, 484, 484, 484, 484, 127, 128, 129, 130, 131, 132, 126, 127, 128, 129, 130] - -# Enemigos en esta habitación -enemies: - - animation: qvoid.yaml - position: {x: 1, y: 1} - velocity: {x: 42.0, y: 0} - boundaries: - position1: {x: 1, y: 1} - position2: {x: 29, y: 1} - color: white - flip: true - - - animation: qvoid.yaml - position: {x: 29, y: 1} - velocity: {x: -42.0, y: 0} - boundaries: - position1: {x: 1, y: 1} - position2: {x: 29, y: 1} - color: red - flip: true - - - animation: qvoid.yaml - position: {x: 6, y: 7} - velocity: {x: -30.0, y: 0} - boundaries: - position1: {x: 1, y: 7} - position2: {x: 27, y: 7} - color: green - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 20 - position: {x: 1, y: 2} - counter: 1 diff --git a/data/room/31.yaml b/data/room/31.yaml deleted file mode 100644 index ab5d9ef..0000000 --- a/data/room/31.yaml +++ /dev/null @@ -1,84 +0,0 @@ -room: - bgColor: black - border: bright_magenta - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 28.yaml - right: null - - # Colores de los objetos - itemColor1: bright_red - itemColor2: bright_cyan - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: left - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [192, 197, 192, 193, 195, 201, 199, 194, 196, 200, 199, 193, 193, 195, 198, 193, 195, 193, 193, 201, 199, 196, 195, 193, 192, 201, 193, 202, 192, 196, 203, 195] - - [192, 200, 194, 203, 194, 196, 199, 193, 202, 197, 197, 195, 196, 201, 199, 194, 193, 198, 200, 194, 195, 193, 198, 194, 197, 200, 193, 194, 198, 193, 201, 193] - - [193, 199, 195, 195, 200, 197, -1, -1, 196, 198, -1, -1, 193, 197, 193, 192, 202, 203, 194, 193, 194, 192, 193, -1, -1, -1, -1, -1, -1, -1, 193, 199] - - [194, 202, 193, 192, 199, 192, -1, -1, 197, 192, -1, -1, 194, 198, 196, 193, 201, 194, -1, -1, -1, 196, 201, -1, -1, -1, -1, -1, -1, -1, 203, 200] - - [197, 194, 198, 196, 202, 194, -1, -1, 203, 194, -1, -1, 195, 193, 200, 194, 194, 195, -1, -1, -1, 202, 195, -1, -1, -1, -1, -1, -1, -1, 203, 193] - - [193, 196, 194, 197, 192, 195, -1, -1, 194, 193, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 198, 202, -1, -1, -1, -1, -1, -1, -1, 196, 199] - - [199, 201, 192, 193, 194, 198, -1, -1, 195, 195, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 192, 193, -1, -1, -1, -1, -1, -1, -1, 192, 194] - - [192, 195, 197, 195, 193, 197, -1, -1, 192, 202, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 194, 195, -1, -1, -1, -1, -1, -1, 513, 196, 203] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 394, 394, -1, -1, -1, -1, -1, -1, -1, -1, -1, 203, 192, -1, -1, -1, -1, -1, 512, 192, 193, 195] - - [-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, 518, 196, 196, 201, 196] - - [198, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 517, 197, 199, 198, 200, 199] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 397, 397, 397, 397, 397, 397, 397, 397, 397, -1, 516, 195, 202, 200, 193, 196, 194] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 515, 199, 193, 192, 194, 196, 198, 197] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 514, 201, 195, 193, 198, 194, 203, 201, 196] - - [-1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, 559, -1, -1, -1, 555, -1, -1, -1, -1, 559, -1, 513, 195, 203, 197, 200, 195, 197, 193, 194, 197] - - [192, 193, 194, 198, 197, 195, 203, 199, 197, 202, 198, 197, 194, 201, 201, 199, 200, 197, 199, 198, 192, 196, 194, 196, 198, 194, 195, 196, 193, 199, 194, 192] - -# Enemigos en esta habitación -enemies: - - animation: guitar.yaml - position: {x: 13, y: 5} - velocity: {x: 0, y: 36.0} - boundaries: - position1: {x: 13, y: 5} - position2: {x: 13, y: 13} - color: magenta - - - animation: sigmasua.yaml - position: {x: 24, y: 2} - velocity: {x: 0, y: 36.0} - boundaries: - position1: {x: 24, y: 2} - position2: {x: 24, y: 9} - color: red - - - animation: paco.yaml - position: {x: 6, y: 2} - velocity: {x: 0, y: 36.0} - boundaries: - position1: {x: 6, y: 2} - position2: {x: 6, y: 8} - color: yellow - - - animation: chip.yaml - position: {x: 15, y: 9} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 15, y: 9} - position2: {x: 23, y: 9} - color: green - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 61 - position: {x: 10, y: 3} - counter: 1 - - - tileSetFile: items.gif - tile: 61 - position: {x: 29, y: 3} - counter: 2 diff --git a/data/room/32.yaml b/data/room/32.yaml deleted file mode 100644 index b6b7b18..0000000 --- a/data/room/32.yaml +++ /dev/null @@ -1,60 +0,0 @@ -room: - bgColor: black - border: cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 34.yaml - down: 28.yaml - left: null - right: 33.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 234, 234, -1, -1, 234, 234, 40, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 141, -1, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, 142, -1, 234, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, 142, -1, 234, 234, 234, 234, -1, 40, 234, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, 234, -1, 142, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1] - - [-1, -1, -1, -1, -1, 141, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 234, 40, -1, 141, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, 234, 234, -1, 40, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, 142, 234, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, 40, 234, -1, -1, -1, -1, -1, 142, -1, 234, -1] - - [-1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, 234, 234, 40, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, 142, -1, -1, -1, -1, -1, -1, 142, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, -1, 142, -1, -1, -1, 234, 234, -1, 40, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, 355, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 142, 234, -1, -1, -1, -1, -1, 355, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 380, -1, 40, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 234, 234, 234, 40, 234, 234, -1, -1, 234, 234, 40, 234, 187, 187] - -# Enemigos en esta habitación -enemies: - - animation: tree_thing.yaml - position: {x: 23, y: 4} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 23, y: 4} - position2: {x: 23, y: 13} - color: yellow - - - animation: shooting_star.yaml - position: {x: 10, y: 2} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 10, y: 2} - position2: {x: 10, y: 2} - color: white - frame: 0 - -# No items in this room -items: [] \ No newline at end of file diff --git a/data/room/33.yaml b/data/room/33.yaml deleted file mode 100644 index 87c2764..0000000 --- a/data/room/33.yaml +++ /dev/null @@ -1,86 +0,0 @@ -room: - bgColor: black - border: bright_black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 32.yaml - right: null - - # Colores de los objetos - itemColor1: bright_red - itemColor2: bright_yellow - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 141, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 141, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -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, 70, -1, -1, -1, 94, 95, -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, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 141] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 141, -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, -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, -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, -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, 70, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, 141, -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, -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, -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, -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, -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] - - [155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 164, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562] - -# Enemigos en esta habitación -enemies: - - animation: pepe_rosita_job.yaml - position: {x: 2, y: 2} - velocity: {x: 0, y: 3.0} - boundaries: - position1: {x: 2, y: 2} - position2: {x: 2, y: 3} - color: white - - - animation: aerojailer.yaml - position: {x: 14, y: 5} - velocity: {x: 0, y: -2.4} - boundaries: - position1: {x: 14, y: 4} - position2: {x: 14, y: 6} - color: white - - - animation: arounder.yaml - position: {x: 22, y: 5} - velocity: {x: 0, y: 1.8} - boundaries: - position1: {x: 22, y: 5} - position2: {x: 22, y: 6} - color: white - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 62 - position: {x: 13, y: 14} - counter: 1 - - - tileSetFile: items.gif - tile: 63 - position: {x: 14, y: 14} - counter: 2 - - - tileSetFile: items.gif - tile: 64 - position: {x: 15, y: 14} - counter: 3 - - - tileSetFile: items.gif - tile: 65 - position: {x: 16, y: 14} - counter: 4 diff --git a/data/room/34.yaml b/data/room/34.yaml deleted file mode 100644 index 87f64a4..0000000 --- a/data/room/34.yaml +++ /dev/null @@ -1,88 +0,0 @@ -room: - bgColor: black - border: cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 32.yaml - left: 35.yaml - right: null - - # Colores de los objetos - itemColor1: green - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114] - - [115, -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, 139, 115] - - [139, -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, 115, 139] - - [115, -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, 139, 115] - - [139, -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, 115, 139] - - [115, -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, 139, 115] - - [139, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 113, 114, 113, 114, 113, 114, 113, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 376, 115, 139] - - [115, -1, -1, -1, -1, -1, -1, -1, 376, -1, -1, 113, 114, 113, 114, 113, 114, 113, 114, -1, -1, -1, -1, 376, 376, -1, -1, -1, -1, -1, 139, 115] - - [139, -1, -1, -1, -1, -1, -1, -1, -1, 376, -1, -1, -1, 113, 114, 113, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 115, 139] - - [115, -1, -1, -1, 376, 376, 376, -1, -1, -1, -1, -1, -1, 114, 113, 114, 113, -1, -1, -1, -1, -1, 376, 376, 376, 376, -1, -1, -1, -1, 139, 115] - - [139, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 376, -1, 113, 114, 113, 114, -1, -1, 376, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 115, 139] - - [115, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 114, 113, 114, 113, -1, -1, -1, -1, -1, -1, -1, -1, -1, 430, 431, 113, 114, 139, 115] - - [139, -1, -1, -1, -1, -1, -1, 376, 376, -1, -1, -1, -1, 113, 114, 113, 114, -1, -1, -1, -1, -1, -1, 430, 431, 430, 431, 430, 431, -1, 115, 139] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 376, 114, 113, 114, 113, -1, -1, 376, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, 115] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 113, 114, 113, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 115, 139] - - [113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, -1, -1, 113, 114, 113, 114, 113, 114] - -# Enemigos en esta habitación -enemies: - - animation: floppy.yaml - position: {x: 20, y: 1} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 20, y: 1} - position2: {x: 20, y: 13} - color: cyan - - - animation: spark.yaml - position: {x: 11, y: 4} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 11, y: 4} - position2: {x: 18, y: 4} - color: cyan - - - animation: spark.yaml - position: {x: 1, y: 1} - velocity: {x: 60.0, y: 0} - boundaries: - position1: {x: 1, y: 1} - position2: {x: 29, y: 1} - color: yellow - mirror: true - - - animation: wave.yaml - position: {x: 1, y: 6} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 1, y: 6} - position2: {x: 10, y: 6} - color: yellow - - - animation: wave.yaml - position: {x: 17, y: 8} - velocity: {x: 54.0, y: 0} - boundaries: - position1: {x: 17, y: 8} - position2: {x: 29, y: 8} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 66 - position: {x: 29, y: 3} - counter: 1 diff --git a/data/room/35.yaml b/data/room/35.yaml deleted file mode 100644 index 4804a79..0000000 --- a/data/room/35.yaml +++ /dev/null @@ -1,101 +0,0 @@ -room: - bgColor: black - border: bright_green - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 36.yaml - right: 34.yaml - - # Colores de los objetos - itemColor1: green - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: left - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [117, 118, 113, 114, 117, 118, 113, 114, 113, 114, 113, 114, 117, 118, 113, 114, 113, 114, 113, 114, 117, 118, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114] - - [114, 117, 118, 113, 114, 113, 114, 117, 118, 113, 114, 113, 114, 113, 114, 113, 114, 117, 118, 113, 114, 113, 114, 113, 114, 113, 114, 117, 118, 113, 114, 113] - - [115, 139, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 561, -1, -1, -1, -1, -1, -1, -1, 115, 139] - - [139, 115, -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, 139, 119] - - [119, 139, -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, 115, 143] - - [143, 115, 406, 407, -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, 139, 115] - - [115, 139, -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, 115, 139] - - [139, 115, -1, -1, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 139, 115] - - [115, 139, -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, 139] - - [139, 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, 430, 143, 115] - - [115, 143, 430, 431, -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, 115, 139] - - [-1, -1, -1, -1, -1, -1, 430, 431, 430, 431, 430, 431, 430, 431, 430, 431, 430, 431, 430, 431, 430, 431, 430, 431, 430, 431, 430, 431, 430, 431, 139, 115] - - [-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, 115, 139] - - [113, 114, 113, 540, -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] - - [114, 113, 114, 113, 540, -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] - - [117, 118, 113, 114, 117, 118, 113, 114, 117, 118, 113, 114, 117, 118, 113, 114, 117, 118, 113, 114, 117, 118, 113, 114, 117, 118, 113, 114, 117, 118, 113, 114] - -# Enemigos en esta habitación -enemies: - - animation: jeannine.yaml - position: {x: 6, y: 13} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 6, y: 13} - position2: {x: 14, y: 13} - color: yellow - flip: true - - - animation: jeannine.yaml - position: {x: 16, y: 13} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 16, y: 13} - position2: {x: 28, y: 13} - color: cyan - flip: true - - - animation: jeannine.yaml - position: {x: 7, y: 9} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 7, y: 9} - position2: {x: 15, y: 9} - color: red - flip: true - - - animation: jeannine.yaml - position: {x: 16, y: 9} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 16, y: 9} - position2: {x: 27, y: 9} - color: white - flip: true - - - animation: jeannine.yaml - position: {x: 5, y: 5} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 5, y: 5} - position2: {x: 12, y: 5} - color: green - flip: true - - - animation: chip.yaml - position: {x: 16, y: 5} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 16, y: 5} - position2: {x: 26, y: 5} - color: yellow - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 57 - position: {x: 2, y: 4} - counter: 1 diff --git a/data/room/36.yaml b/data/room/36.yaml deleted file mode 100644 index 3b427d3..0000000 --- a/data/room/36.yaml +++ /dev/null @@ -1,134 +0,0 @@ -room: - bgColor: black - border: bright_cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 37.yaml - right: 35.yaml - - # Colores de los objetos - itemColor1: green - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -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] - -# Enemigos en esta habitación -enemies: - - animation: spark.yaml - position: {x: 6, y: 13} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 2, y: 13} - position2: {x: 14, y: 13} - color: yellow - - - animation: spark.yaml - position: {x: 21, y: 13} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 17, y: 13} - position2: {x: 29, y: 13} - color: yellow - - - animation: spark.yaml - position: {x: 2, y: 10} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 2, y: 10} - position2: {x: 14, y: 10} - color: yellow - mirror: true - - - animation: spark.yaml - position: {x: 17, y: 10} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 17, y: 10} - position2: {x: 29, y: 10} - color: yellow - mirror: true - - - animation: shock.yaml - position: {x: 13, y: 2} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 13, y: 2} - position2: {x: 13, y: 7} - color: bright_yellow - - - animation: shock.yaml - position: {x: 10, y: 4} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 10, y: 2} - position2: {x: 10, y: 7} - color: bright_yellow - - - animation: shock.yaml - position: {x: 7, y: 6} - velocity: {x: 0, y: 36.0} - boundaries: - position1: {x: 7, y: 2} - position2: {x: 7, y: 7} - color: bright_yellow - - - animation: shock.yaml - position: {x: 24, y: 2} - velocity: {x: 0, y: 24.0} - boundaries: - position1: {x: 24, y: 2} - position2: {x: 24, y: 7} - color: bright_yellow - - - animation: shock.yaml - position: {x: 21, y: 4} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 21, y: 2} - position2: {x: 21, y: 7} - color: bright_yellow - - - animation: shock.yaml - position: {x: 18, y: 6} - velocity: {x: 0, y: 36.0} - boundaries: - position1: {x: 18, y: 2} - position2: {x: 18, y: 7} - color: bright_yellow - -# Objetos en esta habitación -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 diff --git a/data/room/37.yaml b/data/room/37.yaml deleted file mode 100644 index 3794ab8..0000000 --- a/data/room/37.yaml +++ /dev/null @@ -1,92 +0,0 @@ -room: - bgColor: black - border: bright_green - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 38.yaml - right: 36.yaml - - # Colores de los objetos - itemColor1: green - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114] - - [-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] - - [-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] - - [-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] - - [-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] - - [-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] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 376, 376, 376, -1, -1, -1, -1, 376, 376, 376, -1, -1, -1, -1] - - [-1, -1, 113, 114, -1, -1, -1, -1, -1, -1, -1, 376, 376, 376, -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, -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, 376, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, 430, 431, 430, 431, 430, 431, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 113, 114, 113, 114, 113, 114, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 376, 376, 376, 115, -1, -1, -1, -1, 115, 376, 376, 376, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, -1, -1, -1, -1, 139, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 376, 376, 376, -1, 115, -1, -1, -1, -1, 115, -1, 376, 376, 376, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, 554, 554, 554, 554, 139, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114] - -# Enemigos en esta habitación -enemies: - - animation: z80.yaml - position: {x: 15, y: 1} - velocity: {x: 0, y: 18.0} - boundaries: - position1: {x: 15, y: 1} - position2: {x: 15, y: 10} - color: bright_green - - - animation: chip.yaml - position: {x: 1, y: 8} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 1, y: 8} - position2: {x: 6, y: 8} - color: bright_green - - - animation: chip.yaml - position: {x: 28, y: 8} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 25, y: 8} - position2: {x: 30, y: 8} - color: bright_green - - - animation: shock.yaml - position: {x: 8, y: 1} - velocity: {x: 0, y: 60.0} - boundaries: - position1: {x: 8, y: 1} - position2: {x: 8, y: 14} - color: bright_green - - - animation: shock.yaml - position: {x: 23, y: 7} - velocity: {x: 0, y: 60.0} - boundaries: - position1: {x: 23, y: 1} - position2: {x: 23, y: 14} - color: bright_green - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 57 - position: {x: 3, y: 6} - counter: 1 - - - tileSetFile: items.gif - tile: 57 - position: {x: 26, y: 5} - counter: 2 diff --git a/data/room/38.yaml b/data/room/38.yaml deleted file mode 100644 index d2900d5..0000000 --- a/data/room/38.yaml +++ /dev/null @@ -1,109 +0,0 @@ -room: - bgColor: bright_black - border: yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 39.yaml - right: 37.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [20, 20, 20, 20, 20, 20, 20, 22, 23, -1, -1, 20, 20, 20, 20, 20, 20, 22, 23, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20] - - [20, 20, -1, -1, -1, 20, 20, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, 46, 47, 20, 20, 20, -1, -1, -1, 20, 20, 20, 20, 20, -1, -1] - - [20, -1, -1, -1, -1, -1, 20, 20, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 224, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 358, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, 20, 20, -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] - - [20, 20, 20, -1, -1, -1, -1, -1, -1, 397, 397, 397, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [20, 20, -1, -1, 262, 397, 397, 334, -1, -1, -1, -1, 396, -1, -1, -1, 396, -1, -1, -1, -1, -1, -1, -1, -1, 505, 20, 20, 20, 20, -1, -1] - - [20, -1, -1, -1, 286, -1, -1, 358, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 505, -1, -1, -1, 262, -1, -1, -1] - - [20, -1, -1, -1, 310, -1, -1, 382, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 396, 398, 398, 399, 396, -1, -1, -1, -1, 286, -1, -1, -1] - - [-1, -1, -1, 398, 396, 397, 398, 399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 334, -1, -1, -1, -1, -1, -1, -1, -1, 286, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 382, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, 263, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 263, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, 555, -1, -1, 311, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 311, -1, 555, -1, -1, -1, -1, -1, 310, -1, -1, -1] - - [217, 217, 217, 218, 20, 20, 20, 20, 20, 20, 556, 556, 556, 556, 556, 556, 556, 556, 20, 20, 20, 20, 20, 20, 20, 219, 220, 220, 220, 220, 220, 221] - -# Enemigos en esta habitación -enemies: - - animation: stopped_arounder.yaml - position: {x: 9, y: 11} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 9, y: 11} - position2: {x: 9, y: 11} - color: white - - - animation: stopped_arounder.yaml - position: {x: 18, y: 11} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 18, y: 11} - position2: {x: 18, y: 11} - color: white - - - animation: walking_arounder.yaml - position: {x: 12, y: 1} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 11, y: 1} - position2: {x: 16, y: 1} - color: white - flip: true - - - animation: arounders_door.yaml - position: {x: 9, y: 0} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 9, y: 0} - position2: {x: 9, y: 0} - color: yellow - flip: true - - - animation: flying_arounder.yaml - position: {x: 3, y: 1} - velocity: {x: 0, y: 42.0} - boundaries: - position1: {x: 3, y: 1} - position2: {x: 3, y: 9} - color: white - flip: true - - - animation: mummy.yaml - position: {x: 12, y: 10} - velocity: {x: 12.0, y: 0} - boundaries: - position1: {x: 10, y: 10} - position2: {x: 17, y: 10} - color: bright_yellow - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 37 - position: {x: 16, y: 6} - counter: 1 - - - tileSetFile: items.gif - tile: 37 - position: {x: 1, y: 4} - counter: 2 - - - tileSetFile: items.gif - tile: 37 - position: {x: 29, y: 6} - counter: 3 diff --git a/data/room/39.yaml b/data/room/39.yaml deleted file mode 100644 index 09451ba..0000000 --- a/data/room/39.yaml +++ /dev/null @@ -1,106 +0,0 @@ -room: - bgColor: black - border: cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 40.yaml - right: 38.yaml - - # Colores de los objetos - itemColor1: magenta - itemColor2: cyan - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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] - - [-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] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 219, 220, 220, 221, -1, -1, -1, -1] - - [-1, -1, 219, 220, 220, 221, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 263, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, 262, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 287, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, 310, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 219, 220, 220, 220, 221, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, 219, 220, 220, 220, 221, -1, -1, -1, -1, -1, -1, -1, -1, -1, 263, -1, 263, -1, -1, -1, -1, 287, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, 262, -1, -1, -1, 219, 220, 220, 221, -1, -1, -1, 287, -1, 287, -1, -1, -1, -1, 311, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 263, -1, -1, -1, -1, 287, -1, -1, -1, -1, 219, 220, 220, 221, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 287, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, 310, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 286, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, 219, 220, 220, 220, 221, -1, -1, -1, -1, -1, 219, 220, 220, 220, 220, 221, -1, -1, -1, 286, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 263, -1, -1, 263, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [223, 224, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 287, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, 311, -1, -1, -1, -1, -1, -1, -1, -1, 311, -1, -1, -1, 311, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [556, 556, 216, 217, 217, 217, 217, 218, 556, 556, 556, 556, 216, 217, 217, 217, 217, 217, 218, 556, 556, 556, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217] - -# Enemigos en esta habitación -enemies: - - animation: arounders_door.yaml - position: {x: 3, y: 1} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 3, y: 1} - position2: {x: 3, y: 1} - color: white - - - animation: flying_arounder.yaml - position: {x: 9, y: 1} - velocity: {x: 0, y: 42.0} - boundaries: - position1: {x: 9, y: 1} - position2: {x: 9, y: 10} - color: white - flip: true - - - animation: flying_arounder.yaml - position: {x: 15, y: 0} - velocity: {x: 0, y: 42.0} - boundaries: - position1: {x: 15, y: 0} - position2: {x: 15, y: 14} - color: white - flip: true - - - animation: flying_arounder.yaml - position: {x: 22, y: 10} - velocity: {x: 0, y: 42.0} - boundaries: - position1: {x: 22, y: 0} - position2: {x: 22, y: 14} - color: white - flip: true - - - animation: flying_arounder.yaml - position: {x: 16, y: 5} - velocity: {x: 0, y: 42.0} - boundaries: - position1: {x: 16, y: 0} - position2: {x: 16, y: 10} - color: white - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 47 - position: {x: 4, y: 5} - counter: 1 - - - tileSetFile: items.gif - tile: 47 - position: {x: 26, y: 1} - counter: 2 - - - tileSetFile: items.gif - tile: 47 - position: {x: 25, y: 7} - counter: 3 - - - tileSetFile: items.gif - tile: 47 - position: {x: 25, y: 14} - counter: 4 diff --git a/data/room/40.yaml b/data/room/40.yaml deleted file mode 100644 index d094cde..0000000 --- a/data/room/40.yaml +++ /dev/null @@ -1,96 +0,0 @@ -room: - bgColor: black - border: bright_magenta - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 41.yaml - right: 39.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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] - - [-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] - - [-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] - - [-1, -1, -1, -1, -1, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 224, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, 358, -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, 358, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 222, 223, 223, 223, 224, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 334, -1, -1, -1, -1, 334, -1, 334, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 334, -1, -1, -1, -1, -1, -1, -1, -1, 358, -1, 358, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 334, -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, 382, -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, 222, 223, 224, -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, 358, -1, -1, -1, 382, -1, -1, -1, 382, -1, -1, -1, 382, -1, -1, -1, -1, 382, -1, 382, -1, -1, -1, -1, -1, -1] - - [-1, -1, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223] - - [-1, -1, -1, -1, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 334, -1, -1, -1, -1, -1] - - [556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556] - -# Enemigos en esta habitación -enemies: - - animation: arounders_machine.yaml - position: {x: 7, y: 1} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 7, y: 1} - position2: {x: 7, y: 1} - color: red - - - animation: walking_arounder.yaml - position: {x: 10, y: 12} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 7, y: 12} - position2: {x: 26, y: 12} - color: white - flip: true - - - animation: walking_arounder.yaml - position: {x: 15, y: 12} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 7, y: 12} - position2: {x: 26, y: 12} - color: green - flip: true - - - animation: walking_arounder.yaml - position: {x: 20, y: 12} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 7, y: 12} - position2: {x: 26, y: 12} - color: yellow - flip: true - - - animation: walking_arounder.yaml - position: {x: 14, y: 2} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 11, y: 2} - position2: {x: 18, y: 2} - color: cyan - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 5 - position: {x: 10, y: 2} - counter: 1 - - - tileSetFile: items.gif - tile: 5 - position: {x: 25, y: 5} - counter: 2 diff --git a/data/room/41.yaml b/data/room/41.yaml deleted file mode 100644 index 147cad6..0000000 --- a/data/room/41.yaml +++ /dev/null @@ -1,106 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 42.yaml - right: 40.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [187, -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] - - [187, -1, -1, -1, -1, 263, -1, -1, -1, -1, -1, -1, -1, 263, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [187, -1, -1, -1, -1, 287, -1, -1, -1, -1, -1, -1, -1, 287, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [187, -1, -1, -1, -1, 311, -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] - - [187, -1, -1, -1, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [187, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 263, -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, 311, -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, 216, 217, 217, 217, 217, 217, 217, 217, 218, -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, 263, -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, 311, -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, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 263, -1, -1, -1, -1, -1, 263, -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, 311, -1, -1, -1, -1, -1, 311, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, 263, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 263, -1, -1, -1, -1, -1] - - [43, 43, 43, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556] - -# Enemigos en esta habitación -enemies: - - animation: arounders_door.yaml - position: {x: 6, y: 2} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 6, y: 2} - position2: {x: 6, y: 2} - color: bright_cyan - - - animation: stopped_arounder.yaml - position: {x: 8, y: 12} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 8, y: 12} - position2: {x: 8, y: 12} - color: bright_cyan - - - animation: stopped_arounder.yaml - position: {x: 11, y: 3} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 11, y: 3} - position2: {x: 11, y: 3} - color: bright_cyan - - - animation: stopped_arounder.yaml - position: {x: 24, y: 12} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 24, y: 12} - position2: {x: 24, y: 12} - color: bright_cyan - - - animation: walking_arounder.yaml - position: {x: 12, y: 12} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 9, y: 12} - position2: {x: 23, y: 12} - color: bright_cyan - flip: true - - - animation: walking_arounder.yaml - position: {x: 14, y: 12} - velocity: {x: -24.0, y: 0} - boundaries: - position1: {x: 9, y: 12} - position2: {x: 23, y: 12} - color: bright_cyan - flip: true - - - animation: walking_arounder.yaml - position: {x: 14, y: 6} - velocity: {x: -24.0, y: 0} - boundaries: - position1: {x: 12, y: 6} - position2: {x: 20, y: 6} - color: bright_cyan - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 46 - position: {x: 9, y: 2} - counter: 1 diff --git a/data/room/42.yaml b/data/room/42.yaml deleted file mode 100644 index a89cffe..0000000 --- a/data/room/42.yaml +++ /dev/null @@ -1,69 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 43.yaml - left: 53.yaml - right: 41.yaml - - # Colores de los objetos - itemColor1: magenta - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [35, 35, 35, -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, 61] - - [35, 35, -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, 61] - - [35, -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, 61] - - [35, -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, 61] - - [35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 414, 414, 414, 420, -1, -1, -1, -1, -1, 61] - - [35, -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, 414, 420, 61] - - [35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 420, -1, -1, -1, -1, -1, -1, -1, -1] - - [35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 414, 414, 420, 414, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [35, -1, -1, -1, -1, -1, -1, -1, 305, -1, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [35, -1, -1, -1, 305, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 420, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [35, -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] - - [35, -1, 414, 420, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 414, 414, -1, -1, 420, 414, -1, -1, -1, -1, -1, -1] - - [35, -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, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 506, 414, 420, 530, -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, 506, -1, -1, -1, -1, 530, -1, -1, -1, -1, -1, -1] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, 422, 384, -1, -1, 25, 43, 43, 43, 43, 43] - -# Enemigos en esta habitación -enemies: - - animation: paco.yaml - position: {x: 10, y: 2} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 10, y: 2} - position2: {x: 10, y: 11} - color: magenta - - - animation: abad.yaml - position: {x: 15, y: 13} - velocity: {x: 48.0, y: 0} - boundaries: - position1: {x: 4, y: 13} - position2: {x: 19, y: 13} - color: bright_cyan - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 41 - position: {x: 2, y: 9} - counter: 1 - - - tileSetFile: items.gif - tile: 41 - position: {x: 29, y: 3} - counter: 2 diff --git a/data/room/43.yaml b/data/room/43.yaml deleted file mode 100644 index ed39f25..0000000 --- a/data/room/43.yaml +++ /dev/null @@ -1,63 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 42.yaml - down: 44.yaml - left: null - right: null - - # Colores de los objetos - itemColor1: yellow - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, 423, 384, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, 384, 384, 422, 422, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, 424, 384, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, 384, 423, 384, 384, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, 384, 384, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, 384, 384, 423, 384, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, 422, 384, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, 384, 422, 384, 384, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, -1, -1, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, 384, 384, 25, 43, 43, 43, 43, 43] - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, 422, 384, 422, 384, -1, -1, 25, 43, 43, 43, 43, 43] - -# Enemigos en esta habitación -enemies: - - animation: spider.yaml - position: {x: 20, y: 5} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 20, y: 5} - position2: {x: 23, y: 5} - color: cyan - - - animation: spider.yaml - position: {x: 22, y: 11} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 20, y: 11} - position2: {x: 23, y: 11} - color: green - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 8 - position: {x: 21, y: 10} - counter: 1 diff --git a/data/room/44.yaml b/data/room/44.yaml deleted file mode 100644 index 2d5a026..0000000 --- a/data/room/44.yaml +++ /dev/null @@ -1,64 +0,0 @@ -room: - bgColor: black - border: cyan - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 43.yaml - down: 16.yaml - left: null - right: null - - # Colores de los objetos - itemColor1: white - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: right - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, -1, -1, -1, -1, -1, -1, 25, 43, 43, 43, 43, 43] - - [36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 36, 36, 342, 342, 342, 342, 342, 342, -1, -1, 36, 36, 36, 36] - - [36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 36, 36, -1, -1, 342, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [36, 36, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, -1, -1, 344, 36, 36, -1, -1, -1, -1, -1, -1, 342, -1, 36, 36, 36, 36] - - [36, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 36, 36, -1, -1, -1, -1, -1, -1, -1, 342, 36, 36, 36, 36] - - [36, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 342, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [36, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, 344, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [36, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, -1, -1, -1, -1, 342, -1, 36, 36, 36, 36] - - [36, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, 342, -1, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [36, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, 344, -1, -1, -1, -1, -1, -1, -1, -1, 342, -1, 36, 36, 36, 36] - - [36, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [36, 36, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 342, -1, -1, -1, -1, -1, 36, 36, 36, 36] - - [37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 416, -1, -1, 416, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37] - -# Enemigos en esta habitación -enemies: - - animation: congo.yaml - position: {x: 2, y: 4} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 2, y: 4} - position2: {x: 14, y: 4} - color: green - flip: true - - - animation: crosshair.yaml - position: {x: 23, y: 4} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 23, y: 4} - position2: {x: 23, y: 13} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 8 - position: {x: 2, y: 2} - counter: 1 diff --git a/data/room/45.yaml b/data/room/45.yaml deleted file mode 100644 index 717cff0..0000000 --- a/data/room/45.yaml +++ /dev/null @@ -1,76 +0,0 @@ -room: - bgColor: bright_black - border: bright_yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 14.yaml - right: 46.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [29, 29, 29, -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] - - [29, 29, -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] - - [29, -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] - - [29, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 322, 322, -1, -1, -1, -1, 322, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [29, -1, -1, -1, -1, -1, -1, -1, 322, 322, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [29, -1, -1, -1, -1, 322, 322, -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] - - [29, -1, 322, -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] - - [29, -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, -1, 322, 322, -1, 322, 322, 322, 322, 322, -1, 322, 322, 322, 322, 322, -1, 322, 322, 322, 322, -1, 394, -1, -1, -1, 394, 394, 394, 394, 394, 394] - - [-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] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 394, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [29, 29, 29, -1, -1, -1, 394, 394, 394, -1, -1, -1, 394, 394, -1, -1, -1, -1, 394, 394, 394, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [29, 29, -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] - - [29, -1, -1, -1, -1, -1, -1, -1, -1, 394, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [29, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 394, 394, 394, -1, -1, -1, 394, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [29, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569] - -# Enemigos en esta habitación -enemies: - - animation: chip.yaml - position: {x: 4, y: 5} - velocity: {x: 0, y: 60.0} - boundaries: - position1: {x: 4, y: 2} - position2: {x: 4, y: 13} - color: green - - - animation: chip.yaml - position: {x: 10, y: 4} - velocity: {x: 0, y: 60.0} - boundaries: - position1: {x: 10, y: 2} - position2: {x: 10, y: 13} - color: bright_blue - - - animation: chip.yaml - position: {x: 16, y: 3} - velocity: {x: 0, y: 60.0} - boundaries: - position1: {x: 16, y: 2} - position2: {x: 16, y: 13} - color: magenta - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 54 - position: {x: 17, y: 1} - counter: 0 - - - tileSetFile: items.gif - tile: 54 - position: {x: 18, y: 12} - counter: 0 diff --git a/data/room/46.yaml b/data/room/46.yaml deleted file mode 100644 index 44672f6..0000000 --- a/data/room/46.yaml +++ /dev/null @@ -1,72 +0,0 @@ -room: - bgColor: bright_black - border: bright_yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 45.yaml - right: null - - # Colores de los objetos - itemColor1: red - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: left - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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] - - [-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] - - [-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] - - [-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] - - [-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, 29] - - [-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, 29, 29] - - [-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, 29, 29] - - [-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, 29, 29] - - [394, 394, 398, -1, -1, -1, -1, 472, 472, 472, -1, -1, -1, -1, 472, 472, 472, -1, -1, -1, -1, 472, 472, 472, 472, -1, -1, 394, 394, 398, 29, 29] - - [-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, 29, 29] - - [-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, 29, 29] - - [-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, 29] - - [-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, 134] - - [-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, 134] - - [-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, 134] - - [480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 134] - -# Enemigos en esta habitación -enemies: - - animation: batman_fire.yaml - position: {x: 10, y: 13} - velocity: {x: 78.0, y: 0} - boundaries: - position1: {x: 0, y: 13} - position2: {x: 29, y: 13} - color: cyan - flip: true - - - animation: heavy.yaml - position: {x: 11, y: 7} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 11, y: 1} - position2: {x: 11, y: 12} - color: green - - - animation: heavy.yaml - position: {x: 18, y: 2} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 18, y: 1} - position2: {x: 18, y: 12} - color: green - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 28 - position: {x: 28, y: 6} - counter: 1 diff --git a/data/room/47.yaml b/data/room/47.yaml deleted file mode 100644 index 7644c6e..0000000 --- a/data/room/47.yaml +++ /dev/null @@ -1,103 +0,0 @@ -room: - bgColor: black - border: white - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 51.yaml - down: null - left: 48.yaml - right: null - - # Colores de los objetos - itemColor1: red - itemColor2: yellow - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -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] - -# Enemigos en esta habitación -enemies: - - animation: jailbattle_alien.yaml - position: {x: 10, y: 3} - velocity: {x: 48.0, y: 0} - boundaries: - position1: {x: 3, y: 3} - position2: {x: 27, y: 3} - color: green - flip: true - - - animation: jailbattle_alien.yaml - position: {x: 25, y: 4} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 25, y: 4} - position2: {x: 25, y: 10} - color: yellow - flip: true - - - animation: jailbattle_human.yaml - position: {x: 7, y: 6} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 7, y: 6} - position2: {x: 7, y: 13} - color: red - flip: true - - - animation: jailbattle_human.yaml - position: {x: 18, y: 13} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 15, y: 13} - position2: {x: 27, y: 13} - color: cyan - flip: true - -# Objetos en esta habitación -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 diff --git a/data/room/48.yaml b/data/room/48.yaml deleted file mode 100644 index 13cb773..0000000 --- a/data/room/48.yaml +++ /dev/null @@ -1,84 +0,0 @@ -room: - bgColor: green - border: bright_green - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 49.yaml - left: null - right: 47.yaml - - # Colores de los objetos - itemColor1: white - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32] - - [32, -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] - - [32, -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] - - [32, -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] - - [32, -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] - - [32, -1, 400, 400, 400, -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] - - [32, -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] - - [32, -1, -1, -1, -1, -1, 400, 400, 400, 400, 400, 528, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 528, -1, -1, -1, -1, 32, -1, 32, -1, 32, -1, 32, -1, 32, -1, 32, -1, 32, 400, 32] - - [32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 528, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 133] - - [32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 528, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 32] - - [32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 504, 400, 400, 400, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 133] - - [32, -1, -1, -1, -1, 504, 400, 400, 400, 400, 400, 400, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 32] - - [32, -1, -1, -1, 504, -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, 133] - - [32, -1, -1, 504, -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, 32] - - [32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, -1, -1, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32] - -# Enemigos en esta habitación -enemies: - - animation: jailbattle_human.yaml - position: {x: 17, y: 6} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 12, y: 6} - position2: {x: 27, y: 6} - color: white - flip: true - - - animation: jailbattle_human.yaml - position: {x: 2, y: 13} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 2, y: 13} - position2: {x: 16, y: 13} - color: white - flip: true - - - animation: jailbattle_alien.yaml - position: {x: 24, y: 10} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 24, y: 9} - position2: {x: 24, y: 13} - color: white - flip: true - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 19 - position: {x: 27, y: 11} - counter: 1 - - - tileSetFile: items.gif - tile: 19 - position: {x: 3, y: 3} - counter: 2 - - - tileSetFile: items.gif - tile: 19 - position: {x: 23, y: 4} - counter: 3 diff --git a/data/room/49.yaml b/data/room/49.yaml deleted file mode 100644 index 31ace65..0000000 --- a/data/room/49.yaml +++ /dev/null @@ -1,52 +0,0 @@ -room: - bgColor: black - border: red - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 48.yaml - down: null - left: 50.yaml - right: 17.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, -1, -1, -1, -1, 522, 38, 38, 38, 38, 38, 38, 38, 38] - - [38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [38, 268, 268, 268, 268, 268, 268, 546, -1, -1, -1, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 38] - - [38, -1, -1, -1, -1, -1, -1, -1, 546, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [38, -1, -1, -1, -1, -1, -1, -1, -1, 546, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [38, -1, -1, -1, -1, -1, -1, -1, -1, -1, 546, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 546, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 546, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38] - - [38, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, -1, -1, 522, 268, 268, 268, 268, 268, 268, 268, 268, 38] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 522, -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, 522, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38] - -# Enemigos en esta habitación -enemies: - - animation: robot.yaml - position: {x: 10, y: 8} - velocity: {x: 42.0, y: 0} - boundaries: - position1: {x: 1, y: 8} - position2: {x: 29, y: 8} - color: yellow - flip: true - -# No items in this room -items: [] \ No newline at end of file diff --git a/data/room/50.yaml b/data/room/50.yaml deleted file mode 100644 index 68ddc0b..0000000 --- a/data/room/50.yaml +++ /dev/null @@ -1,78 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: null - right: 49.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: right - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41] - - [41, 41, -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, 41, 41] - - [41, -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, 41] - - [41, -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, 41] - - [41, -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] - - [41, -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] - - [41, 63, 63, 63, 63, 63, -1, -1, -1, -1, 436, 436, 436, -1, -1, -1, 436, 436, 436, -1, -1, -1, -1, 63, 63, 63, 63, 63, 63, 63, 63, 41] - - [41, -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, 41] - - [41, -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, 41] - - [41, -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, 41] - - [41, -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, 41] - - [41, -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, 41] - - [41, -1, -1, 388, 388, 388, -1, -1, -1, -1, 388, 388, 388, 388, 364, 388, 388, 388, 388, -1, -1, -1, -1, 388, 388, 388, 388, -1, -1, -1, -1, 41] - - [41, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 340, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [41, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 340, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41] - -# Enemigos en esta habitación -enemies: - - animation: floppy.yaml - position: {x: 7, y: 2} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 7, y: 2} - position2: {x: 7, y: 12} - color: magenta - - - animation: floppy.yaml - position: {x: 20, y: 6} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 20, y: 2} - position2: {x: 20, y: 12} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 1 - position: {x: 4, y: 9} - counter: 1 - - - tileSetFile: items.gif - tile: 1 - position: {x: 25, y: 9} - counter: 2 - - - tileSetFile: items.gif - tile: 1 - position: {x: 2, y: 5} - counter: 3 - - - tileSetFile: items.gif - tile: 1 - position: {x: 1, y: 14} - counter: 4 diff --git a/data/room/51.yaml b/data/room/51.yaml deleted file mode 100644 index a64fbf4..0000000 --- a/data/room/51.yaml +++ /dev/null @@ -1,76 +0,0 @@ -room: - bgColor: black - border: black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 53.yaml - down: 47.yaml - left: 52.yaml - right: null - - # Colores de los objetos - itemColor1: bright_white - itemColor2: black - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [186, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 294, -1, -1, 183, 183, 183, 183, 183, 182] - - [186, -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, 182] - - [186, -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, 182] - - [186, -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, 183, 183, -1, -1, -1, 182] - - [186, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 183, 183, -1, -1, -1, -1, -1, 292] - - [186, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 294, -1, -1, -1, -1, -1, -1, -1, 292] - - [186, -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, 182] - - [186, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 298, 185, -1, -1, -1, -1, -1, -1, -1, -1, 182] - - [186, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 185, -1, -1, -1, -1, -1, -1, -1, 182] - - [186, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 185, -1, -1, -1, -1, -1, -1, 182] - - [-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, 298, -1, -1, -1, -1, -1, 182] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 184, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 298, -1, -1, -1, -1, 182] - - [-1, -1, -1, -1, -1, -1, -1, 183, 183, 183, 183, 183, -1, -1, -1, -1, -1, -1, -1, -1, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 182] - - [-1, -1, -1, -1, -1, 182, 182, 182, 182, 182, 182, 182, 182, 182, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 182] - - [-1, -1, -1, 181, 181, 181, 181, 181, 290, 181, 181, 181, 181, 181, 181, 181, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 182] - - [184, 184, 184, 184, 184, 296, 296, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 180, 180, -1, -1, 180, 180, 180, 180, 180, 180, 180, 182] - -# Enemigos en esta habitación -enemies: - - animation: amstrad_cs.yaml - position: {x: 1, y: 6} - velocity: {x: 72.0, y: 0} - boundaries: - position1: {x: 1, y: 6} - position2: {x: 30, y: 6} - color: white - - - animation: amstrad_cs.yaml - position: {x: 19, y: 1} - velocity: {x: 0, y: 72.0} - boundaries: - position1: {x: 19, y: 1} - position2: {x: 19, y: 14} - color: yellow - - - animation: amstrad_cs.yaml - position: {x: 5, y: 6} - velocity: {x: 0, y: 72.0} - boundaries: - position1: {x: 5, y: 1} - position2: {x: 5, y: 12} - color: green - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 39 - position: {x: 28, y: 2} - counter: 1 - - - tileSetFile: items.gif - tile: 39 - position: {x: 9, y: 9} - counter: 2 diff --git a/data/room/52.yaml b/data/room/52.yaml deleted file mode 100644 index 4fb6550..0000000 --- a/data/room/52.yaml +++ /dev/null @@ -1,55 +0,0 @@ -room: - bgColor: black - border: black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: null - right: 51.yaml - - # Colores de los objetos - itemColor1: bright_white - itemColor2: black - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [183, 181, 181, 181, 181, 181, 181, 181, 290, 290, 181, 181, 186, 186, 186, 186, 186, 186, 309, 186, 186, 186, 186, 186, 186, 186, 184, 184, 184, 184, 296, 296] - - [183, -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, 288] - - [183, -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, 180] - - [183, -1, 180, 180, 181, 181, 183, 183, 184, 184, 182, 182, 185, 185, 180, 180, 181, 181, 183, 183, 184, 184, 182, 182, -1, -1, -1, -1, -1, -1, -1, 180] - - [183, -1, 185, 185, 180, 180, 181, 181, 183, 183, 184, 184, 182, 182, 185, 185, 180, 180, 181, 181, 183, 183, 184, 184, -1, -1, -1, -1, -1, -1, -1, 180] - - [183, -1, 182, 182, 185, 185, 180, 180, 181, 181, 183, 183, 184, 184, 182, 182, 185, 185, 180, 180, 181, 181, 183, 183, -1, -1, -1, -1, -1, -1, -1, 180] - - [183, -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, 180] - - [183, -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, 180] - - [183, -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, 180] - - [185, -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, 180] - - [185, -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] - - [185, -1, -1, 183, -1, -1, -1, -1, 183, -1, -1, -1, -1, 185, -1, -1, -1, -1, -1, -1, -1, 182, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [185, -1, 183, 183, 183, 184, -1, -1, 183, -1, -1, -1, 182, 182, -1, -1, -1, 184, 184, -1, -1, 182, 292, 292, 182, -1, -1, -1, -1, -1, -1, -1] - - [185, -1, 183, 186, 186, 186, 180, -1, 185, 183, -1, 182, 182, 292, -1, 184, 184, 184, 296, 184, -1, 182, 182, 182, 182, -1, -1, -1, -1, -1, -1, -1] - - [185, 181, 181, 290, 181, 181, 181, 181, 183, 183, 183, 183, 294, 183, 183, 183, 183, 185, 185, 298, 185, 185, 185, 185, 185, 185, -1, -1, -1, -1, -1, -1] - - [182, 182, 182, 182, 182, 292, 288, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184] - -# Enemigos en esta habitación -enemies: - - animation: breakout.yaml - position: {x: 1, y: 6} - velocity: {x: 132.0, y: 0} - boundaries: - position1: {x: 1, y: 6} - position2: {x: 22, y: 6} - color: white - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 39 - position: {x: 1, y: 13} - counter: 1 diff --git a/data/room/53.yaml b/data/room/53.yaml deleted file mode 100644 index 1371333..0000000 --- a/data/room/53.yaml +++ /dev/null @@ -1,89 +0,0 @@ -room: - bgColor: black - border: yellow - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: 51.yaml - left: null - right: 42.yaml - - # Colores de los objetos - itemColor1: magenta - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: right - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35] - - [35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35] - - [35, 35, 35, -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, 35, 35] - - [35, 35, -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, 35] - - [35, -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, 35] - - [35, -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, 35] - - [35, -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, 35] - - [35, -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, 35] - - [35, 410, -1, -1, -1, -1, 410, 410, 410, 410, 410, 410, 410, 410, 410, -1, -1, -1, -1, 452, 452, 452, 452, 452, 452, 452, 452, -1, -1, -1, -1, 35] - - [35, -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, 386, 35] - - [35, -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, 35] - - [35, 410, 410, 410, 410, 410, 410, 362, 410, 410, 410, 410, 410, 410, 410, -1, -1, -1, -1, 452, 452, 452, 452, 452, 452, 452, 452, -1, -1, -1, -1, 35] - - [35, -1, -1, -1, -1, -1, -1, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 35] - - [35, -1, -1, -1, -1, -1, -1, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [134, -1, -1, -1, -1, -1, -1, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, -1, -1, 35, 35, 35, 35, 35, 35] - -# Enemigos en esta habitación -enemies: - - animation: paco.yaml - position: {x: 6, y: 6} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 6, y: 6} - position2: {x: 13, y: 6} - color: yellow - - - animation: paco.yaml - position: {x: 16, y: 2} - velocity: {x: 0, y: 48.0} - boundaries: - position1: {x: 16, y: 2} - position2: {x: 16, y: 13} - color: bright_red - - - animation: wave.yaml - position: {x: 1, y: 10} - velocity: {x: 24.0, y: 0} - boundaries: - position1: {x: 1, y: 10} - position2: {x: 14, y: 10} - color: bright_yellow - - - animation: lamp.yaml - position: {x: 22, y: 2} - velocity: {x: 0, y: 0} - boundaries: - position1: {x: 22, y: 2} - position2: {x: 22, y: 2} - color: bright_yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 40 - position: {x: 1, y: 6} - counter: 1 - - - tileSetFile: items.gif - tile: 40 - position: {x: 1, y: 9} - counter: 2 - - - tileSetFile: items.gif - tile: 40 - position: {x: 30, y: 5} - counter: 3 diff --git a/data/room/54.yaml b/data/room/54.yaml deleted file mode 100644 index d415e10..0000000 --- a/data/room/54.yaml +++ /dev/null @@ -1,81 +0,0 @@ -room: - bgColor: black - border: blue - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 18.yaml - down: null - left: null - right: 55.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: blue - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [15, 15, 15, 15, 15, 15, 15, 15, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, -1, -1, -1, -1, 518, 348, 348, 348, 15, 15, 15, 15, 15, 15] - - [15, 15, 15, 15, 15, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, -1, -1, -1, -1, -1, -1, 301, 15, 15, 15] - - [15, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, -1, -1, -1, -1, -1, -1, -1, -1, -1, 301, 15] - - [15, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 31, 31, -1, -1, -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, 518, -1, -1, -1, -1, -1, -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, 518, -1, -1, -1, -1, -1, -1, -1, 348, 15, 15, -1, -1, -1, -1, -1, -1] - - [15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, -1, -1, -1, -1, -1, -1, 348, 15, 15, 301, -1, -1, -1, -1, -1, -1, -1] - - [31, -1, -1, -1, -1, -1, -1, 505, 31, 31, 31, 31, 31, 31, -1, -1, -1, -1, -1, -1, -1, -1, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [31, -1, -1, -1, -1, -1, 505, -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] - - [31, -1, -1, -1, -1, 505, -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] - - [31, 31, 31, 31, 31, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 408, 408, 408, 408, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [31, -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] - - [31, -1, -1, -1, -1, -1, -1, 408, 408, 408, 408, 408, 408, 408, 408, -1, -1, -1, -1, -1, -1, -1, -1, 518, 15, 15, 15, 15, 15, 15, 15, 15] - - [31, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 31, 15, 133, 15, 133, 15, 15, 15, 15] - - [31, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 518, 31, 31, 15, 133, 15, 133, 15, 15, 15, 15] - - [31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348] - -# Enemigos en esta habitación -enemies: - - animation: spider.yaml - position: {x: 2, y: 14} - velocity: {x: 30.0, y: 0} - boundaries: - position1: {x: 2, y: 14} - position2: {x: 18, y: 14} - color: magenta - - - animation: spider.yaml - position: {x: 10, y: 1} - velocity: {x: 0, y: 60.0} - boundaries: - position1: {x: 10, y: 1} - position2: {x: 10, y: 6} - color: yellow - - - animation: spider.yaml - position: {x: 7, y: 11} - velocity: {x: 18.0, y: 0} - boundaries: - position1: {x: 7, y: 11} - position2: {x: 14, y: 11} - color: cyan - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 35 - position: {x: 15, y: 9} - counter: 1 - - - tileSetFile: items.gif - tile: 35 - position: {x: 1, y: 14} - counter: 2 - - - tileSetFile: items.gif - tile: 35 - position: {x: 1, y: 9} - counter: 3 diff --git a/data/room/55.yaml b/data/room/55.yaml deleted file mode 100644 index 59b0040..0000000 --- a/data/room/55.yaml +++ /dev/null @@ -1,68 +0,0 @@ -room: - bgColor: black - border: black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 54.yaml - right: 56.yaml - - # Colores de los objetos - itemColor1: magenta - itemColor2: red - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: left - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [15, 15, 15, -1, -1, -1, -1, 301, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15] - - [15, 301, -1, -1, -1, -1, -1, -1, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15, 15, 15, 15, 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, -1, -1, 301, 15, 15, 15, 15, 15, 15] - - [301, -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, 301, 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, -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, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 301, 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, -1, -1, -1, -1, -1, 15] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, 301, -1, -1, -1, -1, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -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, 301, -1, -1, -1, -1, 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, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 301, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 476, -1, -1, -1, 15] - - [-1, -1, -1, -1, -1, -1, -1, -1, 325, -1, -1, -1, -1, -1, -1, -1, -1, -1, 325, -1, -1, -1, -1, 325, -1, -1, -1, -1, -1, -1, -1, 15] - - [15, 15, 15, 15, 537, -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, 15, 15, 15, 15, 537, -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, 15, 15, 15, 15, 537, -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] - - [348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348] - -# Enemigos en esta habitación -enemies: - - animation: dimallas.yaml - position: {x: 15, y: 13} - velocity: {x: 36.0, y: 0} - boundaries: - position1: {x: 9, y: 13} - position2: {x: 25, y: 13} - color: cyan - - - animation: guitar.yaml - position: {x: 16, y: 4} - velocity: {x: 0, y: 18.0} - boundaries: - position1: {x: 16, y: 4} - position2: {x: 16, y: 10} - color: red - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 25 - position: {x: 9, y: 4} - counter: 1 - - - tileSetFile: items.gif - tile: 25 - position: {x: 20, y: 11} - counter: 2 diff --git a/data/room/56.yaml b/data/room/56.yaml deleted file mode 100644 index bd4d5ed..0000000 --- a/data/room/56.yaml +++ /dev/null @@ -1,78 +0,0 @@ -room: - bgColor: black - border: black - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 55.yaml - right: 57.yaml - - # Colores de los objetos - itemColor1: bright_red - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: left - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-1, -1, -1, 302, 302, 302, 302, -1, 302, 302, 302, 302, 302, -1, 302, 302, 302, 302, 302, 302, 302, 302, 302, -1, -1, 302, 302, 302, 302, -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, -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, -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, -1, -1, -1] - - [17, 568, -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, 567, 17] - - [17, 568, -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, 567, 17] - - [17, 568, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 468, 468, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 567, 17] - - [17, 568, -1, -1, -1, -1, -1, -1, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, 410, 410, -1, -1, -1, -1, -1, -1, 567, 17] - - [17, 568, -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, 567, 17] - - [17, 568, -1, 17, 17, 17, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 17, 17, 17, -1, 567, 17] - - [17, 568, -1, 566, 566, 566, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 566, 566, 566, -1, 567, 17] - - [17, 568, -1, -1, -1, -1, -1, -1, 519, 410, 410, -1, -1, -1, -1, 468, 468, -1, -1, -1, -1, 410, 410, 543, -1, -1, -1, -1, -1, -1, 567, 17] - - [17, 568, -1, -1, -1, -1, -1, 519, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 543, -1, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, -1, 519, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 543, -1, -1, -1, -1, -1, -1] - - [-1, -1, -1, -1, -1, 519, -1, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, -1, 543, -1, -1, -1, 514, 17] - - [17, 17, 17, 17, 17, 17, 17, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 17, 17, 17, 17, 17, 17, 17] - -# Enemigos en esta habitación -enemies: - - animation: demon.yaml - position: {x: 12, y: 3} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 12, y: 3} - position2: {x: 12, y: 12} - color: red - - - animation: demon.yaml - position: {x: 18, y: 5} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 18, y: 3} - position2: {x: 18, y: 12} - color: red - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 28 - position: {x: 15, y: 10} - counter: 1 - - - tileSetFile: items.gif - tile: 28 - position: {x: 16, y: 10} - counter: 2 - - - tileSetFile: items.gif - tile: 28 - position: {x: 15, y: 5} - counter: 3 - - - tileSetFile: items.gif - tile: 28 - position: {x: 16, y: 5} - counter: 4 diff --git a/data/room/57.yaml b/data/room/57.yaml deleted file mode 100644 index 77889eb..0000000 --- a/data/room/57.yaml +++ /dev/null @@ -1,96 +0,0 @@ -room: - bgColor: red - border: red - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 56.yaml - right: 58.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: left - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [-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] - - [18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, 18] - - [18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, 18] - - [18, -1, -1, -1, -1, -1, 18, 18, 18, -1, -1, -1, -1, 18, 18, 18, -1, -1, -1, -1, 18, 18, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [18, -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, 524, 18] - - [18, -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, 524, -1, 18] - - [18, -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, 307, -1, -1, 18] - - [18, -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, 18] - - [18, -1, -1, -1, -1, 524, 307, 307, 307, -1, -1, -1, -1, 307, 307, 307, -1, -1, -1, -1, 307, 307, 307, -1, -1, -1, -1, 307, -1, -1, -1, 18] - - [18, -1, -1, -1, 307, -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, 18] - - [18, -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, 18] - - [-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] - - [-1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1] - - [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18] - - [492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492] - -# Enemigos en esta habitación -enemies: - - animation: dimallas.yaml - position: {x: 13, y: 12} - velocity: {x: 54, y: 0} - boundaries: - position1: {x: 4, y: 12} - position2: {x: 21, y: 12} - color: green - - - animation: heavy.yaml - position: {x: 17, y: 5} - velocity: {x: 0, y: 36} - boundaries: - position1: {x: 17, y: 2} - position2: {x: 17, y: 10} - - - animation: heavy.yaml - position: {x: 10, y: 8} - velocity: {x: 0, y: 36} - boundaries: - position1: {x: 10, y: 2} - position2: {x: 10, y: 10} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 32 - position: {x: 7, y: 8} - counter: 1 - - - tileSetFile: items.gif - tile: 32 - position: {x: 14, y: 8} - counter: 2 - - - tileSetFile: items.gif - tile: 32 - position: {x: 21, y: 8} - counter: 3 - - - tileSetFile: items.gif - tile: 49 - position: {x: 7, y: 11} - counter: 4 - - - tileSetFile: items.gif - tile: 49 - position: {x: 14, y: 11} - counter: 5 - - - tileSetFile: items.gif - tile: 49 - position: {x: 21, y: 11} - counter: 6 - diff --git a/data/room/58.yaml b/data/room/58.yaml deleted file mode 100644 index 90d8c5c..0000000 --- a/data/room/58.yaml +++ /dev/null @@ -1,86 +0,0 @@ -room: - bgColor: black - border: magenta - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: null - down: null - left: 57.yaml - right: 59.yaml - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [36, -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, 36] - - [36, -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, 36] - - [36, -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, 36] - - [-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, 36] - - [-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, 36] - - [36, 410, 410, 410, -1, -1, 410, 410, 410, -1, -1, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, -1, -1, 520, 410, 410, -1, -1, 410, 410, 410, 36] - - [36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 520, -1, -1, -1, -1, -1, -1, -1, -1, 36] - - [36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 520, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36] - - [36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 520, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36] - - [36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 520, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36] - - [36, 410, 410, 410, -1, -1, 410, 410, 410, -1, -1, 410, 410, 410, 544, -1, -1, 410, 410, 410, 410, 410, 410, 410, 410, 410, -1, -1, 410, 410, 410, 36] - - [36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 544, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 544, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 544, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [36, 536, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 544, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] - - [36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36] - -# Enemigos en esta habitación -enemies: - - animation: bird.yaml - position: {x: 4, y: 2} - velocity: {x: 0, y: 30.0} - boundaries: - position1: {x: 4, y: 2} - position2: {x: 4, y: 12} - color: yellow - - - animation: bird.yaml - position: {x: 9, y: 11} - velocity: {x: 0, y: -30.0} - boundaries: - position1: {x: 9, y: 0} - position2: {x: 9, y: 10} - color: green - - - animation: bird.yaml - position: {x: 26, y: 5} - velocity: {x: 0, y: -30.0} - boundaries: - position1: {x: 26, y: 2} - position2: {x: 26, y: 12} - color: white - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 10 - position: {x: 2, y: 8} - counter: 1 - - - tileSetFile: items.gif - tile: 10 - position: {x: 2, y: 3} - counter: 2 - - - tileSetFile: items.gif - tile: 10 - position: {x: 29, y: 8} - counter: 3 - - - tileSetFile: items.gif - tile: 10 - position: {x: 29, y: 3} - counter: 4 diff --git a/data/room/59.yaml b/data/room/59.yaml deleted file mode 100644 index 6a7c2b3..0000000 --- a/data/room/59.yaml +++ /dev/null @@ -1,91 +0,0 @@ -room: - bgColor: black - border: bright_magenta - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 60.yaml - down: null - left: 58.yaml - right: null - - # Colores de los objetos - itemColor1: yellow - itemColor2: magenta - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [63, -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, 505, -1, 63] - - [63, -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, 505, -1, -1, 63] - - [63, -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, 505, -1, -1, -1, 63] - - [63, -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, 505, -1, -1, -1, -1, 63] - - [63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, 63] - - [63, 63, 63, 529, -1, -1, -1, 63, 63, 63, 63, -1, -1, -1, -1, 63, 63, 63, 63, -1, -1, -1, -1, 63, 63, 63, 63, -1, -1, 63, 63, 63] - - [63, -1, -1, -1, 529, -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, 63] - - [63, -1, -1, -1, -1, 529, -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, 63] - - [63, -1, -1, -1, -1, -1, 529, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63] - - [63, -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, -1, -1, -1, -1, -1, 63] - - [63, -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, -1, -1, -1, -1, 63] - - [63, 416, 416, 416, 416, -1, -1, -1, -1, 416, 416, 416, -1, -1, -1, -1, 416, 416, 416, 416, 416, 416, 416, -1, -1, -1, 505, 416, 416, 416, 416, 63] - - [63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, 63] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, -1, 63] - - [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 505, -1, -1, -1, -1, -1, -1, -1, 63] - - [63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63] - -# Enemigos en esta habitación -enemies: - - animation: wave.yaml - position: {x: 1, y: 10} - velocity: {x: 48.0, y: 0} - boundaries: - position1: {x: 1, y: 10} - position2: {x: 30, y: 10} - color: magenta - - - animation: wave.yaml - position: {x: 30, y: 4} - velocity: {x: -48.0, y: 0} - boundaries: - position1: {x: 1, y: 4} - position2: {x: 30, y: 4} - color: cyan - - - animation: wave.yaml - position: {x: 15, y: 14} - velocity: {x: -24.0, y: 0} - boundaries: - position1: {x: 3, y: 14} - position2: {x: 30, y: 14} - color: green - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 24 - position: {x: 29, y: 13} - counter: 1 - - - tileSetFile: items.gif - tile: 24 - position: {x: 17, y: 6} - counter: 2 - - - tileSetFile: items.gif - tile: 24 - position: {x: 9, y: 6} - counter: 3 - - - tileSetFile: items.gif - tile: 24 - position: {x: 2, y: 9} - counter: 4 - - - tileSetFile: items.gif - tile: 24 - position: {x: 29, y: 3} - counter: 5 diff --git a/data/room/60.yaml b/data/room/60.yaml deleted file mode 100644 index abaa1b1..0000000 --- a/data/room/60.yaml +++ /dev/null @@ -1,88 +0,0 @@ -room: - bgColor: black - border: bright_red - tileSetFile: standard.gif - - # Conexiones de la habitación (null = sin conexión) - connections: - up: 05.yaml - down: 59.yaml - left: null - right: null - - # Colores de los objetos - itemColor1: red - itemColor2: green - - # Dirección de la cinta transportadora: left, none, right - conveyorBelt: none - -# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile) -# Índices de tiles (-1 = vacío) -tilemap: - - [168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 410, -1, -1, 410, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168] - - [168, -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, 168] - - [168, -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, 168] - - [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168] - - [168, -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, 168] - - [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, -1, -1, -1, -1, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168] - - [168, -1, -1, -1, -1, 307, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 307, -1, -1, -1, -1, 168] - - [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, 410, 410, 410, -1, -1, -1, -1, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168] - - [168, -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, 168] - - [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, -1, -1, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168] - - [168, -1, -1, -1, 307, -1, -1, -1, -1, 307, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 307, -1, -1, -1, -1, 307, -1, -1, -1, 168] - - [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, 410, 410, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168] - - [168, -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, 168] - - [168, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 410, -1, -1, -1, -1, 410, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168] - - [168, -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, 168] - - [168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, -1, -1, 168, 168, 168, 168] - -# Enemigos en esta habitación -enemies: - - animation: shock.yaml - position: {x: 7, y: 2} - velocity: {x: 0, y: 90.0} - boundaries: - position1: {x: 7, y: 1} - position2: {x: 7, y: 14} - color: yellow - - - animation: shock.yaml - position: {x: 24, y: 6} - velocity: {x: 0, y: -90.0} - boundaries: - position1: {x: 24, y: 1} - position2: {x: 24, y: 14} - color: yellow - -# Objetos en esta habitación -items: - - tileSetFile: items.gif - tile: 1 - position: {x: 5, y: 4} - counter: 1 - - - tileSetFile: items.gif - tile: 1 - position: {x: 4, y: 9} - counter: 2 - - - tileSetFile: items.gif - tile: 1 - position: {x: 9, y: 9} - counter: 3 - - - tileSetFile: items.gif - tile: 1 - position: {x: 22, y: 9} - counter: 2 - - - tileSetFile: items.gif - tile: 1 - position: {x: 27, y: 9} - counter: 3 - - - tileSetFile: items.gif - tile: 1 - position: {x: 26, y: 4} - counter: 1 diff --git a/data/tilesets/standard.gif b/data/tilesets/standard.gif index 63f026d..30961de 100644 Binary files a/data/tilesets/standard.gif and b/data/tilesets/standard.gif differ diff --git a/source/core/rendering/pixel_reveal.cpp b/source/core/rendering/pixel_reveal.cpp index bc712ca..8beec6e 100644 --- a/source/core/rendering/pixel_reveal.cpp +++ b/source/core/rendering/pixel_reveal.cpp @@ -22,7 +22,7 @@ PixelReveal::PixelReveal(int width, int height, float pixels_per_second, float s mode_(mode) { // En modo normal: empieza negro sólido (se irá revelando a transparente) // En modo inverso: empieza transparente (se irá cubriendo de negro) - const auto INITIAL_COLOR = reverse_ ? static_cast(PaletteColor::TRANSPARENT) : static_cast(PaletteColor::BLACK); + const auto INITIAL_COLOR = reverse_ ? 255 : 0; cover_surface_->clear(INITIAL_COLOR); if (mode_ == RevealMode::ORDERED) { @@ -68,7 +68,7 @@ PixelReveal::PixelReveal(int width, int height, float pixels_per_second, float s // Actualiza el estado del revelado void PixelReveal::update(float time_active) { // NOLINT(readability-make-member-function-const) // En modo normal revela (pone transparente); en modo inverso cubre (pone negro) - const auto PIXEL_COLOR = reverse_ ? static_cast(PaletteColor::BLACK) : static_cast(PaletteColor::TRANSPARENT); + const auto PIXEL_COLOR = reverse_ ? 0 : 255; for (int r = 0; r < height_; r++) { const float T_START = static_cast(r) / pixels_per_second_; diff --git a/source/core/rendering/screen.cpp b/source/core/rendering/screen.cpp index dc2acbf..3d2b24d 100644 --- a/source/core/rendering/screen.cpp +++ b/source/core/rendering/screen.cpp @@ -56,7 +56,7 @@ Screen::Screen() { game_surface_dstrect_ = {.x = Options::video.border.width, .y = Options::video.border.height, .w = Options::game.width, .h = Options::game.height}; // Define el color del borde para el modo de pantalla completa - border_color_ = static_cast(PaletteColor::BLACK); + border_color_ = 0; // Crea la textura donde se dibujan los graficos del juego game_texture_ = SDL_CreateTexture(renderer_, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, Options::game.width, Options::game.height); @@ -76,7 +76,7 @@ Screen::Screen() { // Crea las surfaces (PaletteManager aplicará la paleta inicial en su constructor) game_surface_ = std::make_shared(Options::game.width, Options::game.height); - game_surface_->clear(static_cast(PaletteColor::BLACK)); + game_surface_->clear(0); border_surface_ = std::make_shared(Options::game.width + (Options::video.border.width * 2), Options::game.height + (Options::video.border.height * 2)); border_surface_->clear(border_color_); diff --git a/source/core/rendering/sdl3gpu/downscale_frag_spv.h b/source/core/rendering/sdl3gpu/downscale_frag_spv.h index 6d96082..cf0f341 100644 --- a/source/core/rendering/sdl3gpu/downscale_frag_spv.h +++ b/source/core/rendering/sdl3gpu/downscale_frag_spv.h @@ -4249,5 +4249,6 @@ static const uint8_t kdownscale_frag_spv[] = { 0x38, 0x00, 0x01, - 0x00}; + 0x00, +}; static const size_t kdownscale_frag_spv_size = 4248; diff --git a/source/core/rendering/sdl3gpu/postfx_frag_spv.h b/source/core/rendering/sdl3gpu/postfx_frag_spv.h index 8811d52..a60ea13 100644 --- a/source/core/rendering/sdl3gpu/postfx_frag_spv.h +++ b/source/core/rendering/sdl3gpu/postfx_frag_spv.h @@ -11713,5 +11713,6 @@ static const uint8_t kpostfx_frag_spv[] = { 0x38, 0x00, 0x01, - 0x00}; + 0x00, +}; static const size_t kpostfx_frag_spv_size = 11712; diff --git a/source/core/rendering/sdl3gpu/postfx_vert_spv.h b/source/core/rendering/sdl3gpu/postfx_vert_spv.h index 1be581e..b5c80f9 100644 --- a/source/core/rendering/sdl3gpu/postfx_vert_spv.h +++ b/source/core/rendering/sdl3gpu/postfx_vert_spv.h @@ -1445,5 +1445,6 @@ static const uint8_t kpostfx_vert_spv[] = { 0x38, 0x00, 0x01, - 0x00}; + 0x00, +}; static const size_t kpostfx_vert_spv_size = 1444; diff --git a/source/core/rendering/sdl3gpu/upscale_frag_spv.h b/source/core/rendering/sdl3gpu/upscale_frag_spv.h index af2b2da..46e7c30 100644 --- a/source/core/rendering/sdl3gpu/upscale_frag_spv.h +++ b/source/core/rendering/sdl3gpu/upscale_frag_spv.h @@ -629,5 +629,6 @@ static const uint8_t kupscale_frag_spv[] = { 0x38, 0x00, 0x01, - 0x00}; + 0x00, +}; static const size_t kupscale_frag_spv_size = 628; diff --git a/source/core/rendering/surface.cpp b/source/core/rendering/surface.cpp index cd3942b..2548e5f 100644 --- a/source/core/rendering/surface.cpp +++ b/source/core/rendering/surface.cpp @@ -93,10 +93,10 @@ auto readPalFile(const std::string& file_path) -> Palette { // Constructor Surface::Surface(int w, int h) : surface_data_(std::make_shared(w, h)), - transparent_color_(static_cast(PaletteColor::TRANSPARENT)) { initializeSubPalette(sub_palette_); } + transparent_color_(255) { initializeSubPalette(sub_palette_); } Surface::Surface(const std::string& file_path) - : transparent_color_(static_cast(PaletteColor::TRANSPARENT)) { + : transparent_color_(255) { SurfaceData loaded_data = loadSurface(file_path); surface_data_ = std::make_shared(std::move(loaded_data)); diff --git a/source/core/rendering/text.cpp b/source/core/rendering/text.cpp index 4a76380..82bc50b 100644 --- a/source/core/rendering/text.cpp +++ b/source/core/rendering/text.cpp @@ -176,7 +176,7 @@ auto Text::writeToSurface(const std::string& text, int zoom, int kerning) -> std auto surface = std::make_shared(width, height); auto previuos_renderer = Screen::get()->getRendererSurface(); Screen::get()->setRendererSurface(surface); - surface->clear(stringToColor("transparent")); + surface->clear(255); write(0, 0, text, kerning); Screen::get()->setRendererSurface(previuos_renderer); @@ -190,7 +190,7 @@ auto Text::writeDXToSurface(Uint8 flags, const std::string& text, int kerning, U auto surface = std::make_shared(width, height); auto previuos_renderer = Screen::get()->getRendererSurface(); Screen::get()->setRendererSurface(surface); - surface->clear(stringToColor("transparent")); + surface->clear(255); writeDX(flags, 0, 0, text, kerning, text_color, shadow_distance, shadow_color, lenght); Screen::get()->setRendererSurface(previuos_renderer); diff --git a/source/core/resources/resource_cache.cpp b/source/core/resources/resource_cache.cpp index d9f9b0c..dc42261 100644 --- a/source/core/resources/resource_cache.cpp +++ b/source/core/resources/resource_cache.cpp @@ -61,7 +61,7 @@ namespace Resource { // por lo que updateZoomFactor() se llamará correctamente en RenderInfo::init(). if (loading_mode_ == LoadingMode::EAGER) { calculateTotal(); - Screen::get()->setBorderColor(static_cast(PaletteColor::BLACK)); + Screen::get()->setBorderColor(0); std::cout << "\n** LOADING RESOURCES" << '\n'; loadSounds(); loadMusics(); @@ -499,11 +499,11 @@ namespace Resource { const float BAR_POSITION = Options::game.height - BAR_HEIGHT - Y_PADDING; Screen::get()->start(); - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); auto surface = Screen::get()->getRendererSurface(); - const auto LOADING_TEXT_COLOR = static_cast(PaletteColor::BRIGHT_WHITE); - const auto BAR_COLOR = static_cast(PaletteColor::WHITE); + const auto LOADING_TEXT_COLOR = 15; + const auto BAR_COLOR = 14; const int TEXT_HEIGHT = loading_text_->getCharacterSize(); const int CENTER_X = Options::game.width / 2; const int CENTER_Y = Options::game.height / 2; diff --git a/source/core/system/debug.cpp b/source/core/system/debug.cpp index 344704d..fbe2251 100644 --- a/source/core/system/debug.cpp +++ b/source/core/system/debug.cpp @@ -66,7 +66,7 @@ void Debug::render() { // NOLINT(readability-make-member-function-const) y = 0; for (const auto& l : log_) { - text->writeColored(x_ + 10, y, l, static_cast(PaletteColor::WHITE)); + text->writeColored(x_ + 10, y, l, 14); y += CHAR_SIZE + 1; } } diff --git a/source/game/editor/editor_statusbar.cpp b/source/game/editor/editor_statusbar.cpp index 7cc786f..771c6af 100644 --- a/source/game/editor/editor_statusbar.cpp +++ b/source/game/editor/editor_statusbar.cpp @@ -10,14 +10,13 @@ #include "core/rendering/text.hpp" // Para Text #include "core/resources/resource_cache.hpp" // Para Resource::Cache #include "game/options.hpp" // Para Options::game -#include "utils/defines.hpp" // Para Tile::SIZE -#include "utils/utils.hpp" // Para stringToColor, toLower +#include "utils/utils.hpp" // Para toLower // Constructor EditorStatusBar::EditorStatusBar(std::string room_number) : room_number_(std::move(room_number)) { const float SURFACE_WIDTH = Options::game.width; - constexpr float SURFACE_HEIGHT = 6.0F * Tile::SIZE; // 48 pixels, igual que el scoreboard + constexpr float SURFACE_HEIGHT = 24.0F; // 3 líneas de 8px surface_ = std::make_shared(SURFACE_WIDTH, SURFACE_HEIGHT); surface_dest_ = {.x = 0, .y = Options::game.height - SURFACE_HEIGHT, .w = SURFACE_WIDTH, .h = SURFACE_HEIGHT}; @@ -48,16 +47,26 @@ void EditorStatusBar::fillTexture() { auto previous_renderer = Screen::get()->getRendererSurface(); Screen::get()->setRendererSurface(surface_); - surface_->clear(stringToColor("black")); + surface_->clear(0); auto text = Resource::Cache::get()->getText("8bithud"); - const Uint8 LABEL_COLOR = stringToColor("bright_cyan"); - const Uint8 VALUE_COLOR = stringToColor("white"); - const Uint8 DETAIL_COLOR = stringToColor("bright_yellow"); + const Uint8 LABEL_COLOR = 11; + const Uint8 VALUE_COLOR = 14; + const Uint8 DETAIL_COLOR = 13; + const Uint8 COORD_COLOR = 9; + const int RIGHT_X = static_cast(Options::game.width) - LEFT_X; - // Línea 1: Número de la habitación + // Línea 1: Room number (izq) + line4 extra (centro) + tile coords + line5 drag info (der) text->writeColored(LEFT_X, LINE1_Y, toLower(room_number_), LABEL_COLOR); + // Tile coords + drag info a la derecha + const std::string TILE_X_STR = (mouse_tile_x_ < 10 ? "0" : "") + std::to_string(mouse_tile_x_); + const std::string TILE_Y_STR = (mouse_tile_y_ < 10 ? "0" : "") + std::to_string(mouse_tile_y_); + std::string right_part = TILE_X_STR + "," + TILE_Y_STR; + if (!line5_.empty()) { right_part += " " + line5_; } + if (!line4_.empty()) { right_part = toLower(line4_) + " " + right_part; } + text->writeColored(RIGHT_X - text->length(right_part), LINE1_Y, right_part, COORD_COLOR); + // Línea 2: Propiedades de room o info de enemigo if (!line2_.empty()) { text->writeColored(LEFT_X, LINE2_Y, toLower(line2_), DETAIL_COLOR); @@ -68,20 +77,6 @@ void EditorStatusBar::fillTexture() { text->writeColored(LEFT_X, LINE3_Y, toLower(line3_), VALUE_COLOR); } - // Línea 4: Extra - if (!line4_.empty()) { - text->writeColored(LEFT_X, LINE4_Y, toLower(line4_), DETAIL_COLOR); - } - - // Línea 5: Tile coords + drag info - const std::string TILE_X_STR = (mouse_tile_x_ < 10 ? "0" : "") + std::to_string(mouse_tile_x_); - const std::string TILE_Y_STR = (mouse_tile_y_ < 10 ? "0" : "") + std::to_string(mouse_tile_y_); - std::string line5 = "tile:" + TILE_X_STR + "," + TILE_Y_STR; - if (!line5_.empty()) { - line5 += " " + line5_; - } - text->writeColored(LEFT_X, LINE5_Y, toLower(line5), stringToColor("bright_green")); - Screen::get()->setRendererSurface(previous_renderer); } diff --git a/source/game/editor/editor_statusbar.hpp b/source/game/editor/editor_statusbar.hpp index 3a51dc0..af36446 100644 --- a/source/game/editor/editor_statusbar.hpp +++ b/source/game/editor/editor_statusbar.hpp @@ -25,13 +25,11 @@ class EditorStatusBar { private: void fillTexture(); // Dibuja los elementos en la surface - // Constantes de posición (en pixels dentro de la surface de 256x48) - // Font 8bithud lowercase = 6px alto → 5 líneas con 8px de separación - static constexpr int LINE1_Y = 2; // Nombre de la habitación - static constexpr int LINE2_Y = 10; // Propiedades de room / enemy info - static constexpr int LINE3_Y = 18; // Conexiones+items / enemy detail - static constexpr int LINE4_Y = 26; // Extra - static constexpr int LINE5_Y = 34; // Tile coords + drag info + // Constantes de posición (en pixels dentro de la surface de 256x24) + // Font 8bithud lowercase = 6px alto → 3 líneas con 8px de separación + static constexpr int LINE1_Y = 1; // Room number + tile coords + extra + static constexpr int LINE2_Y = 9; // Propiedades de room / enemy info + static constexpr int LINE3_Y = 17; // Conexiones+items / enemy detail static constexpr int LEFT_X = 4; // Margen izquierdo // Objetos @@ -44,8 +42,8 @@ class EditorStatusBar { int mouse_tile_y_{0}; // Coordenada Y del ratón en tiles std::string line2_; // Contenido de la línea 2 std::string line3_; // Contenido de la línea 3 - std::string line4_; // Contenido de la línea 4 - std::string line5_; // Contenido de la línea 5 + std::string line4_; // Contenido de la línea 4 (mostrado en la línea 1 a la derecha) + std::string line5_; // Contenido de la línea 5 (mostrado en la línea 1 al centro) }; #endif // _DEBUG diff --git a/source/game/editor/map_editor.cpp b/source/game/editor/map_editor.cpp index 1f3c843..ce524f5 100644 --- a/source/game/editor/map_editor.cpp +++ b/source/game/editor/map_editor.cpp @@ -28,7 +28,7 @@ #include "game/options.hpp" // Para Options #include "game/ui/console.hpp" // Para Console #include "utils/defines.hpp" // Para Tile::SIZE, PlayArea -#include "utils/utils.hpp" // Para stringToColor +#include "utils/utils.hpp" // Singleton MapEditor* MapEditor::instance_ = nullptr; @@ -70,17 +70,17 @@ void MapEditor::loadSettings() { if (yaml.contains("grid")) { settings_.grid = yaml["grid"].get_value(); } if (yaml.contains("show_render_info")) { settings_.show_render_info = yaml["show_render_info"].get_value(); } if (yaml.contains("minimap_bg")) { - if (yaml["minimap_bg"].is_string()) { - settings_.minimap_bg = yaml["minimap_bg"].get_value(); - } else if (yaml["minimap_bg"].is_integer()) { - settings_.minimap_bg = std::to_string(yaml["minimap_bg"].get_value()); + if (yaml["minimap_bg"].is_integer()) { + settings_.minimap_bg = static_cast(yaml["minimap_bg"].get_value()); + } else if (yaml["minimap_bg"].is_string()) { + settings_.minimap_bg = static_cast(safeStoi(yaml["minimap_bg"].get_value(), 2)); } } if (yaml.contains("minimap_conn")) { - if (yaml["minimap_conn"].is_string()) { - settings_.minimap_conn = yaml["minimap_conn"].get_value(); - } else if (yaml["minimap_conn"].is_integer()) { - settings_.minimap_conn = std::to_string(yaml["minimap_conn"].get_value()); + if (yaml["minimap_conn"].is_integer()) { + settings_.minimap_conn = static_cast(yaml["minimap_conn"].get_value()); + } else if (yaml["minimap_conn"].is_string()) { + settings_.minimap_conn = static_cast(safeStoi(yaml["minimap_conn"].get_value(), 14)); } } } catch (...) { @@ -99,8 +99,8 @@ void MapEditor::saveSettings() const { file << "# Map Editor Settings\n"; file << "grid: " << (settings_.grid ? "true" : "false") << "\n"; file << "show_render_info: " << (settings_.show_render_info ? "true" : "false") << "\n"; - file << "minimap_bg: " << settings_.minimap_bg << "\n"; - file << "minimap_conn: " << settings_.minimap_conn << "\n"; + file << "minimap_bg: " << static_cast(settings_.minimap_bg) << "\n"; + file << "minimap_conn: " << static_cast(settings_.minimap_conn) << "\n"; file.close(); } @@ -121,16 +121,14 @@ auto MapEditor::showGrid(bool show) -> std::string { return show ? "Grid ON" : "Grid OFF"; } -// Parsea un color por nombre o índice numérico +// Parsea un color como índice numérico static auto parseColor(const std::string& value) -> Uint8 { - try { - return static_cast(std::stoi(value)); - } catch (...) { return stringToColor(value); } + return static_cast(safeStoi(value, 0)); } void MapEditor::toggleMiniMap() { if (!mini_map_) { - mini_map_ = std::make_unique(parseColor(settings_.minimap_bg), parseColor(settings_.minimap_conn)); + mini_map_ = std::make_unique(settings_.minimap_bg, settings_.minimap_conn); mini_map_->on_navigate = [this](const std::string& room_name) { mini_map_visible_ = false; reenter_ = true; @@ -143,7 +141,7 @@ void MapEditor::toggleMiniMap() { mini_map_visible_ = !mini_map_visible_; if (mini_map_visible_) { // Reconstruir el minimapa (pueden haber cambiado rooms, conexiones, tiles) - mini_map_ = std::make_unique(parseColor(settings_.minimap_bg), parseColor(settings_.minimap_conn)); + mini_map_ = std::make_unique(settings_.minimap_bg, settings_.minimap_conn); mini_map_->on_navigate = [this](const std::string& room_name) { mini_map_visible_ = false; reenter_ = true; @@ -157,21 +155,21 @@ void MapEditor::toggleMiniMap() { } auto MapEditor::setMiniMapBg(const std::string& color) -> std::string { - settings_.minimap_bg = toLower(color); + settings_.minimap_bg = static_cast(safeStoi(color, 2)); saveSettings(); if (mini_map_) { - mini_map_->rebuild(parseColor(settings_.minimap_bg), parseColor(settings_.minimap_conn)); + mini_map_->rebuild(settings_.minimap_bg, settings_.minimap_conn); } - return "minimap bg: " + settings_.minimap_bg; + return "minimap bg: " + std::to_string(settings_.minimap_bg); } auto MapEditor::setMiniMapConn(const std::string& color) -> std::string { - settings_.minimap_conn = toLower(color); + settings_.minimap_conn = static_cast(safeStoi(color, 14)); saveSettings(); if (mini_map_) { - mini_map_->rebuild(parseColor(settings_.minimap_bg), parseColor(settings_.minimap_conn)); + mini_map_->rebuild(settings_.minimap_bg, settings_.minimap_conn); } - return "minimap conn: " + settings_.minimap_conn; + return "minimap conn: " + std::to_string(settings_.minimap_conn); } // Entra en modo editor @@ -286,7 +284,7 @@ auto MapEditor::revert() -> std::string { // Refrescar visuales de la habitación room_->setBgColor(room_data_.bg_color); - Screen::get()->setBorderColor(stringToColor(room_data_.border_color)); + Screen::get()->setBorderColor(room_data_.border_color); // Restaurar el tilemap completo for (int i = 0; i < static_cast(room_data_.tile_map.size()); ++i) { @@ -435,7 +433,7 @@ void MapEditor::handleEvent(const SDL_Event& event) { // NOLINT(readability-fun tile_picker_.on_select = [this](int tile) { brush_tile_ = tile; }; - tile_picker_.open(room_->getTileSetFile(), current, stringToColor(room_data_.bg_color)); + tile_picker_.open(room_->getTileSetFile(), current, room_data_.bg_color); return; } @@ -692,7 +690,7 @@ void MapEditor::renderSelectionHighlight() { .y = enemy_rect.y - 1, .w = enemy_rect.w + 2, .h = enemy_rect.h + 2}; - game_surface->drawRectBorder(&border, stringToColor("bright_green")); + game_surface->drawRectBorder(&border, 9); } // Highlight del item seleccionado (persistente, color bright_green) @@ -703,13 +701,13 @@ void MapEditor::renderSelectionHighlight() { .y = item_rect.y - 1, .w = item_rect.w + 2, .h = item_rect.h + 2}; - game_surface->drawRectBorder(&border, stringToColor("bright_green")); + game_surface->drawRectBorder(&border, 9); } // Highlight del drag activo (temporal, color bright_white) if (drag_.target == DragTarget::NONE || !drag_.moved) { return; } - const Uint8 DRAG_COLOR = stringToColor("bright_white"); + const Uint8 DRAG_COLOR = 15; SDL_FRect highlight_rect{}; switch (drag_.target) { @@ -757,9 +755,9 @@ void MapEditor::renderEnemyBoundaries() { auto game_surface = Screen::get()->getRendererSurface(); if (!game_surface) { return; } - const Uint8 COLOR_BOUND1 = stringToColor("bright_cyan"); - const Uint8 COLOR_BOUND2 = stringToColor("bright_yellow"); - const Uint8 COLOR_ROUTE = stringToColor("bright_white"); + const Uint8 COLOR_BOUND1 = 11; + const Uint8 COLOR_BOUND2 = 13; + const Uint8 COLOR_ROUTE = 15; for (int i = 0; i < static_cast(room_data_.enemies.size()); ++i) { const auto& enemy = room_data_.enemies[i]; @@ -878,7 +876,7 @@ void MapEditor::updateStatusBarInfo() { // NOLINT(readability-function-cognitiv auto dot = anim.rfind('.'); if (dot != std::string::npos) { anim = anim.substr(0, dot); } - line2 = "enemy " + std::to_string(selected_enemy_) + ": " + anim + " " + e.color; + line2 = "enemy " + std::to_string(selected_enemy_) + ": " + anim + " c:" + std::to_string(e.color); line3 = "vx:" + std::to_string(static_cast(e.vx)) + " vy:" + std::to_string(static_cast(e.vy)); if (e.flip) { line3 += " flip"; } @@ -898,10 +896,10 @@ void MapEditor::updateStatusBarInfo() { // NOLINT(readability-function-cognitiv conv = "right"; } - line2 = "bg:" + room_data_.bg_color + " brd:" + room_data_.border_color + " conv:" + conv; + line2 = "bg:" + std::to_string(room_data_.bg_color) + " brd:" + std::to_string(room_data_.border_color) + " conv:" + conv; line3 = "u:" + conn(room_data_.upper_room) + " d:" + conn(room_data_.lower_room) + " l:" + conn(room_data_.left_room) + " r:" + conn(room_data_.right_room) + - " itm:" + room_data_.item_color1 + "/" + room_data_.item_color2; + " itm:" + std::to_string(room_data_.item_color1) + "/" + std::to_string(room_data_.item_color2); } // Línea 4: brush activo @@ -971,10 +969,10 @@ auto MapEditor::setEnemyProperty(const std::string& property, const std::string& } if (property == "COLOR") { - std::string color = toLower(value); + auto color = static_cast(safeStoi(value, 14)); // Intentar recrear el enemigo con el nuevo color - std::string old_color = enemy.color; + Uint8 old_color = enemy.color; enemy.color = color; try { auto* enemy_mgr = room_->getEnemyManager(); @@ -985,7 +983,7 @@ auto MapEditor::setEnemyProperty(const std::string& property, const std::string& } autosave(); - return "color: " + color; + return "color: " + std::to_string(color); } if (property == "VX") { @@ -1063,7 +1061,7 @@ auto MapEditor::addEnemy() -> std::string { new_enemy.y1 = static_cast(CENTER_Y); new_enemy.x2 = static_cast(CENTER_X + ROUTE_HALF); new_enemy.y2 = static_cast(CENTER_Y); - new_enemy.color = "white"; + new_enemy.color = 14; new_enemy.flip = true; new_enemy.frame = -1; @@ -1131,35 +1129,35 @@ auto MapEditor::setRoomProperty(const std::string& property, const std::string& std::string val = toLower(value); if (property == "BGCOLOR") { - val = colorToString(stringToColor(val)); // Normaliza a nombre canónico (acepta nombres e índices) - room_data_.bg_color = val; - room_->setBgColor(val); + auto color = static_cast(safeStoi(val, 0)); + room_data_.bg_color = color; + room_->setBgColor(color); autosave(); - return "bgcolor: " + val; + return "bgcolor: " + std::to_string(color); } if (property == "BORDER") { - val = colorToString(stringToColor(val)); - room_data_.border_color = val; - Screen::get()->setBorderColor(stringToColor(val)); + auto color = static_cast(safeStoi(val, 0)); + room_data_.border_color = color; + Screen::get()->setBorderColor(color); autosave(); - return "border: " + val; + return "border: " + std::to_string(color); } if (property == "ITEMCOLOR1") { - val = colorToString(stringToColor(val)); - room_data_.item_color1 = val; + auto color = static_cast(safeStoi(val, 0)); + room_data_.item_color1 = color; room_->setItemColors(room_data_.item_color1, room_data_.item_color2); autosave(); - return "itemcolor1: " + val; + return "itemcolor1: " + std::to_string(color); } if (property == "ITEMCOLOR2") { - val = colorToString(stringToColor(val)); - room_data_.item_color2 = val; + auto color = static_cast(safeStoi(val, 0)); + room_data_.item_color2 = color; room_->setItemColors(room_data_.item_color1, room_data_.item_color2); autosave(); - return "itemcolor2: " + val; + return "itemcolor2: " + std::to_string(color); } if (property == "CONVEYOR") { @@ -1320,11 +1318,11 @@ auto MapEditor::createNewRoom(const std::string& direction) -> std::string { // // Crear Room::Data por defecto con conexión recíproca Room::Data new_room; new_room.number = std::string(name_buf).substr(0, std::string(name_buf).find('.')); - new_room.bg_color = "black"; - new_room.border_color = "magenta"; + new_room.bg_color = 0; + new_room.border_color = 6; new_room.tile_set_file = "standard.gif"; - new_room.item_color1 = "bright_cyan"; - new_room.item_color2 = "yellow"; + new_room.item_color1 = 11; + new_room.item_color2 = 12; new_room.upper_room = "0"; new_room.lower_room = "0"; new_room.left_room = "0"; @@ -1531,9 +1529,7 @@ void MapEditor::openTilePicker(const std::string& tileset_name, int current_tile autosave(); }; // Pasar color de fondo de la habitación + color de sustitución del item - int bg = stringToColor(room_data_.bg_color); - int item_color = stringToColor(room_data_.item_color1); - tile_picker_.open(tileset_name, current_tile, bg, 1, item_color); + tile_picker_.open(tileset_name, current_tile, room_data_.bg_color, 1, room_data_.item_color1); } // Crea un nuevo item con valores por defecto, centrado en la habitación @@ -1546,8 +1542,8 @@ auto MapEditor::addItem() -> std::string { new_item.x = PlayArea::CENTER_X; new_item.y = PlayArea::CENTER_Y; new_item.counter = 0; - new_item.color1 = stringToColor(room_data_.item_color1); - new_item.color2 = stringToColor(room_data_.item_color2); + new_item.color1 = room_data_.item_color1; + new_item.color2 = room_data_.item_color2; room_data_.items.push_back(new_item); room_->getItemManager()->addItem(std::make_shared(new_item)); @@ -1600,7 +1596,7 @@ auto MapEditor::duplicateItem() -> std::string { // Elige un color de grid que contraste con el fondo // Empieza con bright_black (1), si coincide con el bg en la paleta activa, sube índices static auto pickGridColor(Uint8 bg, const std::shared_ptr& surface) -> Uint8 { - auto grid = static_cast(PaletteColor::BRIGHT_BLACK); + Uint8 grid = 1; Uint32 bg_argb = surface->getPaletteColor(bg); // Si bright_black es igual al bg, buscar el siguiente color distinto @@ -1616,7 +1612,7 @@ void MapEditor::renderGrid() const { auto game_surface = Screen::get()->getRendererSurface(); if (!game_surface) { return; } - const Uint8 COLOR = pickGridColor(stringToColor(room_data_.bg_color), game_surface); + const Uint8 COLOR = pickGridColor(room_data_.bg_color, game_surface); // Líneas verticales (cada 8 pixels) for (int x = Tile::SIZE; x < PlayArea::WIDTH; x += Tile::SIZE) { diff --git a/source/game/editor/map_editor.hpp b/source/game/editor/map_editor.hpp index 31befa6..74f9df5 100644 --- a/source/game/editor/map_editor.hpp +++ b/source/game/editor/map_editor.hpp @@ -74,8 +74,8 @@ class MapEditor { struct Settings { bool grid{false}; bool show_render_info{false}; - std::string minimap_bg{"blue"}; - std::string minimap_conn{"white"}; + Uint8 minimap_bg{2}; + Uint8 minimap_conn{14}; }; Settings settings_; void loadSettings(); diff --git a/source/game/editor/mini_map.cpp b/source/game/editor/mini_map.cpp index aaae8da..6ccebea 100644 --- a/source/game/editor/mini_map.cpp +++ b/source/game/editor/mini_map.cpp @@ -15,7 +15,7 @@ #include "core/resources/resource_cache.hpp" // Para Resource::Cache #include "game/gameplay/room.hpp" // Para Room::Data #include "utils/defines.hpp" // Para Tile::SIZE, PlayArea -#include "utils/utils.hpp" // Para stringToColor +#include "utils/utils.hpp" // Constructor: construye todo el minimapa MiniMap::MiniMap(Uint8 bg_color, Uint8 conn_color) @@ -129,6 +129,7 @@ void MiniMap::layoutRooms() { for (const auto& [neighbor_name, dx, dy] : neighbors) { if (neighbor_name == "0" || neighbor_name.empty()) { continue; } if (visited.contains(neighbor_name)) { continue; } + if (!room_map.contains(neighbor_name)) { continue; } // Room no existe en cache GridPos neighbor_pos = {.x = pos.x + dx, .y = pos.y + dy}; auto nkey = std::make_pair(neighbor_pos.x, neighbor_pos.y); @@ -169,14 +170,19 @@ void MiniMap::buildRoomSurfaces() { // Genera la mini-surface de una room: 1 pixel por tile, color predominante auto MiniMap::getRoomMiniSurface(const std::string& room_name) -> std::shared_ptr { - auto room_data = Resource::Cache::get()->getRoom(room_name); + std::shared_ptr room_data; + try { + room_data = Resource::Cache::get()->getRoom(room_name); + } catch (...) { + return nullptr; // Room no existe en cache + } if (!room_data) { return nullptr; } auto surface = std::make_shared(ROOM_W, ROOM_H); auto prev = Screen::get()->getRendererSurface(); Screen::get()->setRendererSurface(surface); - surface->clear(stringToColor(room_data->bg_color)); + surface->clear(room_data->bg_color); const auto& tile_map = room_data->tile_map; for (int y = 0; y < ROOM_H; ++y) { @@ -318,7 +324,7 @@ void MiniMap::render(const std::string& current_room) { auto cur_h = static_cast(CELL_H + 2); if (cur_x >= 0 && cur_y >= 0 && cur_x + cur_w <= PlayArea::WIDTH && cur_y + cur_h <= PlayArea::HEIGHT) { SDL_FRect highlight = {.x = cur_x, .y = cur_y, .w = cur_w, .h = cur_h}; - game_surface->drawRectBorder(&highlight, stringToColor("bright_white")); + game_surface->drawRectBorder(&highlight, 15); } } } diff --git a/source/game/editor/room_saver.cpp b/source/game/editor/room_saver.cpp index 80a51f3..ff08902 100644 --- a/source/game/editor/room_saver.cpp +++ b/source/game/editor/room_saver.cpp @@ -43,8 +43,8 @@ auto RoomSaver::buildYAML(const fkyaml::node& original_yaml, const Room::Data& r // --- Sección room --- out << "room:\n"; - out << " bgColor: " << room_data.bg_color << "\n"; - out << " border: " << room_data.border_color << "\n"; + out << " bgColor: " << static_cast(room_data.bg_color) << "\n"; + out << " border: " << static_cast(room_data.border_color) << "\n"; out << " tileSetFile: " << room_data.tile_set_file << "\n"; // Conexiones @@ -59,31 +59,29 @@ auto RoomSaver::buildYAML(const fkyaml::node& original_yaml, const Room::Data& r // Colores de items out << "\n"; out << " # Colores de los objetos\n"; - out << " itemColor1: " << (room_data.item_color1.empty() ? "yellow" : room_data.item_color1) << "\n"; - out << " itemColor2: " << (room_data.item_color2.empty() ? "magenta" : room_data.item_color2) << "\n"; + out << " itemColor1: " << static_cast(room_data.item_color1) << "\n"; + out << " itemColor2: " << static_cast(room_data.item_color2) << "\n"; // Conveyor belt out << "\n"; out << " # Dirección de la cinta transportadora: left, none, right\n"; out << " conveyorBelt: " << conveyorBeltToString(room_data.conveyor_belt_direction) << "\n"; - // --- Tilemap (16 filas × 32 columnas, formato flow) --- + // --- Tilemap (MAP_HEIGHT filas × MAP_WIDTH columnas, formato flow) --- out << "\n"; - out << "# Tilemap: 16 filas × 32 columnas (256×192 píxeles @ 8px/tile)\n"; + out << "# Tilemap: " << Map::HEIGHT << " filas x " << Map::WIDTH << " columnas @ " << Tile::SIZE << "px/tile\n"; out << "# Índices de tiles (-1 = vacío)\n"; out << "tilemap:\n"; - constexpr int MAP_WIDTH = 32; - constexpr int MAP_HEIGHT = 16; - for (int row = 0; row < MAP_HEIGHT; ++row) { + for (int row = 0; row < Map::HEIGHT; ++row) { out << " - ["; - for (int col = 0; col < MAP_WIDTH; ++col) { - int index = (row * MAP_WIDTH) + col; + for (int col = 0; col < Map::WIDTH; ++col) { + int index = (row * Map::WIDTH) + col; if (index < static_cast(room_data.tile_map.size())) { out << room_data.tile_map[index]; } else { out << -1; } - if (col < MAP_WIDTH - 1) { out << ", "; } + if (col < Map::WIDTH - 1) { out << ", "; } } out << "]\n"; } @@ -110,8 +108,8 @@ auto RoomSaver::buildYAML(const fkyaml::node& original_yaml, const Room::Data& r out << " position1: {x: " << b1_x << ", y: " << b1_y << "}\n"; out << " position2: {x: " << b2_x << ", y: " << b2_y << "}\n"; - if (!enemy.color.empty() && enemy.color != "white") { - out << " color: " << enemy.color << "\n"; + if (enemy.color != 14) { + out << " color: " << static_cast(enemy.color) << "\n"; } if (enemy.flip) { out << " flip: true\n"; } if (enemy.mirror) { out << " mirror: true\n"; } diff --git a/source/game/editor/tile_picker.cpp b/source/game/editor/tile_picker.cpp index 5d2df2e..9ff740c 100644 --- a/source/game/editor/tile_picker.cpp +++ b/source/game/editor/tile_picker.cpp @@ -8,7 +8,7 @@ #include "core/rendering/surface.hpp" // Para Surface #include "core/resources/resource_cache.hpp" // Para Resource::Cache #include "utils/defines.hpp" // Para Tile::SIZE, PlayArea -#include "utils/utils.hpp" // Para stringToColor +#include "utils/utils.hpp" // Margen del borde alrededor del tileset (en pixels) static constexpr int BORDER_PAD = 3; @@ -51,14 +51,14 @@ void TilePicker::open(const std::string& tileset_name, int current_tile, int bg_ auto prev = Screen::get()->getRendererSurface(); Screen::get()->setRendererSurface(frame_surface_); - Uint8 fill_color = (bg_color >= 0) ? static_cast(bg_color) : stringToColor("black"); + Uint8 fill_color = (bg_color >= 0) ? static_cast(bg_color) : 0; frame_surface_->clear(fill_color); // Borde doble SDL_FRect outer = {.x = 0, .y = 0, .w = static_cast(frame_w), .h = static_cast(frame_h)}; - frame_surface_->drawRectBorder(&outer, stringToColor("bright_white")); + frame_surface_->drawRectBorder(&outer, 15); SDL_FRect inner = {.x = 1, .y = 1, .w = static_cast(frame_w - 2), .h = static_cast(frame_h - 2)}; - frame_surface_->drawRectBorder(&inner, stringToColor("white")); + frame_surface_->drawRectBorder(&inner, 14); // Renderizar cada tile individualmente constexpr auto TS = static_cast(Tile::SIZE); @@ -153,7 +153,7 @@ void TilePicker::render() { float hy = tileset_screen_y + static_cast(row * out_cell); if (hy >= 0 && hy + TS <= visible_height_) { SDL_FRect highlight = {.x = hx, .y = hy, .w = TS, .h = TS}; - game_surface->drawRectBorder(&highlight, stringToColor("bright_white")); + game_surface->drawRectBorder(&highlight, 15); } } @@ -165,7 +165,7 @@ void TilePicker::render() { float cy = tileset_screen_y + static_cast(row * out_cell); if (cy >= 0 && cy + TS <= visible_height_) { SDL_FRect cur_rect = {.x = cx, .y = cy, .w = TS, .h = TS}; - game_surface->drawRectBorder(&cur_rect, stringToColor("bright_green")); + game_surface->drawRectBorder(&cur_rect, 9); } } } diff --git a/source/game/entities/enemy.cpp b/source/game/entities/enemy.cpp index cf69499..c5488af 100644 --- a/source/game/entities/enemy.cpp +++ b/source/game/entities/enemy.cpp @@ -6,12 +6,11 @@ #include "core/rendering/sprite/animated_sprite.hpp" // Para SAnimatedSprite #include "core/resources/resource_cache.hpp" // Para Resource -#include "utils/utils.hpp" // Para stringToColor +#include "utils/utils.hpp" // Constructor Enemy::Enemy(const Data& enemy) : sprite_(std::make_shared(Resource::Cache::get()->getAnimationData(enemy.animation_path))), - color_string_(enemy.color), x1_(enemy.x1), x2_(enemy.x2), y1_(enemy.y1), @@ -30,7 +29,7 @@ Enemy::Enemy(const Data& enemy) collider_ = getRect(); - color_ = stringToColor(color_string_); + color_ = enemy.color; // Coloca un frame al azar o el designado sprite_->setCurrentAnimationFrame((enemy.frame == -1) ? (rand() % sprite_->getCurrentAnimationSize()) : enemy.frame); diff --git a/source/game/entities/enemy.hpp b/source/game/entities/enemy.hpp index 8a9a5a1..6aa22a4 100644 --- a/source/game/entities/enemy.hpp +++ b/source/game/entities/enemy.hpp @@ -21,7 +21,7 @@ class Enemy { bool flip{false}; // Indica si el enemigo hace flip al terminar su ruta bool mirror{false}; // Indica si el enemigo está volteado verticalmente int frame{0}; // Frame inicial para la animación del enemigo - std::string color; // Color del enemigo + Uint8 color{14}; // Color del enemigo (default: white=14) }; explicit Enemy(const Data& enemy); // Constructor @@ -44,7 +44,6 @@ class Enemy { // Variables Uint8 color_{0}; // Color del enemigo - std::string color_string_; // Color del enemigo en formato texto int x1_{0}; // Limite izquierdo de la ruta en el eje X int x2_{0}; // Limite derecho de la ruta en el eje X int y1_{0}; // Limite superior de la ruta en el eje Y diff --git a/source/game/entities/player.cpp b/source/game/entities/player.cpp index 2dba90e..3486131 100644 --- a/source/game/entities/player.cpp +++ b/source/game/entities/player.cpp @@ -35,8 +35,8 @@ void Player::render() { sprite_->render(1, color_); #ifdef _DEBUG if (Debug::get()->isEnabled()) { - Screen::get()->getRendererSurface()->putPixel(under_right_foot_.x, under_right_foot_.y, static_cast(PaletteColor::GREEN)); - Screen::get()->getRendererSurface()->putPixel(under_left_foot_.x, under_left_foot_.y, static_cast(PaletteColor::GREEN)); + Screen::get()->getRendererSurface()->putPixel(under_right_foot_.x, under_right_foot_.y, 8); + Screen::get()->getRendererSurface()->putPixel(under_left_foot_.x, under_left_foot_.y, 8); } #endif } @@ -566,14 +566,14 @@ void Player::setColor(Uint8 color) { if (Options::game.player_color >= 0) { color_ = static_cast(Options::game.player_color); } else { - color_ = static_cast(PaletteColor::WHITE); + color_ = 14; } // Si el color coincide con el fondo de la habitación, usar fallback if (room_ != nullptr && color_ == room_->getBGColor()) { - color_ = (room_->getBGColor() != static_cast(PaletteColor::WHITE)) - ? static_cast(PaletteColor::WHITE) - : static_cast(PaletteColor::BRIGHT_BLACK); + color_ = (room_->getBGColor() != 14) + ? 14 + : 1; } } diff --git a/source/game/gameplay/collision_map.hpp b/source/game/gameplay/collision_map.hpp index b4a6466..e867409 100644 --- a/source/game/gameplay/collision_map.hpp +++ b/source/game/gameplay/collision_map.hpp @@ -4,6 +4,7 @@ #include // Para vector +#include "utils/defines.hpp" // Para Tile::SIZE, Map::WIDTH, Map::HEIGHT #include "utils/utils.hpp" // Para LineHorizontal, LineDiagonal, LineVertical /** @@ -83,9 +84,9 @@ class CollisionMap { private: // --- Constantes --- - static constexpr int TILE_SIZE = 8; // Tamaño del tile en pixels - static constexpr int MAP_WIDTH = 32; // Ancho del mapa en tiles - static constexpr int MAP_HEIGHT = 16; // Alto del mapa en tiles + static constexpr int TILE_SIZE = ::Tile::SIZE; // Tamaño del tile en pixels + static constexpr int MAP_WIDTH = ::Map::WIDTH; // Ancho del mapa en tiles + static constexpr int MAP_HEIGHT = ::Map::HEIGHT; // Alto del mapa en tiles // --- Datos de la habitación --- std::vector tile_map_; // Índices de tiles de la habitación diff --git a/source/game/gameplay/room.cpp b/source/game/gameplay/room.cpp index 62c3cf5..702c41b 100644 --- a/source/game/gameplay/room.cpp +++ b/source/game/gameplay/room.cpp @@ -14,7 +14,7 @@ #include "game/gameplay/scoreboard.hpp" // Para Scoreboard::Data #include "game/gameplay/tilemap_renderer.hpp" // Para TilemapRenderer #include "utils/defines.hpp" // Para TILE_SIZE -#include "utils/utils.hpp" // Para stringToColor +#include "utils/utils.hpp" // Constructor Room::Room(const std::string& room_path, std::shared_ptr data) @@ -35,7 +35,7 @@ Room::Room(const std::string& room_path, std::shared_ptr data) tilemap_renderer_ = std::make_unique(tile_map_, tile_set_width_, surface_, bg_color_, conveyor_belt_direction_); tilemap_renderer_->initialize(collision_map_.get()); // Inicializa (crea map_surface, pinta tiles, busca animados) - Screen::get()->setBorderColor(stringToColor(border_color_)); // Establece el color del borde + Screen::get()->setBorderColor(border_color_); // Establece el color del borde } // Destructor @@ -46,8 +46,8 @@ void Room::initializeRoom(const Data& room) { number_ = room.number; bg_color_ = room.bg_color; border_color_ = room.border_color; - item_color1_ = room.item_color1.empty() ? "yellow" : room.item_color1; - item_color2_ = room.item_color2.empty() ? "magenta" : room.item_color2; + item_color1_ = room.item_color1; + item_color2_ = room.item_color2; upper_room_ = room.upper_room; lower_room_ = room.lower_room; left_room_ = room.left_room; @@ -71,8 +71,8 @@ void Room::initializeRoom(const Data& room) { if (!ItemTracker::get()->hasBeenPicked(room.number, ITEM_POS)) { // Crear una copia local de los datos del item Item::Data item_copy = item; - item_copy.color1 = stringToColor(item_color1_); - item_copy.color2 = stringToColor(item_color2_); + item_copy.color1 = item_color1_; + item_copy.color2 = item_color2_; // Crear el objeto Item usando la copia modificada item_manager_->addItem(std::make_shared(item_copy)); @@ -142,21 +142,19 @@ void Room::setTile(int index, int tile_value) { } // Cambia color de fondo y redibuja el mapa (para editor) -void Room::setBgColor(const std::string& color) { +void Room::setBgColor(Uint8 color) { bg_color_ = color; tilemap_renderer_->setBgColor(color); tilemap_renderer_->redrawMap(collision_map_.get()); } // Cambia colores de items en vivo (para editor) -void Room::setItemColors(const std::string& color1, const std::string& color2) { +void Room::setItemColors(Uint8 color1, Uint8 color2) { item_color1_ = color1; item_color2_ = color2; - Uint8 c1 = stringToColor(color1); - Uint8 c2 = stringToColor(color2); auto* item_mgr = item_manager_.get(); for (int i = 0; i < item_mgr->getCount(); ++i) { - item_mgr->getItem(i)->setColors(c1, c2); + item_mgr->getItem(i)->setColors(color1, color2); } } #endif diff --git a/source/game/gameplay/room.hpp b/source/game/gameplay/room.hpp index a14fcd2..23123c7 100644 --- a/source/game/gameplay/room.hpp +++ b/source/game/gameplay/room.hpp @@ -9,6 +9,7 @@ #include "game/entities/enemy.hpp" // Para EnemyData #include "game/entities/item.hpp" // Para ItemData #include "game/gameplay/scoreboard.hpp" // Para Scoreboard::Data +#include "utils/defines.hpp" // Para Tile::SIZE, Map::WIDTH, Map::HEIGHT #include "utils/utils.hpp" // Para LineHorizontal, LineDiagonal, LineVertical class Sprite; // lines 12-12 class Surface; // lines 13-13 @@ -40,10 +41,10 @@ class Room { struct Data { std::string number; // Numero de la habitación - std::string bg_color; // Color de fondo de la habitación - std::string border_color; // Color del borde de la pantalla - std::string item_color1; // Color 1 para los items de la habitación - std::string item_color2; // Color 2 para los items de la habitación + Uint8 bg_color{0}; // Color de fondo de la habitación + Uint8 border_color{0}; // Color del borde de la pantalla + Uint8 item_color1{12}; // Color 1 para los items de la habitación + Uint8 item_color2{6}; // Color 2 para los items de la habitación std::string upper_room; // Identificador de la habitación que se encuentra arriba std::string lower_room; // Identificador de la habitación que se encuentra abajo std::string left_room; // Identificador de la habitación que se encuentra a la izquierda @@ -61,8 +62,8 @@ class Room { // --- Funciones --- [[nodiscard]] auto getNumber() const -> const std::string& { return number_; } // Devuelve el numero de la habitación - [[nodiscard]] auto getBGColor() const -> Uint8 { return stringToColor(bg_color_); } // Devuelve el color de la habitación - [[nodiscard]] auto getBorderColor() const -> Uint8 { return stringToColor(border_color_); } // Devuelve el color del borde + [[nodiscard]] auto getBGColor() const -> Uint8 { return bg_color_; } // Devuelve el color de la habitación + [[nodiscard]] auto getBorderColor() const -> Uint8 { return border_color_; } // Devuelve el color del borde void renderMap(); // Dibuja el mapa en pantalla void renderEnemies(); // Dibuja los enemigos en pantalla void renderItems(); // Dibuja los objetos en pantalla @@ -72,8 +73,8 @@ class Room { void resetEnemyPositions(const std::vector& enemy_data); // Resetea enemigos a posiciones iniciales auto getEnemyManager() -> EnemyManager* { return enemy_manager_.get(); } // Acceso al gestor de enemigos (para editor) auto getItemManager() -> ItemManager* { return item_manager_.get(); } // Acceso al gestor de items (para editor) - void setBgColor(const std::string& color); // Cambia color de fondo y redibuja (para editor) - void setItemColors(const std::string& color1, const std::string& color2); // Cambia colores de items (para editor) + void setBgColor(Uint8 color); // Cambia color de fondo y redibuja (para editor) + void setItemColors(Uint8 color1, Uint8 color2); // Cambia colores de items (para editor) void setTile(int index, int tile_value); // Cambia un tile y redibuja (para editor) [[nodiscard]] auto getTileSetFile() const -> const std::string& { return tile_set_file_; } [[nodiscard]] auto getTileSetWidth() const -> int { return tile_set_width_; } @@ -106,9 +107,9 @@ class Room { private: // Constantes - static constexpr int TILE_SIZE = 8; // Ancho del tile en pixels - static constexpr int MAP_WIDTH = 32; // Ancho del mapa en tiles - static constexpr int MAP_HEIGHT = 16; // Alto del mapa en tiles + static constexpr int TILE_SIZE = ::Tile::SIZE; // Ancho del tile en pixels + static constexpr int MAP_WIDTH = ::Map::WIDTH; // Ancho del mapa en tiles + static constexpr int MAP_HEIGHT = ::Map::HEIGHT; // Alto del mapa en tiles // Objetos y punteros std::unique_ptr enemy_manager_; // Gestor de enemigos de la habitación @@ -120,10 +121,10 @@ class Room { // --- Variables --- std::string number_; // Numero de la habitación - std::string bg_color_; // Color de fondo de la habitación - std::string border_color_; // Color del borde de la pantalla - std::string item_color1_; // Color 1 para los items de la habitación - std::string item_color2_; // Color 2 para los items de la habitación + Uint8 bg_color_{0}; // Color de fondo de la habitación + Uint8 border_color_{0}; // Color del borde de la pantalla + Uint8 item_color1_{12}; // Color 1 para los items de la habitación + Uint8 item_color2_{6}; // Color 2 para los items de la habitación std::string upper_room_; // Identificador de la habitación que se encuentra arriba std::string lower_room_; // Identificador de la habitación que se encuentra abajp std::string left_room_; // Identificador de la habitación que se encuentra a la izquierda diff --git a/source/game/gameplay/room_loader.cpp b/source/game/gameplay/room_loader.cpp index 0af8183..223f963 100644 --- a/source/game/gameplay/room_loader.cpp +++ b/source/game/gameplay/room_loader.cpp @@ -6,7 +6,7 @@ #include "core/resources/resource_helper.hpp" // Para Resource::Helper #include "external/fkyaml_node.hpp" // Para fkyaml::node #include "utils/defines.hpp" // Para Tile::SIZE -#include "utils/utils.hpp" // Para stringToColor +#include "utils/utils.hpp" // Convierte room connection de YAML a formato interno auto RoomLoader::convertRoomConnection(const std::string& value) -> std::string { // NOLINT(readability-convert-member-functions-to-static) @@ -20,11 +20,11 @@ auto RoomLoader::convertRoomConnection(const std::string& value) -> std::string return value + ".yaml"; } -// Lee un nodo de color tolerando tanto string ("red", "bright_blue") como entero (índice de paleta) -static auto readColorNode(const fkyaml::node& node) -> std::string { - if (node.is_string()) { return node.get_value(); } - if (node.is_integer()) { return std::to_string(node.get_value()); } - return "black"; +// Lee un nodo de color como Uint8 (acepta entero directo o string numérico) +static auto readColorNode(const fkyaml::node& node) -> Uint8 { + if (node.is_integer()) { return static_cast(node.get_value()); } + if (node.is_string()) { return static_cast(safeStoi(node.get_value(), 0)); } + return 0; } // Convierte string de autoSurface a int @@ -47,7 +47,7 @@ auto RoomLoader::convertAutoSurface(const fkyaml::node& node) -> int { // NOLIN // Convierte un tilemap 2D a vector 1D flat auto RoomLoader::flattenTilemap(const std::vector>& tilemap_2d) -> std::vector { // NOLINT(readability-convert-member-functions-to-static, readability-named-parameter) std::vector tilemap_flat; - tilemap_flat.reserve(512); // 16 rows × 32 cols + tilemap_flat.reserve(Map::WIDTH * Map::HEIGHT); for (const auto& row : tilemap_2d) { for (int tile : row) { @@ -86,13 +86,13 @@ void RoomLoader::parseRoomConfig(const fkyaml::node& yaml, Room::Data& room, con } // Item colors - room.item_color1 = room_node.contains("itemColor1") - ? readColorNode(room_node["itemColor1"]) - : "yellow"; + if (room_node.contains("itemColor1")) { + room.item_color1 = readColorNode(room_node["itemColor1"]); + } - room.item_color2 = room_node.contains("itemColor2") - ? readColorNode(room_node["itemColor2"]) - : "magenta"; + if (room_node.contains("itemColor2")) { + room.item_color2 = readColorNode(room_node["itemColor2"]); + } // Dirección de la cinta transportadora (left/none/right) room.conveyor_belt_direction = room_node.contains("conveyorBelt") @@ -130,11 +130,11 @@ void RoomLoader::parseTilemap(const fkyaml::node& yaml, Room::Data& room, const // Read 2D array std::vector> tilemap_2d; - tilemap_2d.reserve(16); + tilemap_2d.reserve(Map::HEIGHT); for (const auto& row_node : tilemap_node) { std::vector row; - row.reserve(32); + row.reserve(Map::WIDTH); for (const auto& tile_node : row_node) { row.push_back(tile_node.get_value()); @@ -225,9 +225,9 @@ auto RoomLoader::parseEnemyData(const fkyaml::node& enemy_node) -> Enemy::Data { } // Color - enemy.color = enemy_node.contains("color") - ? enemy_node["color"].get_value_or("white") - : "white"; + if (enemy_node.contains("color")) { + enemy.color = readColorNode(enemy_node["color"]); + } // Optional fields enemy.flip = enemy_node.contains("flip") @@ -293,8 +293,8 @@ auto RoomLoader::parseItemData(const fkyaml::node& item_node, const Room::Data& : 0; // Colors (assigned from room defaults) - item.color1 = stringToColor(room.item_color1); - item.color2 = stringToColor(room.item_color2); + item.color1 = room.item_color1; + item.color2 = room.item_color2; return item; } diff --git a/source/game/gameplay/scoreboard.cpp b/source/game/gameplay/scoreboard.cpp index 47bdd0d..f60b2a7 100644 --- a/source/game/gameplay/scoreboard.cpp +++ b/source/game/gameplay/scoreboard.cpp @@ -13,7 +13,7 @@ #include "game/entities/player.hpp" // Para Player::skinToAnimationPath #include "game/options.hpp" // Para Options, options, Cheat, OptionsGame #include "utils/defines.hpp" // Para BLOCK -#include "utils/utils.hpp" // Para stringToColor +#include "utils/utils.hpp" // Constructor Scoreboard::Scoreboard(std::shared_ptr data) @@ -32,13 +32,10 @@ Scoreboard::Scoreboard(std::shared_ptr data) surface_dest_ = {.x = 0, .y = Options::game.height - SURFACE_HEIGHT, .w = SURFACE_WIDTH, .h = SURFACE_HEIGHT}; // Inicializa el color de items - items_color_ = stringToColor("white"); + items_color_ = 14; // Inicializa el vector de colores - const std::vector COLORS = {"blue", "magenta", "green", "cyan", "yellow", "white", "bright_blue", "bright_magenta", "bright_green", "bright_cyan", "bright_yellow", "bright_white"}; - for (const auto& color : COLORS) { - color_.push_back(stringToColor(color)); - } + color_ = {2, 6, 8, 10, 12, 14, 3, 7, 9, 11, 13, 15}; } // Pinta el objeto en pantalla @@ -118,9 +115,9 @@ void Scoreboard::updateItemsColor(float delta_time) { // Alternar color cada ITEMS_COLOR_BLINK_DURATION if (items_color_timer_ < ITEMS_COLOR_BLINK_DURATION) { - items_color_ = stringToColor("white"); + items_color_ = 14; } else { - items_color_ = stringToColor("magenta"); + items_color_ = 6; } } @@ -136,7 +133,7 @@ void Scoreboard::fillTexture() { Screen::get()->setRendererSurface(surface_); // Limpia la textura - surface_->clear(stringToColor("black")); + surface_->clear(0); // Dibuja las vidas const int WALK_FRAMES = player_sprite_->getCurrentAnimationSize(); @@ -164,11 +161,11 @@ void Scoreboard::fillTexture() { text->writeColored(ITEMS_LABEL_X, LINE1_Y, Locale::get()->get("scoreboard.items"), data_->color); // NOLINT(readability-static-accessed-through-instance) text->writeColored(ITEMS_VALUE_X, LINE1_Y, ITEMS_TEXT, items_color_); text->writeColored(TIME_LABEL_X, LINE1_Y, Locale::get()->get("scoreboard.time"), data_->color); // NOLINT(readability-static-accessed-through-instance) - text->writeColored(TIME_VALUE_X, LINE1_Y, TIME_TEXT, stringToColor("white")); + text->writeColored(TIME_VALUE_X, LINE1_Y, TIME_TEXT, 14); const std::string ROOMS_TEXT = std::to_string(data_->rooms / 100) + std::to_string((data_->rooms % 100) / 10) + std::to_string(data_->rooms % 10); - text->writeColored(ROOMS_LABEL_X, LINE2_Y, Locale::get()->get("scoreboard.rooms"), stringToColor("white")); // NOLINT(readability-static-accessed-through-instance) - text->writeColored(ROOMS_VALUE_X, LINE2_Y, ROOMS_TEXT, stringToColor("white")); + text->writeColored(ROOMS_LABEL_X, LINE2_Y, Locale::get()->get("scoreboard.rooms"), 14); // NOLINT(readability-static-accessed-through-instance) + text->writeColored(ROOMS_VALUE_X, LINE2_Y, ROOMS_TEXT, 14); // Indicadores de trucos activos (fuente 8bithud) auto cheat_text = Resource::Cache::get()->getText("8bithud"); diff --git a/source/game/gameplay/tilemap_renderer.cpp b/source/game/gameplay/tilemap_renderer.cpp index 1b21658..7a284fb 100644 --- a/source/game/gameplay/tilemap_renderer.cpp +++ b/source/game/gameplay/tilemap_renderer.cpp @@ -10,11 +10,11 @@ #include "utils/utils.hpp" // Constructor -TilemapRenderer::TilemapRenderer(std::vector tile_map, int tile_set_width, std::shared_ptr tileset_surface, std::string bg_color, int conveyor_belt_direction) +TilemapRenderer::TilemapRenderer(std::vector tile_map, int tile_set_width, std::shared_ptr tileset_surface, Uint8 bg_color, int conveyor_belt_direction) : tile_map_(std::move(tile_map)), tile_set_width_(tile_set_width), tileset_surface_(std::move(tileset_surface)), - bg_color_(std::move(bg_color)), + bg_color_(bg_color), conveyor_belt_direction_(conveyor_belt_direction) { // Crear la surface del mapa map_surface_ = std::make_shared(PlayArea::WIDTH, PlayArea::HEIGHT); @@ -62,37 +62,37 @@ static void renderDebugCollisionSurfaces(const CollisionMap* collision_map) { // BottomSurfaces for (auto l : collision_map->getBottomFloors()) { - surface->drawLine(l.x1, l.y, l.x2, l.y, static_cast(PaletteColor::BLUE)); + surface->drawLine(l.x1, l.y, l.x2, l.y, 2); } // TopSurfaces for (auto l : collision_map->getTopFloors()) { - surface->drawLine(l.x1, l.y, l.x2, l.y, static_cast(PaletteColor::RED)); + surface->drawLine(l.x1, l.y, l.x2, l.y, 4); } // LeftSurfaces for (auto l : collision_map->getLeftWalls()) { - surface->drawLine(l.x, l.y1, l.x, l.y2, static_cast(PaletteColor::GREEN)); + surface->drawLine(l.x, l.y1, l.x, l.y2, 8); } // RightSurfaces for (auto l : collision_map->getRightWalls()) { - surface->drawLine(l.x, l.y1, l.x, l.y2, static_cast(PaletteColor::MAGENTA)); + surface->drawLine(l.x, l.y1, l.x, l.y2, 6); } // LeftSlopes for (auto l : collision_map->getLeftSlopes()) { - surface->drawLine(l.x1, l.y1, l.x2, l.y2, static_cast(PaletteColor::CYAN)); + surface->drawLine(l.x1, l.y1, l.x2, l.y2, 10); } // RightSlopes for (auto l : collision_map->getRightSlopes()) { - surface->drawLine(l.x1, l.y1, l.x2, l.y2, static_cast(PaletteColor::YELLOW)); + surface->drawLine(l.x1, l.y1, l.x2, l.y2, 12); } // AutoSurfaces (Conveyor Belts) for (auto l : collision_map->getConveyorBeltFloors()) { - surface->drawLine(l.x1, l.y, l.x2, l.y, static_cast(PaletteColor::WHITE)); + surface->drawLine(l.x1, l.y, l.x2, l.y, 14); } } @@ -115,7 +115,7 @@ void TilemapRenderer::setTile(int index, int tile_value) { // Borrar la celda con el color de fondo SDL_FRect cell = {.x = static_cast(col * TILE_SIZE), .y = static_cast(row * TILE_SIZE), .w = static_cast(TILE_SIZE), .h = static_cast(TILE_SIZE)}; - map_surface_->fillRect(&cell, stringToColor(bg_color_)); + map_surface_->fillRect(&cell, bg_color_); // Dibujar el nuevo tile (si no es vacío ni animado) if (tile_value > -1) { @@ -135,10 +135,9 @@ void TilemapRenderer::setTile(int index, int tile_value) { // Pinta el mapa estático y debug lines void TilemapRenderer::fillMapTexture(const CollisionMap* collision_map) { // NOLINT(readability-convert-member-functions-to-static) - const Uint8 COLOR = stringToColor(bg_color_); auto previous_renderer = Screen::get()->getRendererSurface(); Screen::get()->setRendererSurface(map_surface_); - map_surface_->clear(COLOR); + map_surface_->clear(bg_color_); // Los tileSetFiles son de 20x20 tiles. El primer tile es el 0. Cuentan hacia la derecha y hacia abajo diff --git a/source/game/gameplay/tilemap_renderer.hpp b/source/game/gameplay/tilemap_renderer.hpp index 2f88a7d..d762162 100644 --- a/source/game/gameplay/tilemap_renderer.hpp +++ b/source/game/gameplay/tilemap_renderer.hpp @@ -31,7 +31,7 @@ class TilemapRenderer { * @param bg_color Color de fondo de la habitación (como string) * @param conveyor_belt_direction Dirección de las cintas transportadoras (-1, 0, +1) */ - TilemapRenderer(std::vector tile_map, int tile_set_width, std::shared_ptr tileset_surface, std::string bg_color, int conveyor_belt_direction); + TilemapRenderer(std::vector tile_map, int tile_set_width, std::shared_ptr tileset_surface, Uint8 bg_color, int conveyor_belt_direction); ~TilemapRenderer() = default; // Prohibir copia y movimiento @@ -69,7 +69,7 @@ class TilemapRenderer { * Llamado cuando se activa/desactiva el modo debug para actualizar la visualización */ void redrawMap(const CollisionMap* collision_map); - void setBgColor(const std::string& color) { bg_color_ = color; } + void setBgColor(Uint8 color) { bg_color_ = color; } void setTile(int index, int tile_value); // Cambia un tile y repinta esa celda #endif @@ -92,9 +92,9 @@ class TilemapRenderer { }; // === Constantes === - static constexpr int TILE_SIZE = Tile::SIZE; // Ancho del tile en pixels - static constexpr int MAP_WIDTH = PlayArea::WIDTH / Tile::SIZE; // Ancho del mapa en tiles - static constexpr int MAP_HEIGHT = PlayArea::HEIGHT / Tile::SIZE; // Alto del mapa en tiles + static constexpr int TILE_SIZE = Tile::SIZE; // Ancho del tile en pixels + static constexpr int MAP_WIDTH = Map::WIDTH; // Ancho del mapa en tiles + static constexpr int MAP_HEIGHT = Map::HEIGHT; // Alto del mapa en tiles static constexpr int PLAY_AREA_WIDTH = PlayArea::WIDTH; // Ancho del área de juego en pixels static constexpr int PLAY_AREA_HEIGHT = PlayArea::HEIGHT; // Alto del área de juego en pixels static constexpr float CONVEYOR_FRAME_DURATION = 0.05F; // Duración de cada frame (3 frames @ 60fps) @@ -103,7 +103,7 @@ class TilemapRenderer { std::vector tile_map_; // Índices de tiles de la habitación int tile_set_width_; // Ancho del tileset en tiles std::shared_ptr tileset_surface_; // Gráficos del tileset - std::string bg_color_; // Color de fondo + Uint8 bg_color_{0}; // Color de fondo int conveyor_belt_direction_; // Dirección de conveyor belts // === Renderizado === diff --git a/source/game/scenes/credits.cpp b/source/game/scenes/credits.cpp index aa38521..3f628f8 100644 --- a/source/game/scenes/credits.cpp +++ b/source/game/scenes/credits.cpp @@ -32,7 +32,7 @@ Credits::Credits() SceneManager::options = SceneManager::Options::NONE; shining_sprite_->setPos({.x = 194, .y = 174, .w = 8, .h = 8}); - Screen::get()->setBorderColor(static_cast(PaletteColor::BLACK)); // Cambia el color del borde + Screen::get()->setBorderColor(0); // Cambia el color del borde fillTexture(); // Escribe el texto en la textura Audio::get()->playMusic("574071_EA_DTV.ogg"); // Inicia la musica } @@ -56,33 +56,33 @@ void Credits::iniTexts() { // NOLINT(readability-convert-member-functions-to-st auto* loc = Locale::get(); texts_.clear(); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.instructions"), .color = static_cast(PaletteColor::YELLOW)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.l0"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.l1"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.l2"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); + texts_.push_back({.label = "", .color = 14}); + texts_.push_back({.label = loc->get("credits.instructions"), .color = 12}); + texts_.push_back({.label = "", .color = 14}); + texts_.push_back({.label = loc->get("credits.l0"), .color = 14}); + texts_.push_back({.label = loc->get("credits.l1"), .color = 14}); + texts_.push_back({.label = loc->get("credits.l2"), .color = 14}); + texts_.push_back({.label = "", .color = 14}); + texts_.push_back({.label = "", .color = 14}); - texts_.push_back({.label = loc->get("credits.keys"), .color = static_cast(PaletteColor::YELLOW)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.keys_move"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.f8"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.f11"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.f1f2"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.f3"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = loc->get("credits.f9"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); + texts_.push_back({.label = loc->get("credits.keys"), .color = 12}); + texts_.push_back({.label = "", .color = 14}); + texts_.push_back({.label = loc->get("credits.keys_move"), .color = 14}); + texts_.push_back({.label = loc->get("credits.f8"), .color = 14}); + texts_.push_back({.label = loc->get("credits.f11"), .color = 14}); + texts_.push_back({.label = loc->get("credits.f1f2"), .color = 14}); + texts_.push_back({.label = loc->get("credits.f3"), .color = 14}); + texts_.push_back({.label = loc->get("credits.f9"), .color = 14}); + texts_.push_back({.label = "", .color = 14}); + texts_.push_back({.label = "", .color = 14}); - texts_.push_back({.label = loc->get("credits.author"), .color = static_cast(PaletteColor::YELLOW)}); - texts_.push_back({.label = loc->get("credits.date"), .color = static_cast(PaletteColor::YELLOW)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); + texts_.push_back({.label = loc->get("credits.author"), .color = 12}); + texts_.push_back({.label = loc->get("credits.date"), .color = 12}); + texts_.push_back({.label = "", .color = 14}); + texts_.push_back({.label = "", .color = 14}); - texts_.push_back({.label = loc->get("credits.love"), .color = static_cast(PaletteColor::WHITE)}); - texts_.push_back({.label = "", .color = static_cast(PaletteColor::WHITE)}); + texts_.push_back({.label = loc->get("credits.love"), .color = 14}); + texts_.push_back({.label = "", .color = 14}); } // Escribe el texto en la textura @@ -93,7 +93,7 @@ void Credits::fillTexture() { // Rellena la textura de texto auto previuos_renderer = Screen::get()->getRendererSurface(); Screen::get()->setRendererSurface(text_surface_); - text_surface_->clear(static_cast(PaletteColor::BLACK)); + text_surface_->clear(0); auto text = Resource::Cache::get()->getText("smb2"); @@ -109,7 +109,7 @@ void Credits::fillTexture() { // Escribe el corazón const int TEXT_LENGHT = text->length(texts_[22].label, 1) - text->length(" ", 1); // Se resta el ultimo caracter que es un espacio const int POS_X = ((PlayArea::WIDTH - TEXT_LENGHT) / 2) + TEXT_LENGHT; - text->writeColored(POS_X, 176, "ä", static_cast(PaletteColor::BRIGHT_RED)); + text->writeColored(POS_X, 176, "ä", 5); Screen::get()->setRendererSurface(previuos_renderer); // Recoloca el sprite del brillo @@ -219,7 +219,7 @@ void Credits::render() { Screen::get()->start(); // Limpia la pantalla - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); if (state_ != State::EXITING) { // Dibuja la textura con el texto en pantalla @@ -230,7 +230,7 @@ void Credits::render() { // Dibuja el sprite con el brillo if (reveal_time_ > SHINE_START_TIME) { - shining_sprite_->render(1, static_cast(PaletteColor::BRIGHT_WHITE)); + shining_sprite_->render(1, 15); } } diff --git a/source/game/scenes/ending.cpp b/source/game/scenes/ending.cpp index 9591908..aac5e2a 100644 --- a/source/game/scenes/ending.cpp +++ b/source/game/scenes/ending.cpp @@ -31,7 +31,7 @@ Ending::Ending() iniPics(); // Inicializa las imagenes iniScenes(); // Inicializa las escenas - Screen::get()->setBorderColor(static_cast(PaletteColor::BLACK)); // Cambia el color del borde + Screen::get()->setBorderColor(0); // Cambia el color del borde } // Actualiza el objeto @@ -55,7 +55,7 @@ void Ending::render() { Screen::get()->start(); // Limpia la pantalla - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); // Skip rendering durante WARMING_UP if (state_ != State::WARMING_UP) { @@ -212,8 +212,8 @@ void Ending::iniTexts() { // NOLINT(readability-convert-member-functions-to-sta const float WIDTH = text->length(txt.caption, 1) + 2 + 2; const float HEIGHT = text->getCharacterSize() + 2 + 2; - auto text_color = static_cast(PaletteColor::WHITE); - auto shadow_color = static_cast(PaletteColor::BLACK); + auto text_color = 14; + auto shadow_color = 0; EndingSurface st; diff --git a/source/game/scenes/ending2.cpp b/source/game/scenes/ending2.cpp index d6c34cc..1327668 100644 --- a/source/game/scenes/ending2.cpp +++ b/source/game/scenes/ending2.cpp @@ -19,7 +19,7 @@ #include "game/scene_manager.hpp" // Para SceneManager #include "utils/defines.hpp" // Para GameCanvas::CENTER_X, GameCanvas::CENTER_Y #include "utils/delta_timer.hpp" // Para DeltaTimer -#include "utils/utils.hpp" // Para PaletteColor, stringToColor +#include "utils/utils.hpp" // Constructor Ending2::Ending2() @@ -30,12 +30,9 @@ Ending2::Ending2() SceneManager::options = SceneManager::Options::NONE; // Inicializa el vector de colores - const std::vector COLORS = {"white", "yellow", "cyan", "green", "magenta", "red", "blue", "black"}; - for (const auto& color : COLORS) { - colors_.push_back(stringToColor(color)); - } + colors_ = {14, 12, 10, 8, 6, 4, 2, 0}; - Screen::get()->setBorderColor(static_cast(PaletteColor::BLACK)); // Cambia el color del borde + Screen::get()->setBorderColor(0); // Cambia el color del borde iniSpriteList(); // Inicializa la lista de sprites loadSprites(); // Carga todos los sprites desde una lista placeSprites(); // Coloca los sprites en su sito @@ -80,7 +77,7 @@ void Ending2::render() { Screen::get()->start(); // Limpia la pantalla - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); // Dibuja los sprites renderSprites(); @@ -269,14 +266,14 @@ void Ending2::loadSprites() { for (const auto& file : sprite_list_) { const auto& animation_data = Resource::Cache::get()->getAnimationData(file + ".yaml"); sprites_.emplace_back(std::make_shared(animation_data)); - sprites_.back()->setColorReplace(1, static_cast(PaletteColor::RED)); + sprites_.back()->setColorReplace(1, 4); sprites_.back()->setProgress(1.0F); // comença invisible sprite_max_width_ = std::max(sprites_.back()->getWidth(), sprite_max_width_); sprite_max_height_ = std::max(sprites_.back()->getHeight(), sprite_max_height_); } // El último sprite (player) va en blanco, no en rojo - sprites_.back()->setColorReplace(1, static_cast(PaletteColor::WHITE)); + sprites_.back()->setColorReplace(1, 14); } // Actualiza los sprites @@ -428,7 +425,7 @@ void Ending2::createSpriteTexts() { // NOLINT(readability-convert-member-functi // Crea el sprite SDL_FRect pos = {.x = X, .y = Y, .w = W, .h = H}; sprite_texts_.emplace_back(std::make_shared(surface, pos)); - sprite_texts_.back()->setColorReplace(1, static_cast(PaletteColor::WHITE)); + sprite_texts_.back()->setColorReplace(1, 14); sprite_texts_.back()->setProgress(1.0F); // comença invisible sprite_texts_.back()->setVelY(SPRITE_DESP_SPEED); Screen::get()->setRendererSurface(previuos_renderer); diff --git a/source/game/scenes/game.cpp b/source/game/scenes/game.cpp index cd81858..8221967 100644 --- a/source/game/scenes/game.cpp +++ b/source/game/scenes/game.cpp @@ -28,7 +28,7 @@ #include "game/ui/console.hpp" // Para Console #include "game/ui/notifier.hpp" // Para Notifier, NotificationText, CHEEVO_NO... #include "utils/defines.hpp" // Para Tile::SIZE, PlayArea::HEIGHT, RoomBorder::BOTTOM -#include "utils/utils.hpp" // Para PaletteColor, stringToColor +#include "utils/utils.hpp" #ifdef _DEBUG #include "core/system/debug.hpp" // Para Debug @@ -489,7 +489,7 @@ void Game::renderPlaying() { // Renderiza el juego en estado BLACK_SCREEN (pantalla negra) void Game::renderBlackScreen() { Screen::get()->start(); - auto const COLOR = static_cast(PaletteColor::BLACK); + auto const COLOR = 0; Screen::get()->clearSurface(COLOR); Screen::get()->setBorderColor(COLOR); Screen::get()->render(); @@ -498,7 +498,7 @@ void Game::renderBlackScreen() { // Renderiza el juego en estado GAME_OVER (pantalla negra) void Game::renderGameOver() { Screen::get()->start(); - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); Screen::get()->render(); } @@ -511,7 +511,7 @@ void Game::renderFadeToEnding() { Screen::get()->setRendererSurface(game_backbuffer_surface_); // 3. Renderizar todo a backbuffer - game_backbuffer_surface_->clear(static_cast(PaletteColor::BLACK)); + game_backbuffer_surface_->clear(0); room_->renderMap(); room_->renderEnemies(); room_->renderItems(); @@ -530,7 +530,7 @@ void Game::renderFadeToEnding() { // Renderiza el juego en estado POST_FADE_ENDING (pantalla negra) void Game::renderPostFadeEnding() { Screen::get()->start(); - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); Screen::get()->render(); } @@ -550,18 +550,18 @@ void Game::renderDebugInfo() { // Borra el marcador SDL_FRect rect = {.x = 0, .y = 18 * Tile::SIZE, .w = PlayArea::WIDTH, .h = GameCanvas::HEIGHT - PlayArea::HEIGHT}; - surface->fillRect(&rect, static_cast(PaletteColor::BLACK)); + surface->fillRect(&rect, 0); // Pinta la rejilla /*for (int i = 0; i < PlayArea::BOTTOM; i += 8) { // Lineas horizontales - surface->drawLine(0, i, PlayArea::RIGHT, i, static_cast(PaletteColor::BRIGHT_BLACK)); + surface->drawLine(0, i, PlayArea::RIGHT, i, 1); } for (int i = 0; i < PlayArea::RIGHT; i += 8) { // Lineas verticales - surface->drawLine(i, 0, i, PlayArea::BOTTOM - 1, static_cast(PaletteColor::BRIGHT_BLACK)); + surface->drawLine(i, 0, i, PlayArea::BOTTOM - 1, 1); }*/ // Pinta el texto @@ -815,11 +815,11 @@ void Game::setScoreBoardColor() { // NOLINT(readability-convert-member-function // Obtiene el color del borde const Uint8 BORDER_COLOR = room_->getBorderColor(); - const bool IS_BLACK = BORDER_COLOR == static_cast(PaletteColor::BLACK); - const bool IS_BRIGHT_BLACK = BORDER_COLOR == static_cast(PaletteColor::BRIGHT_BLACK); + const bool IS_BLACK = BORDER_COLOR == 0; + const bool IS_BRIGHT_BLACK = BORDER_COLOR == 1; // Si el color del borde es negro o negro brillante cambia el texto del marcador a blanco - scoreboard_data_->color = IS_BLACK || IS_BRIGHT_BLACK ? static_cast(PaletteColor::WHITE) : BORDER_COLOR; + scoreboard_data_->color = IS_BLACK || IS_BRIGHT_BLACK ? 14 : BORDER_COLOR; } // Comprueba si ha finalizado el juego diff --git a/source/game/scenes/game_over.cpp b/source/game/scenes/game_over.cpp index 99f3835..18e72c1 100644 --- a/source/game/scenes/game_over.cpp +++ b/source/game/scenes/game_over.cpp @@ -18,7 +18,7 @@ #include "game/scene_manager.hpp" // Para SceneManager #include "utils/defines.hpp" // Para GameCanvas::CENTER_X #include "utils/delta_timer.hpp" // Para DeltaTimer -#include "utils/utils.hpp" // Para PaletteColor, stringToColor +#include "utils/utils.hpp" // Constructor GameOver::GameOver() @@ -34,13 +34,10 @@ GameOver::GameOver() tv_sprite_->setPosX(GameCanvas::CENTER_X - tv_sprite_->getWidth() - TV_X_OFFSET); tv_sprite_->setPosY(TEXT_Y + SPRITE_Y_OFFSET); - Screen::get()->setBorderColor(static_cast(PaletteColor::BLACK)); + Screen::get()->setBorderColor(0); // Inicializa el vector de colores (de brillante a oscuro para fade) - const std::vector COLORS = {"white", "yellow", "cyan", "green", "magenta", "red", "blue", "black"}; - for (const auto& color : COLORS) { - colors_.push_back(stringToColor(color)); - } + colors_ = {14, 12, 10, 8, 6, 4, 2, 0}; color_ = colors_.back(); // Empieza en black } @@ -64,7 +61,7 @@ void GameOver::update() { // Dibuja el final en pantalla void GameOver::render() { Screen::get()->start(); - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); auto text = Resource::Cache::get()->getText("smb2"); diff --git a/source/game/scenes/loading_screen.cpp b/source/game/scenes/loading_screen.cpp index 394b4a4..b5b754a 100644 --- a/source/game/scenes/loading_screen.cpp +++ b/source/game/scenes/loading_screen.cpp @@ -16,7 +16,7 @@ #include "game/options.hpp" // Para Options, options, SectionState, Options... #include "game/scene_manager.hpp" // Para SceneManager #include "utils/defines.hpp" // Para GAME_SPEED -#include "utils/utils.hpp" // Para stringToColor, PaletteColor +#include "utils/utils.hpp" // Constructor LoadingScreen::LoadingScreen() @@ -28,7 +28,7 @@ LoadingScreen::LoadingScreen() screen_surface_(std::make_shared(Options::game.width, Options::game.height)), delta_timer_(std::make_unique()) { // Configura la superficie donde se van a pintar los sprites - screen_surface_->clear(static_cast(PaletteColor::WHITE)); + screen_surface_->clear(14); // Inicializa variables SceneManager::current = SceneManager::Scene::LOADING_SCREEN; @@ -39,7 +39,7 @@ LoadingScreen::LoadingScreen() initLineIndexArray(); // Cambia el color del borde - Screen::get()->setBorderColor(stringToColor("white")); + Screen::get()->setBorderColor(14); transitionToState(State::SILENT1); } @@ -279,10 +279,10 @@ void LoadingScreen::renderDataBorder() { auto border = Screen::get()->getBorderSurface(); // Pinta el borde de color azul - border->clear(static_cast(PaletteColor::BLUE)); + border->clear(2); // Añade lineas amarillas - const auto COLOR = static_cast(PaletteColor::YELLOW); + const auto COLOR = 12; const int WIDTH = Options::game.width + (Options::video.border.width * 2); const int HEIGHT = Options::game.height + (Options::video.border.height * 2); bool draw_enabled = rand() % 2 == 0; @@ -306,10 +306,10 @@ void LoadingScreen::renderHeaderBorder() const { auto border = Screen::get()->getBorderSurface(); // Pinta el borde de color azul o rojo - border->clear(carrier_.toggle ? static_cast(PaletteColor::CYAN) : static_cast(PaletteColor::RED)); + border->clear(carrier_.toggle ? 10 : 4); // Añade lineas rojas o azules - const auto COLOR = carrier_.toggle ? static_cast(PaletteColor::RED) : static_cast(PaletteColor::CYAN); + const auto COLOR = carrier_.toggle ? 4 : 10; const int WIDTH = Options::game.width + (Options::video.border.width * 2); const int HEIGHT = Options::game.height + (Options::video.border.height * 2); @@ -335,12 +335,12 @@ void LoadingScreen::renderHeaderBorder() const { } // Dibuja el borde de color -void LoadingScreen::renderColoredBorder(PaletteColor color) { +void LoadingScreen::renderColoredBorder(Uint8 color) { // Obtiene la Surface del borde auto border = Screen::get()->getBorderSurface(); - // Pinta el borde de color azul - border->clear(static_cast(color)); + // Pinta el borde del color indicado + border->clear(color); } // Actualiza las variables @@ -391,7 +391,7 @@ void LoadingScreen::render() { // Prepara para empezar a dibujar en la textura de juego Screen::get()->start(); - Screen::get()->clearSurface(stringToColor("white")); + Screen::get()->clearSurface(14); // Copia la surface a la surface de Screen screen_surface_->render(0, 0); @@ -430,16 +430,16 @@ void LoadingScreen::renderBorder() { renderHeaderBorder(); break; case Border::WHITE: - renderColoredBorder(PaletteColor::WHITE); + renderColoredBorder(14); break; case Border::BLACK: - renderColoredBorder(PaletteColor::BLACK); + renderColoredBorder(0); break; case Border::RED: - renderColoredBorder(PaletteColor::RED); + renderColoredBorder(4); break; case Border::CYAN: - renderColoredBorder(PaletteColor::CYAN); + renderColoredBorder(10); break; case Border::NONE: // No renderizar borde diff --git a/source/game/scenes/loading_screen.hpp b/source/game/scenes/loading_screen.hpp index 1cf2275..71daf8a 100644 --- a/source/game/scenes/loading_screen.hpp +++ b/source/game/scenes/loading_screen.hpp @@ -6,7 +6,6 @@ #include // Para shared_ptr #include "utils/delta_timer.hpp" // Para DeltaTimer -#include "utils/utils.hpp" // Para PaletteColor class Sprite; // Forward declaration class Surface; // Forward declaration @@ -90,7 +89,7 @@ class LoadingScreen { void renderBorder(); // Pinta el borde static void renderDataBorder(); // Dibuja el efecto de carga amarillo y azul en el borde void renderHeaderBorder() const; // Dibuja el efecto de carga rojo y azul en el borde - static void renderColoredBorder(PaletteColor color); // Dibuja el borde de color + static void renderColoredBorder(Uint8 color); // Dibuja el borde de color void initLineIndexArray(); // Inicializa el array de índices de líneas void printProgramName(); // Escribe el nombre del programa void updateCarrier(float delta_time); // Actualiza la portadora diff --git a/source/game/scenes/logo.cpp b/source/game/scenes/logo.cpp index e64fb47..795d3ff 100644 --- a/source/game/scenes/logo.cpp +++ b/source/game/scenes/logo.cpp @@ -28,8 +28,8 @@ Logo::Logo() delta_timer_(std::make_unique()) { // Configura variables since_1998_sprite_->setClip(0, 0, since_1998_surface_->getWidth(), since_1998_surface_->getHeight()); - since_1998_color_ = static_cast(PaletteColor::BLACK); - jailgames_color_ = static_cast(PaletteColor::BRIGHT_WHITE); + since_1998_color_ = 0; + jailgames_color_ = 15; // Inicializa variables SceneManager::current = SceneManager::Scene::LOGO; @@ -51,7 +51,7 @@ Logo::Logo() easing_function_ = EASING_OPTIONS[dist(gen)]; // Cambia el color del borde - Screen::get()->setBorderColor(static_cast(PaletteColor::BLACK)); + Screen::get()->setBorderColor(0); } // Comprueba el manejador de eventos @@ -216,7 +216,7 @@ void Logo::update() { void Logo::render() { // NOLINT(readability-convert-member-functions-to-static) // Prepara para empezar a dibujar en la textura de juego Screen::get()->start(); - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); // Dibuja los objetos for (const auto& sprite : jailgames_sprite_) { @@ -257,14 +257,14 @@ void Logo::endSection() { void Logo::initColors() { // NOLINT(readability-convert-member-functions-to-static) // Inicializa el vector de colores const std::vector COLORS = { - static_cast(PaletteColor::BLACK), - static_cast(PaletteColor::BLUE), - static_cast(PaletteColor::RED), - static_cast(PaletteColor::MAGENTA), - static_cast(PaletteColor::GREEN), - static_cast(PaletteColor::CYAN), - static_cast(PaletteColor::YELLOW), - static_cast(PaletteColor::BRIGHT_WHITE)}; + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 15}; for (const auto& color : COLORS) { color_.push_back(color); } diff --git a/source/game/scenes/title.cpp b/source/game/scenes/title.cpp index 9a5097a..444ed34 100644 --- a/source/game/scenes/title.cpp +++ b/source/game/scenes/title.cpp @@ -20,7 +20,7 @@ #include "game/scene_manager.hpp" // Para SceneManager #include "game/ui/console.hpp" // Para Console #include "utils/defines.hpp" // Para PlayArea::CENTER_X, GameCanvas::WIDTH -#include "utils/utils.hpp" // Para stringToColor, PaletteColor, playMusic +#include "utils/utils.hpp" // Constructor Title::Title() @@ -46,7 +46,7 @@ Title::Title() // Acciones iniciales initMarquee(); // Inicializa la marquesina createCheevosTexture(); // Crea y rellena la textura para mostrar los logros - Screen::get()->setBorderColor(static_cast(PaletteColor::BLACK)); // Cambia el color del borde + Screen::get()->setBorderColor(0); // Cambia el color del borde Audio::get()->playMusic("574071_EA_DTV.ogg"); // Inicia la musica } @@ -233,7 +233,7 @@ void Title::renderMarquee() const { if (letter.enabled && letter.clip.w > 0.0F) { sprite->setClip(letter.clip); sprite->setX(letter.x); - sprite->render(1, static_cast(PaletteColor::MAGENTA)); + sprite->render(1, 6); } } } @@ -425,7 +425,7 @@ void Title::render() { // Prepara para empezar a dibujar en la textura de juego Screen::get()->start(); - Screen::get()->clearSurface(static_cast(PaletteColor::BLACK)); + Screen::get()->clearSurface(0); // Dibuja en pantalla la surface con la composicion title_surface_->render(); @@ -463,17 +463,17 @@ void Title::createCheevosTexture() { // NOLINT(readability-convert-member-funct Screen::get()->setRendererSurface(cheevos_surface_); // Rellena la textura con color sólido - const auto CHEEVOS_BG_COLOR = static_cast(PaletteColor::BLACK); + const auto CHEEVOS_BG_COLOR = 0; cheevos_surface_->clear(CHEEVOS_BG_COLOR); // Escribe la lista de logros en la textura const std::string CHEEVOS_OWNER = Locale::get()->get("title.projects"); // NOLINT(readability-static-accessed-through-instance) const std::string CHEEVOS_LIST_CAPTION = CHEEVOS_OWNER + " (" + std::to_string(Cheevos::get()->getTotalUnlockedAchievements()) + " / " + std::to_string(Cheevos::get()->size()) + ")"; int pos = 2; - TEXT->writeDX(Text::CENTER_FLAG | Text::COLOR_FLAG, cheevos_surface_->getWidth() / 2, pos, CHEEVOS_LIST_CAPTION, 1, stringToColor("bright_green")); + TEXT->writeDX(Text::CENTER_FLAG | Text::COLOR_FLAG, cheevos_surface_->getWidth() / 2, pos, CHEEVOS_LIST_CAPTION, 1, 9); pos += TEXT->getCharacterSize(); - const Uint8 CHEEVO_LOCKED_COLOR = stringToColor("white"); - const Uint8 CHEEVO_UNLOCKED_COLOR = stringToColor("bright_green"); + const Uint8 CHEEVO_LOCKED_COLOR = 14; + const Uint8 CHEEVO_UNLOCKED_COLOR = 9; constexpr int LINE_X1 = (CHEEVOS_TEXTURE_WIDTH / 7) * 3; constexpr int LINE_X2 = LINE_X1 + ((CHEEVOS_TEXTURE_WIDTH / 7) * 1); @@ -526,7 +526,7 @@ void Title::renderMainMenu() { constexpr int MENU_ZONE_HEIGHT = 102; // Menú principal normal con 4 opciones centradas verticalmente en la zona - const Uint8 COLOR = stringToColor("green"); + const Uint8 COLOR = 8; const int TEXT_SIZE = menu_text_->getCharacterSize(); const int MENU_CENTER_Y = MENU_ZONE_Y + (MENU_ZONE_HEIGHT / 2); const int SPACING = 2 * TEXT_SIZE; // Espaciado entre opciones @@ -554,7 +554,7 @@ void Title::fillTitleSurface() { Screen::get()->setRendererSurface(title_surface_); // Rellena la textura de color - title_surface_->clear(static_cast(PaletteColor::BLACK)); + title_surface_->clear(0); switch (state_) { case State::MAIN_MENU: @@ -676,8 +676,8 @@ void Title::renderKeyboardRemap() const { constexpr int MENU_ZONE_Y = 73; constexpr int MENU_ZONE_HEIGHT = 102; - const Uint8 COLOR = stringToColor("green"); - const Uint8 ERROR_COLOR = stringToColor("red"); + const Uint8 COLOR = 8; + const Uint8 ERROR_COLOR = 4; const int TEXT_SIZE = menu_text_->getCharacterSize(); const int MENU_CENTER_Y = MENU_ZONE_Y + (MENU_ZONE_HEIGHT / 2); @@ -724,8 +724,8 @@ void Title::renderJoystickRemap() const { constexpr int MENU_ZONE_Y = 73; constexpr int MENU_ZONE_HEIGHT = 102; - const Uint8 COLOR = stringToColor("green"); - const Uint8 ERROR_COLOR = stringToColor("red"); + const Uint8 COLOR = 8; + const Uint8 ERROR_COLOR = 4; const int TEXT_SIZE = menu_text_->getCharacterSize(); const int MENU_CENTER_Y = MENU_ZONE_Y + (MENU_ZONE_HEIGHT / 2); diff --git a/source/game/ui/console_commands.cpp b/source/game/ui/console_commands.cpp index aabca51..38feff2 100644 --- a/source/game/ui/console_commands.cpp +++ b/source/game/ui/console_commands.cpp @@ -1024,9 +1024,14 @@ void CommandRegistry::registerHandlers() { // NOLINT(readability-function-cogni }; #ifdef _DEBUG - // Colores de la paleta (compartido por SET COLOR, BGCOLOR, BORDER, ITEMCOLOR1, ITEMCOLOR2) + // Colores de la paleta como índices numéricos (compartido por SET COLOR, BGCOLOR, BORDER, ITEMCOLOR1, ITEMCOLOR2) auto color_provider = []() -> std::vector { - return {"BLACK", "BRIGHT_BLACK", "BLUE", "BRIGHT_BLUE", "RED", "BRIGHT_RED", "MAGENTA", "BRIGHT_MAGENTA", "GREEN", "BRIGHT_GREEN", "CYAN", "BRIGHT_CYAN", "YELLOW", "BRIGHT_YELLOW", "WHITE", "BRIGHT_WHITE"}; + std::vector result; + result.reserve(64); + for (int i = 0; i < 64; ++i) { + result.push_back(std::to_string(i)); + } + return result; }; dynamic_providers_["SET COLOR"] = color_provider; dynamic_providers_["SET BGCOLOR"] = color_provider; diff --git a/source/game/ui/notifier.cpp b/source/game/ui/notifier.cpp index 561d934..df36a9d 100644 --- a/source/game/ui/notifier.cpp +++ b/source/game/ui/notifier.cpp @@ -23,9 +23,9 @@ Notifier* Notifier::notifier = nullptr; // Definición de estilos predefinidos const Notifier::Style Notifier::Style::DEFAULT = { - .bg_color = static_cast(PaletteColor::BLUE), - .border_color = static_cast(PaletteColor::CYAN), - .text_color = static_cast(PaletteColor::CYAN), + .bg_color = 2, + .border_color = 10, + .text_color = 10, .shape = Notifier::Shape::SQUARED, .text_align = Notifier::TextAlign::CENTER, .duration = 2.0F, @@ -33,9 +33,9 @@ const Notifier::Style Notifier::Style::DEFAULT = { .play_sound = false}; const Notifier::Style Notifier::Style::CHEEVO = { - .bg_color = static_cast(PaletteColor::MAGENTA), - .border_color = static_cast(PaletteColor::BRIGHT_MAGENTA), - .text_color = static_cast(PaletteColor::WHITE), + .bg_color = 6, + .border_color = 7, + .text_color = 14, .shape = Notifier::Shape::SQUARED, .text_align = Notifier::TextAlign::CENTER, .duration = 4.0F, diff --git a/source/utils/defines.hpp b/source/utils/defines.hpp index e4b3dc6..c7449bf 100644 --- a/source/utils/defines.hpp +++ b/source/utils/defines.hpp @@ -15,11 +15,17 @@ namespace Tile { constexpr int HALF_SIZE = SIZE / 2; } // namespace Tile +// Dimensiones del mapa en tiles +namespace Map { + constexpr int WIDTH = 32; // Ancho del mapa en tiles + constexpr int HEIGHT = 21; // Alto del mapa en tiles (pantalla menos 3 tiles de statusbar) +} // namespace Map + namespace PlayArea { constexpr int TOP = (0 * Tile::SIZE); - constexpr int BOTTOM = (16 * Tile::SIZE); + constexpr int BOTTOM = (Map::HEIGHT * Tile::SIZE); constexpr int LEFT = (0 * Tile::SIZE); - constexpr int RIGHT = (32 * Tile::SIZE); + constexpr int RIGHT = (Map::WIDTH * Tile::SIZE); constexpr int WIDTH = RIGHT - LEFT; constexpr int HEIGHT = BOTTOM - TOP; constexpr int CENTER_X = LEFT + (WIDTH / 2); diff --git a/source/utils/utils.cpp b/source/utils/utils.cpp index 0847d16..26578c5 100644 --- a/source/utils/utils.cpp +++ b/source/utils/utils.cpp @@ -333,77 +333,6 @@ auto checkCollision(const SDL_FPoint& point, const LineDiagonal& l) -> bool { return true; } -// Convierte una cadena a un indice de la paleta -auto stringToColor(const std::string& str) -> Uint8 { - // Mapas de colores para cada paleta - static const std::unordered_map PALETTE_MAP = { - {"black", 0}, - {"bright_black", 1}, - - {"blue", 2}, - {"bright_blue", 3}, - - {"red", 4}, - {"bright_red", 5}, - - {"magenta", 6}, - {"bright_magenta", 7}, - - {"green", 8}, - {"bright_green", 9}, - - {"cyan", 10}, - {"bright_cyan", 11}, - - {"yellow", 12}, - {"bright_yellow", 13}, - - {"white", 14}, - {"bright_white", 15}, - - // Índices extendidos (paletas de 32 colores): nombres genéricos COLOR_N - {"color_16", 16}, {"color_17", 17}, {"color_18", 18}, {"color_19", 19}, - {"color_20", 20}, {"color_21", 21}, {"color_22", 22}, {"color_23", 23}, - {"color_24", 24}, {"color_25", 25}, {"color_26", 26}, {"color_27", 27}, - {"color_28", 28}, {"color_29", 29}, {"color_30", 30}, {"color_31", 31}, - - {"transparent", 255}}; - - // Busca el color en el mapa - auto it = PALETTE_MAP.find(str); - if (it != PALETTE_MAP.end()) { - return it->second; - } - - // Fallback: si el string es numérico (p.ej. "4"), lo tratamos como índice de paleta - if (!str.empty() && std::ranges::all_of(str, [](char c) { return std::isdigit(static_cast(c)) != 0; })) { - const int IDX = safeStoi(str, 0); - if (IDX >= 0 && IDX <= 255) { - return static_cast(IDX); - } - } - - // Si no se encuentra el color, devolvemos negro por defecto - return 0; -} - -// Inverso de stringToColor: devuelve el nombre canónico para un índice de paleta (o el propio número si no hay) -auto colorToString(Uint8 index) -> std::string { - static const std::array NAMES = { - "black", "bright_black", - "blue", "bright_blue", - "red", "bright_red", - "magenta", "bright_magenta", - "green", "bright_green", - "cyan", "bright_cyan", - "yellow", "bright_yellow", - "white", "bright_white"}; - if (index < NAMES.size()) { return NAMES[index]; } - if (index < 32) { return "color_" + std::to_string(index); } - if (index == 255) { return "transparent"; } - return std::to_string(index); -} - // Convierte una cadena a un entero de forma segura auto safeStoi(const std::string& value, int default_value) -> int { try { diff --git a/source/utils/utils.hpp b/source/utils/utils.hpp index 5b684d7..d17a556 100644 --- a/source/utils/utils.hpp +++ b/source/utils/utils.hpp @@ -5,34 +5,6 @@ #include // Para string #include // Para vector -enum class PaletteColor : Uint8 { - BLACK = 0, - BRIGHT_BLACK = 1, - - BLUE = 2, - BRIGHT_BLUE = 3, - - RED = 4, - BRIGHT_RED = 5, - - MAGENTA = 6, - BRIGHT_MAGENTA = 7, - - GREEN = 8, - BRIGHT_GREEN = 9, - - CYAN = 10, - BRIGHT_CYAN = 11, - - YELLOW = 12, - BRIGHT_YELLOW = 13, - - WHITE = 14, - BRIGHT_WHITE = 15, - - TRANSPARENT = 255, -}; - // Estructura para definir un circulo struct Circle { int x{0}; @@ -92,8 +64,6 @@ auto toSDLRect(const SDL_FRect& frect) -> SDL_Rect; // Convierte SDL_FRect auto toSDLPoint(const SDL_FPoint& fpoint) -> SDL_Point; // Convierte SDL_FPoint a SDL_Point // CONVERSIONES DE STRING -auto stringToColor(const std::string& str) -> Uint8; // String a índice de paleta (acepta nombres o números) -auto colorToString(Uint8 index) -> std::string; // Índice de paleta a nombre canónico auto safeStoi(const std::string& value, int default_value = 0) -> int; // String a int seguro (sin excepciones) auto stringToBool(const std::string& str) -> bool; // String a bool (true/1/yes/on) auto boolToString(bool value) -> std::string; // Bool a string (1/0)