diff --git a/ART_GOTHIC.md b/ART_GOTHIC.md new file mode 100644 index 0000000..100c5c6 --- /dev/null +++ b/ART_GOTHIC.md @@ -0,0 +1,115 @@ +# Mortal Maze · arte gótico en pixel art + +Esta revisión implementa el aspecto aprobado en el juego de Godot. Los recursos +están incorporados en las escenas y se incluyen en el parche binario de Git. +La base es el ZIP original `proyecto.zip`, con HEAD `ec7e35d` (mejoras en +jugabilidad). El parche anterior rechazado no forma parte de esta base. + +## Aplicar + +Desde la carpeta que contiene `project.godot`: + +```sh +git apply --check /ruta/mortal_maze_pixel_gothic.patch +git apply /ruta/mortal_maze_pixel_gothic.patch +``` + +Abre el proyecto con Godot 4.7 y deja terminar la importación de recursos. Pulsa +F5 para entrar por la portada o F6 para probar un nivel. Los PNG están incluidos: +no necesitas herramientas de generación, servicios externos ni Pillow para jugar. +Si has cambiado los mismos archivos desde el ZIP, revisa los conflictos que +muestre `git apply --check` antes de aplicar. + +Para revertir esta revisión mientras sus archivos no tengan cambios posteriores: + +```sh +git apply -R --check /ruta/mortal_maze_pixel_gothic.patch +git apply -R /ruta/mortal_maze_pixel_gothic.patch +``` + +## Dirección artística e integración + +La nueva dirección utiliza proporciones humanas adultas, materiales desgastados, +arquitectura gótica, piedra tallada, bronce, paños rojos, velas y profundidad por +planos. Blasphemous y Castlevania fueron referencias de estilo; los recursos de +esta entrega se generaron para Mortal Maze y no se extrajeron de esos juegos. + +El arte raster se creó con la herramienta integrada de generación de imágenes. +Después se recortó y empaquetó para Godot, conservando la transparencia y usando +vecino más cercano. `assets/ashen/production_prompts.json` conserva las +instrucciones de producción de personajes, enemigos, jefe y escenarios. Los +README de cada subcarpeta describen sus piezas y su integración. + +| Parte | Integración | +|---|---| +| Protagonistas | Cuatro atlas distintos con anatomía, vestuario e instrumentos nuevos | +| Enemigos | Cinco diseños: portador de incensario, penitente, guardián, guitarrista espectral y técnico encapuchado | +| Jefe | Dieciséis poses nuevas de la Muerte, guadaña independiente, barra inferior de tres fases | +| Nivel 00 | Ciudad crepuscular, tres planos exteriores, ruinas, estatuas, altares y amplificadores | +| Nivel 01 | Nave de abadía, órgano, vidrieras y campanario con murales y profundidad | +| Nivel 02 | Procesión fría, puerta de hierro animada y cámara del osario | +| Terreno | Piedra, arcadas, cornisas y cuatro acabados de plataformas | +| Interfaz | Portada, selección, retratos, relicario, pausa, HUD y controles táctiles | +| Objetos y efectos | Dieciocho iconos, atlas de combate, polvo, destellos, velas, niebla y ceniza | + +Los exteriores tienen tres velocidades de parallax: 0,12, 0,34 y 0,63. Los +interiores desplazan el encuadre dentro de sus pinturas, sin estirar una sola +imagen sobre todo el recorrido. Se retiraron las fachadas anteriores, las nubes +del fondo antiguo y el dibujo provisional del osario. + +La referencia visual es 1280 × 720. La cámara a 2× mira 64 unidades por encima +del jugador para dejar espacio a la arquitectura. Las texturas usan filtro +nearest. Los protagonistas y enemigos se muestran a media escala; la piedra y +los objetos grandes utilizan un grano más grueso en primer plano. + +## Identidad y animación + +| Personaje | Identidad conservada | +|---|---| +| Diego · `guitarist` | Melena oscura, barba, chaleco vaquero y guitarra roja | +| Ivan · `drummer` | Melena negra lisa, camiseta, vaqueros y dos baquetas | +| Fer · `bassist` | Pelo oscuro rizado, cuero y bajo verde | +| Hector · `singer` | Melena rubia, chaqueta oscura y micrófono con cable | + +Cada protagonista tiene un PNG de 1152 × 768, con 24 dibujos en una cuadrícula +de 6 × 4 celdas de 192 × 192. La altura de reposo es 128 píxeles del atlas y la +base de los pies está en y 152. `AnimatedSprite2D.scale = (0.5, 0.5)` y su +posición `(0, -2)` mantienen los pies alineados con el cuerpo físico original. + +Los 40 fotogramas lógicos originales reutilizan ciertas poses de reposo, +anticipación y recuperación para conservar la duración de las doce animaciones +de juego. Se añade una animación de muerte con dos dibujos. Por tanto, hay +**24 poses dibujadas y 13 animaciones por protagonista**, no 42 dibujos únicos. +Las seis poses de marcha, los golpes y las acciones musicales están dibujados +en los atlas; no proceden de deformar o recolorear el sprite anterior. + +Cada enemigo tiene 16 dibujos en un PNG de 768 × 768, seis animaciones y la misma +celda 192. Se retiraron la deformación de salto y la rotación del cadáver porque +las poses nuevas ya representan esos movimientos. El jefe tiene 16 dibujos en +un PNG de 1536 × 1536, celdas 384 y nueve animaciones; su arma se anima por separado. + +`tools/pack_ashen_atlas.py` permite volver a empaquetar una hoja fuente dibujada; +solo necesita Pillow para ese trabajo opcional. Usa una escala común para todas +las poses y un anclaje de pies, conservando la altura de las posturas agachadas. +Los antiguos generadores SVG requieren `--allow-legacy-overwrite`: ejecutarlos +sin esa opción ya no puede restaurar por accidente el aspecto anterior. + +## Jugabilidad y comprobación + +Se conservan las rutas, las colisiones y los atributos de movimiento y combate. +Las mejoras de cámara, iluminación, decoración y presentación no añaden enemigos +ni cambian el daño o la economía de objetos. Los botones táctiles mantienen las +seis acciones del InputMap. Los nombres de objetos aparecen al acercarse para +que los rótulos no tapen la arquitectura ni las barras. + +La revisión corrige también un acceso visual inválido a `AnimatedSprite2D.texture` +en los enemigos y elimina una referencia circular en la fábrica de efectos. +Las pruebas del proyecto se adaptan al formato PNG y a los escenarios reales de +la base: las expectativas antiguas de salto automático en suelo plano y último +nivel 01 no correspondían con el código del ZIP. + +El informe adjunto de validación recoge el motor, las pruebas ejecutadas, la +aplicación del parche sobre una copia limpia y las capturas reales. Las imágenes +conceptuales que precedieron al parche no son capturas del juego; las capturas +de entrega salen del viewport de Godot. No se ha validado esta revisión visual +en un teléfono Android ni se ha cambiado el audio del proyecto. diff --git a/README.md b/README.md index 616466d..46f26fb 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,19 @@ Cuatro personajes utilizan un unico controlador `Player`. El objetivo actual es **consolidar la jugabilidad y construir los niveles definitivos desde el Inspector**, sin programar un script nuevo por escenario. -**Estado (11-11-2026):** niveles 00, 01 y 02 de prueba; el 02 incluye la Muerte -Espectral (tres fases) y una puerta condicionada por enemigos. El autor ya ha -jugado y probado la base anterior en **Android**. Los cambios de este parche -siguen pendientes de validar en el dispositivo: las pruebas estaticas no -sustituyen una partida real. Audio, sprites y animaciones actuales son -**provisionales** y no se modifican aqui. Tampoco se modifica el movimiento, -la gravedad, el salto ni la disposicion de botones. +**Arte actualizado (26-11-2026):** los niveles 00, 01 y 02 incorporan nuevos +recursos raster de pixel art gotico: cuatro musicos, cinco enemigos, la Muerte +Espectral, escenarios con parallax, objetos e interfaz. La camara mira mas +alto para mostrar la arquitectura. El movimiento, los atributos de combate, +las rutas y las colisiones siguen usando la base de jugabilidad del proyecto. +Consulta **[ART_GOTHIC.md](ART_GOTHIC.md)** para conocer los recursos, las +animaciones y como aplicar o revertir el parche. Godot importa los PNG ya +incluidos; no hay que generar ni descargar arte para jugar. + +La validacion de esta entrega se realiza en Godot 4.7.2 para escritorio. +La base anterior habia sido probada por el autor en Android; esta revision +visual aun necesita una partida en el dispositivo. El audio sigue siendo el +del proyecto original. ## Abrir el juego @@ -26,9 +32,9 @@ la gravedad, el salto ni la disposicion de botones. | Escena | Contenido | |---|---| -| `levels/level_00.tscn` | Calle de laboratorio: 29 enemigos y 14 objetos | -| `levels/level_01.tscn` | Recorrido vertical de prueba: 12 enemigos y 14 objetos | -| `levels/level_02.tscn` | Osario de prueba: 8 enemigos, puerta y jefe | +| `levels/level_00.tscn` | Ciudad de ceniza: 29 enemigos y 14 objetos | +| `levels/level_01.tscn` | Abadia y campanario: 12 enemigos y 14 objetos | +| `levels/level_02.tscn` | Procesion y osario: 8 enemigos, puerta y jefe | | `levels/templates/level_template.tscn` | Base para **crear un nivel nuevo sin codigo** | | `levels/examples/scenery_catalog.tscn` | Catalogo de piezas colocables | | `levels/test/combat_test.tscn` | Laboratorio de combate, fuera del selector | diff --git a/assets/ashen/asset_manifest.json b/assets/ashen/asset_manifest.json new file mode 100644 index 0000000..43a9fb3 --- /dev/null +++ b/assets/ashen/asset_manifest.json @@ -0,0 +1,686 @@ +{ + "asset_count": 68, + "total_png_bytes": 25727065, + "files": [ + { + "path": "assets/ashen/bosses/spectral_death.png", + "size": [ + 1536, + 1536 + ], + "mode": "RGBA", + "bytes": 1741616, + "sha256": "b1fd10c2d5021230577a34a846c5d85834ab98e072628aa1656f597f30f0d422" + }, + { + "path": "assets/ashen/bosses/spectral_scythe.png", + "size": [ + 192, + 288 + ], + "mode": "RGBA", + "bytes": 17227, + "sha256": "6117fff2ab9787c3e4800cb0adeb1a3b207c3e5cf3cfc04a99a2de7008406bfd" + }, + { + "path": "assets/ashen/characters/bassist.png", + "size": [ + 1152, + 768 + ], + "mode": "RGBA", + "bytes": 524669, + "sha256": "a185468009416bff237b89a46af9d9b238c3e984d5e725a92f682c46e694409f" + }, + { + "path": "assets/ashen/characters/drummer.png", + "size": [ + 1152, + 768 + ], + "mode": "RGBA", + "bytes": 520099, + "sha256": "528b4987dce21bd61c169bb6ee3c4a254c98ac36aacf7515e85e63e8fe7eb019" + }, + { + "path": "assets/ashen/characters/guitarist.png", + "size": [ + 1152, + 768 + ], + "mode": "RGBA", + "bytes": 563898, + "sha256": "064fb26a1c9a02b1060d67849dd0ee210b05eba4872bd58f254af2995c15a79c" + }, + { + "path": "assets/ashen/characters/singer.png", + "size": [ + 1152, + 768 + ], + "mode": "RGBA", + "bytes": 487184, + "sha256": "5a4b43afbf4d20284ccd7e28380d657092d788adb95e962b043d463756defee6" + }, + { + "path": "assets/ashen/effects/combat_atlas.png", + "size": [ + 768, + 256 + ], + "mode": "RGBA", + "bytes": 73161, + "sha256": "83b9f3adbe843b06c152a23319b11789b381d268b7f7fdac57aaa498ec350629" + }, + { + "path": "assets/ashen/enemies/backstage_guard.png", + "size": [ + 768, + 768 + ], + "mode": "RGBA", + "bytes": 382211, + "sha256": "42fcaec0dc64a1ada3376d36acb9d8cf52c21e97316579b982a8fe5b1d39b70e" + }, + { + "path": "assets/ashen/enemies/feedback_tech.png", + "size": [ + 768, + 768 + ], + "mode": "RGBA", + "bytes": 375524, + "sha256": "be044c27d50d79e9f886a664170051a0a717c70096ebd1a332c50fb2314fd420" + }, + { + "path": "assets/ashen/enemies/pogo_fan.png", + "size": [ + 768, + 768 + ], + "mode": "RGBA", + "bytes": 321494, + "sha256": "6717f01b28daa992c5118ddb41510fd37d0185ba7371e073d10631b6ad2161d1" + }, + { + "path": "assets/ashen/enemies/rival_guitarist.png", + "size": [ + 768, + 768 + ], + "mode": "RGBA", + "bytes": 354998, + "sha256": "2f91fc54cb8cc5e5bff03f57fb9704260bfaf63e001ae4db86ed9fc719c4e7a8" + }, + { + "path": "assets/ashen/enemies/roadie.png", + "size": [ + 768, + 768 + ], + "mode": "RGBA", + "bytes": 302641, + "sha256": "977232f8bba1c37c71da83ebc8c0a5aa083d555790a52992803742e118946ba4" + }, + { + "path": "assets/ashen/environment/abbey_back.png", + "size": [ + 1774, + 887 + ], + "mode": "RGB", + "bytes": 3630859, + "sha256": "3ce55b9d4a714cf1e3e8ccf616a8cdcb3bd3ec6897766a2f380801315d91939e" + }, + { + "path": "assets/ashen/environment/abbey_wall.png", + "size": [ + 640, + 320 + ], + "mode": "RGB", + "bytes": 510026, + "sha256": "037b7534ae2a7c5254b50400718314664819e75585a9f851b1f7b7ad356c8842" + }, + { + "path": "assets/ashen/environment/altar.png", + "size": [ + 160, + 148 + ], + "mode": "RGBA", + "bytes": 53256, + "sha256": "da6ce45809314258accaf48ef75323d1bf4a669adc7f9af8c477bcec58589394" + }, + { + "path": "assets/ashen/environment/amplifier.png", + "size": [ + 76, + 80 + ], + "mode": "RGBA", + "bytes": 18086, + "sha256": "d54940df542bac664a350006fe21725184667e4806bdb9cc234a12cc17cd3309" + }, + { + "path": "assets/ashen/environment/banner.png", + "size": [ + 112, + 152 + ], + "mode": "RGBA", + "bytes": 27564, + "sha256": "c9d813b477ec061cd5b1d6cd6ea511673ed9de95bdf495bd5d1b85697c1081b1" + }, + { + "path": "assets/ashen/environment/barrel.png", + "size": [ + 64, + 80 + ], + "mode": "RGBA", + "bytes": 14647, + "sha256": "9db6d5fa7f29597c46b77116064be87cd53297424103e14d6bc7ce7debe29ca1" + }, + { + "path": "assets/ashen/environment/candelabra.png", + "size": [ + 82, + 168 + ], + "mode": "RGBA", + "bytes": 19784, + "sha256": "59fadaadce19d71ed10d6faf40156b920c86edab6d1abc7868a385fc5d551da0" + }, + { + "path": "assets/ashen/environment/city_far.png", + "size": [ + 1774, + 887 + ], + "mode": "RGB", + "bytes": 2372984, + "sha256": "fcfd8f61549f2fd617ae166a9b79134cacf50c2e1d8c333dff0ecb31b020b10c" + }, + { + "path": "assets/ashen/environment/city_mid.png", + "size": [ + 1774, + 887 + ], + "mode": "RGBA", + "bytes": 2281186, + "sha256": "d9e553e42ba678129dd11ae3254fd5f8c368ada875ac6574766a8eeafacf2f94" + }, + { + "path": "assets/ashen/environment/column.png", + "size": [ + 96, + 244 + ], + "mode": "RGBA", + "bytes": 52171, + "sha256": "dbbdd422398f255507f8c510bc00f6b8ac304a629bfddcded7d70096dbb66116" + }, + { + "path": "assets/ashen/environment/crate.png", + "size": [ + 64, + 64 + ], + "mode": "RGBA", + "bytes": 12140, + "sha256": "e4555d67496aac496c83eb396273a694af804c00f01589dd3b242c1cec44a8ef" + }, + { + "path": "assets/ashen/environment/fence.png", + "size": [ + 208, + 204 + ], + "mode": "RGBA", + "bytes": 91399, + "sha256": "d2d16b811de21fc5a9034eac810806371177dca907c5df4cb9531b4180200cc1" + }, + { + "path": "assets/ashen/environment/foundation.png", + "size": [ + 640, + 320 + ], + "mode": "RGB", + "bytes": 512646, + "sha256": "bc5638f370f2715abd0240945b372b812895fcf272bcf2c0c5617ef16909e8aa" + }, + { + "path": "assets/ashen/environment/gate_arch.png", + "size": [ + 260, + 138 + ], + "mode": "RGBA", + "bytes": 79278, + "sha256": "fd394eb9f85ff371ef0f29970335d961791046a632fdf26da2da60dd279d413a" + }, + { + "path": "assets/ashen/environment/ivy.png", + "size": [ + 120, + 128 + ], + "mode": "RGBA", + "bytes": 26131, + "sha256": "e0d3212f706eca6f95872548356b800d1cf549091ed82b5967ca256ee2c7a550" + }, + { + "path": "assets/ashen/environment/near_ruins.png", + "size": [ + 2048, + 576 + ], + "mode": "RGBA", + "bytes": 277011, + "sha256": "f72569814a15f01b25596fcfd58f27338306d15531cf94d071c51b515da7d8e1" + }, + { + "path": "assets/ashen/environment/ossuary_back.png", + "size": [ + 1774, + 887 + ], + "mode": "RGB", + "bytes": 3064893, + "sha256": "1a8ad81ed08efd1a8f122e136cbeb46366cf945af6d95cf41726447dd58d1c7c" + }, + { + "path": "assets/ashen/environment/platform.png", + "size": [ + 512, + 54 + ], + "mode": "RGB", + "bytes": 72081, + "sha256": "21c550a73f3f2e0a47b67d4867a3e6f6b5d3691a576c288424a6b44486d4aedd" + }, + { + "path": "assets/ashen/environment/platform_arcade.png", + "size": [ + 512, + 64 + ], + "mode": "RGB", + "bytes": 77111, + "sha256": "86afa8d2a0b6c759926274f717fc32481aaa21f79c2bf7ffb53e30bb5d0750a9" + }, + { + "path": "assets/ashen/environment/platform_draped.png", + "size": [ + 512, + 58 + ], + "mode": "RGB", + "bytes": 72713, + "sha256": "f7ad4062b60de256cb9e90b07e541ed7c7baf3b0438ff33f9a915b716370f9ed" + }, + { + "path": "assets/ashen/environment/platform_skulls.png", + "size": [ + 512, + 54 + ], + "mode": "RGB", + "bytes": 71192, + "sha256": "0154e64b93bb4d291a1cf622d0709773dc8c05cfc8f2906122d0e0517a73e4bb" + }, + { + "path": "assets/ashen/environment/props_atlas.png", + "size": [ + 1448, + 1086 + ], + "mode": "RGBA", + "bytes": 1869802, + "sha256": "bf178fde13982a955c17ce86274d7dc03702830b2d7c1596452674e91818db3d" + }, + { + "path": "assets/ashen/environment/rubble.png", + "size": [ + 96, + 60 + ], + "mode": "RGBA", + "bytes": 14713, + "sha256": "ca3e8c7b92946f5b294f971e5fe26871bffb9dfa405c525061d10021c872f9d7" + }, + { + "path": "assets/ashen/environment/statue.png", + "size": [ + 120, + 244 + ], + "mode": "RGBA", + "bytes": 61405, + "sha256": "687cbb025c9033fa6df02ed0a1aa37a7eec2ff05532c1c2fcd11058361e8c9f7" + }, + { + "path": "assets/ashen/environment/stone_cap.png", + "size": [ + 640, + 16 + ], + "mode": "RGB", + "bytes": 27036, + "sha256": "d3ece945abaf6d31edbb1ae4052af2fd0048b82dd6b8edde2ae78cdb6f8e26e8" + }, + { + "path": "assets/ashen/environment/stone_fill.png", + "size": [ + 512, + 256 + ], + "mode": "RGB", + "bytes": 341577, + "sha256": "4e2eaf711cf3231b7a896be8267fc4d7f102e16b4ef6bfb93ddf3bf198d2f691" + }, + { + "path": "assets/ashen/environment/terrain_source.png", + "size": [ + 1254, + 1254 + ], + "mode": "RGB", + "bytes": 3777862, + "sha256": "d15e1088e775c71c4436e5299ce9362148e330a878ec0ae54ad4b69d044127c5" + }, + { + "path": "assets/ashen/environment/tombstone.png", + "size": [ + 70, + 82 + ], + "mode": "RGBA", + "bytes": 14031, + "sha256": "155094e9cddff67e051518034e3fe0abdddb42e0aed87680f92fbae34ec86608" + }, + { + "path": "assets/ashen/items/amplificador_11.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 2266, + "sha256": "ac0ee3203620edb06ef490db5b1c7db4683f0f9f473ae15a364d63ff8d735306" + }, + { + "path": "assets/ashen/items/baqueta_sismica.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1187, + "sha256": "fc523b7adbb756e314fe7e9ba2dc940366a1dad0fc4f833ad30501ec65ea6b7f" + }, + { + "path": "assets/ashen/items/beer.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 2293, + "sha256": "aac0e776138300e943925f1f6a041e06673d58df550751e464a6102460256fcf" + }, + { + "path": "assets/ashen/items/bocata_roadie.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1648, + "sha256": "f60efab6b4b3bc372bb188283c467b33b99b5e0f52a4a3ac568167a9a61171f8" + }, + { + "path": "assets/ashen/items/botas_doble_bombo.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 2175, + "sha256": "d09a0fc66c90d0b3660f49025d0a2121665c3bf2de2363ad3d63531d09fd6192" + }, + { + "path": "assets/ashen/items/casete_demo.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 2039, + "sha256": "dab64d0fd30c4356ba3ea282323501f7c290b0bc62e824a02f01f65d4f6cd522" + }, + { + "path": "assets/ashen/items/cinta_americana.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 2399, + "sha256": "45a32d5ba76cca8f566530a541b0ef6fa114d1ae4c60f14320e3ef15d3e1e8fc" + }, + { + "path": "assets/ashen/items/coffee.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1653, + "sha256": "8617d7d8e592b892a1e00953af0037a34797a8de94acfc82dad6635c237fa57b" + }, + { + "path": "assets/ashen/items/cuerda_titanio.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1389, + "sha256": "ecc761df4b7f81b36a00b35fe73dfbb42f9f8bf5d07899caf9de54b6c179e680" + }, + { + "path": "assets/ashen/items/lata_feedback.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1452, + "sha256": "26e1c35dc5863aece33e57fb6122dbd8d9319f17413eb91990c6df5ef7be297e" + }, + { + "path": "assets/ashen/items/lost_pick.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1988, + "sha256": "164bf927a182eccbbfb95e025e4aae2e0aa0f06717e9795aa7e61fd4d01b06bd" + }, + { + "path": "assets/ashen/items/muelles_stage.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1547, + "sha256": "5cd68e76065206ee21f6f92c6cbc0f1fd20c5bb6cbcadb220feae408cb405bfd" + }, + { + "path": "assets/ashen/items/pedal_distorsion.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 2405, + "sha256": "64b7aa3c6120fd72659ed8cfd7e3df468597c80bf49859354360200a60b322b7" + }, + { + "path": "assets/ashen/items/pizza_post_bolo.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1954, + "sha256": "8a53bd4a3805db6d9d37fe5d533b250d8433e436d65371049e825a3b5a315ae5" + }, + { + "path": "assets/ashen/items/pua_apocalipsis.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 2004, + "sha256": "030e47e8aeaf85e86ee80c98178dd5181446c189951988e708c9f56340a49311" + }, + { + "path": "assets/ashen/items/setlist_fin.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 2385, + "sha256": "28742295e9c6a6eae8f5cd3a6781b4329e95bb9759a334b8a1c41b466440300a" + }, + { + "path": "assets/ashen/items/tapones_tecnico.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1653, + "sha256": "339588ab6ed120585e4e1c52329629c78f432f894bb92bd3abffedbe6252d9c7" + }, + { + "path": "assets/ashen/items/tupper_bateria.png", + "size": [ + 32, + 32 + ], + "mode": "RGBA", + "bytes": 1868, + "sha256": "19079edc6ef75aaa3633f64bd03f77336ceccd5937d404676d122d59bf32db5e" + }, + { + "path": "assets/ashen/portraits/bassist.png", + "size": [ + 128, + 144 + ], + "mode": "RGBA", + "bytes": 20441, + "sha256": "51c8359e6affba94f51e439d74f7d91662f1bb73cb8117e3a97837b3a5ce22a5" + }, + { + "path": "assets/ashen/portraits/drummer.png", + "size": [ + 128, + 144 + ], + "mode": "RGBA", + "bytes": 18211, + "sha256": "e66bfd652ec48be97c903bbd3eb81881b9d63d68f4932ad9bddd3dfbe2c9267a" + }, + { + "path": "assets/ashen/portraits/guitarist.png", + "size": [ + 128, + 144 + ], + "mode": "RGBA", + "bytes": 19618, + "sha256": "bbf827dda09959234dc78c6f6194127d95941dfedd8f497fe8232ddb35d79c74" + }, + { + "path": "assets/ashen/portraits/singer.png", + "size": [ + 128, + 144 + ], + "mode": "RGBA", + "bytes": 18086, + "sha256": "fb8ace5ce41a8f5af48e85ce76929569e6322ee1ef5bc3715872d3dff26cdd69" + }, + { + "path": "assets/ashen/ui/boss_bar_frame.png", + "size": [ + 880, + 140 + ], + "mode": "RGBA", + "bytes": 84613, + "sha256": "8968348f4cf92d9ea560f35edb6498526ea26fa4c98e6e34f84400dcb5469f54" + }, + { + "path": "assets/ashen/ui/button_frame.png", + "size": [ + 280, + 98 + ], + "mode": "RGBA", + "bytes": 28017, + "sha256": "1baadd2be1d577bcab092b1c19ea8be73a811a599e157b477827fb072a4ac599" + }, + { + "path": "assets/ashen/ui/button_plate.png", + "size": [ + 280, + 70 + ], + "mode": "RGBA", + "bytes": 25178, + "sha256": "937ad40026d96533ae69099ebb8f95acd3f55492a47e659e9ce0b40df9bbb1e8" + }, + { + "path": "assets/ashen/ui/hud_frame.png", + "size": [ + 432, + 144 + ], + "mode": "RGBA", + "bytes": 51089, + "sha256": "160740078720e9e7c174d399e7999c551b497ae725d40672149dcf8225d178d0" + }, + { + "path": "assets/ashen/ui/portrait_frame.png", + "size": [ + 124, + 144 + ], + "mode": "RGBA", + "bytes": 19874, + "sha256": "103a7125d6bd1507a81fe736097b0fa936cad31a08b6bfc1e729013a655b44f8" + }, + { + "path": "assets/ashen/ui/title.png", + "size": [ + 880, + 245 + ], + "mode": "RGBA", + "bytes": 299327, + "sha256": "a70462b591afec58cf6b08e9102a4384edaa3861b95980f1f1404c849ec2fe8d" + } + ] +} diff --git a/assets/ashen/atlas_packing.json b/assets/ashen/atlas_packing.json new file mode 100644 index 0000000..017b159 --- /dev/null +++ b/assets/ashen/atlas_packing.json @@ -0,0 +1,2717 @@ +{ + "player_packing": { + "guitarist": { + "file": "guitarist.png", + "size": [ + 1152, + 768 + ], + "columns": 6, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1536, + 1024 + ], + "scale": 0.5638766519823789, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 75, + 18, + 228, + 245 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 1, + "source_bounds": [ + 75, + 13, + 228, + 244 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 2, + "source_bounds": [ + 61, + 21, + 223, + 244 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 3, + "source_bounds": [ + 66, + 30, + 222, + 244 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 4, + "source_bounds": [ + 65, + 25, + 219, + 244 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 5, + "source_bounds": [ + 55, + 25, + 214, + 244 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 6, + "source_bounds": [ + 73, + 29, + 216, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 7, + "source_bounds": [ + 69, + 26, + 217, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 8, + "source_bounds": [ + 65, + 13, + 220, + 216 + ], + "offset": [ + 24, + 30 + ] + }, + { + "frame": 9, + "source_bounds": [ + 67, + 22, + 221, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 10, + "source_bounds": [ + 64, + 73, + 220, + 247 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 11, + "source_bounds": [ + 54, + 98, + 220, + 247 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 12, + "source_bounds": [ + 40, + 29, + 227, + 245 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 13, + "source_bounds": [ + 42, + 28, + 231, + 245 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 14, + "source_bounds": [ + 41, + 28, + 224, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 15, + "source_bounds": [ + 40, + 27, + 222, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 16, + "source_bounds": [ + 32, + 42, + 228, + 247 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 17, + "source_bounds": [ + 33, + 43, + 226, + 247 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 18, + "source_bounds": [ + 31, + 27, + 228, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 19, + "source_bounds": [ + 33, + 35, + 227, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 20, + "source_bounds": [ + 33, + 36, + 222, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 21, + "source_bounds": [ + 8, + 40, + 226, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 22, + "source_bounds": [ + 30, + 87, + 256, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 23, + "source_bounds": [ + 0, + 160, + 248, + 243 + ], + "offset": [ + 24, + 15 + ] + } + ] + }, + "drummer": { + "file": "drummer.png", + "size": [ + 1152, + 768 + ], + "columns": 6, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1536, + 1024 + ], + "scale": 0.5663716814159292, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 81, + 20, + 193, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 1, + "source_bounds": [ + 82, + 20, + 194, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 2, + "source_bounds": [ + 64, + 25, + 199, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 3, + "source_bounds": [ + 81, + 33, + 193, + 245 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 4, + "source_bounds": [ + 91, + 29, + 192, + 245 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 5, + "source_bounds": [ + 53, + 34, + 205, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 6, + "source_bounds": [ + 82, + 34, + 196, + 244 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 7, + "source_bounds": [ + 93, + 38, + 188, + 244 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 8, + "source_bounds": [ + 81, + 12, + 185, + 200 + ], + "offset": [ + 24, + 39 + ] + }, + { + "frame": 9, + "source_bounds": [ + 81, + 25, + 189, + 238 + ], + "offset": [ + 24, + 17 + ] + }, + { + "frame": 10, + "source_bounds": [ + 64, + 62, + 186, + 247 + ], + "offset": [ + 24, + 12 + ] + }, + { + "frame": 11, + "source_bounds": [ + 53, + 94, + 213, + 247 + ], + "offset": [ + 24, + 12 + ] + }, + { + "frame": 12, + "source_bounds": [ + 52, + 47, + 194, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 13, + "source_bounds": [ + 58, + 42, + 199, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 14, + "source_bounds": [ + 36, + 43, + 242, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 15, + "source_bounds": [ + 42, + 42, + 192, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 16, + "source_bounds": [ + 57, + 27, + 194, + 247 + ], + "offset": [ + 24, + 12 + ] + }, + { + "frame": 17, + "source_bounds": [ + 48, + 19, + 211, + 247 + ], + "offset": [ + 24, + 12 + ] + }, + { + "frame": 18, + "source_bounds": [ + 42, + 44, + 211, + 245 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 19, + "source_bounds": [ + 42, + 56, + 210, + 246 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 20, + "source_bounds": [ + 44, + 13, + 210, + 245 + ], + "offset": [ + 24, + 13 + ] + }, + { + "frame": 21, + "source_bounds": [ + 32, + 46, + 206, + 244 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 22, + "source_bounds": [ + 33, + 92, + 256, + 243 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 23, + "source_bounds": [ + 0, + 178, + 252, + 245 + ], + "offset": [ + 24, + 13 + ] + } + ] + }, + "bassist": { + "file": "bassist.png", + "size": [ + 1152, + 768 + ], + "columns": 6, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1536, + 1024 + ], + "scale": 0.5688888888888889, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 59, + 22, + 218, + 247 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 1, + "source_bounds": [ + 59, + 22, + 216, + 247 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 2, + "source_bounds": [ + 43, + 29, + 214, + 245 + ], + "offset": [ + 23, + 13 + ] + }, + { + "frame": 3, + "source_bounds": [ + 67, + 37, + 213, + 245 + ], + "offset": [ + 23, + 13 + ] + }, + { + "frame": 4, + "source_bounds": [ + 67, + 32, + 215, + 246 + ], + "offset": [ + 23, + 12 + ] + }, + { + "frame": 5, + "source_bounds": [ + 38, + 36, + 215, + 246 + ], + "offset": [ + 23, + 12 + ] + }, + { + "frame": 6, + "source_bounds": [ + 75, + 36, + 215, + 247 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 7, + "source_bounds": [ + 78, + 33, + 218, + 247 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 8, + "source_bounds": [ + 68, + 71, + 223, + 247 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 9, + "source_bounds": [ + 62, + 20, + 215, + 223 + ], + "offset": [ + 23, + 25 + ] + }, + { + "frame": 10, + "source_bounds": [ + 57, + 32, + 211, + 245 + ], + "offset": [ + 23, + 13 + ] + }, + { + "frame": 11, + "source_bounds": [ + 54, + 89, + 223, + 247 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 12, + "source_bounds": [ + 42, + 41, + 219, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 13, + "source_bounds": [ + 46, + 41, + 221, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 14, + "source_bounds": [ + 41, + 41, + 222, + 249 + ], + "offset": [ + 23, + 10 + ] + }, + { + "frame": 15, + "source_bounds": [ + 43, + 36, + 215, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 16, + "source_bounds": [ + 42, + 41, + 215, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 17, + "source_bounds": [ + 32, + 41, + 214, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 18, + "source_bounds": [ + 41, + 40, + 214, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 19, + "source_bounds": [ + 41, + 50, + 218, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 20, + "source_bounds": [ + 38, + 71, + 226, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 21, + "source_bounds": [ + 24, + 50, + 207, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 22, + "source_bounds": [ + 21, + 83, + 256, + 248 + ], + "offset": [ + 23, + 11 + ] + }, + { + "frame": 23, + "source_bounds": [ + 0, + 165, + 246, + 246 + ], + "offset": [ + 23, + 12 + ] + } + ] + }, + "singer": { + "file": "singer.png", + "size": [ + 1152, + 768 + ], + "columns": 6, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1536, + 1024 + ], + "scale": 0.5446808510638298, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 78, + 14, + 182, + 249 + ], + "offset": [ + 26, + 16 + ] + }, + { + "frame": 1, + "source_bounds": [ + 80, + 14, + 182, + 249 + ], + "offset": [ + 26, + 16 + ] + }, + { + "frame": 2, + "source_bounds": [ + 63, + 22, + 205, + 248 + ], + "offset": [ + 26, + 17 + ] + }, + { + "frame": 3, + "source_bounds": [ + 90, + 28, + 184, + 246 + ], + "offset": [ + 26, + 18 + ] + }, + { + "frame": 4, + "source_bounds": [ + 96, + 20, + 188, + 248 + ], + "offset": [ + 26, + 17 + ] + }, + { + "frame": 5, + "source_bounds": [ + 64, + 25, + 212, + 246 + ], + "offset": [ + 26, + 18 + ] + }, + { + "frame": 6, + "source_bounds": [ + 66, + 27, + 184, + 246 + ], + "offset": [ + 26, + 18 + ] + }, + { + "frame": 7, + "source_bounds": [ + 97, + 23, + 185, + 248 + ], + "offset": [ + 26, + 17 + ] + }, + { + "frame": 8, + "source_bounds": [ + 73, + 13, + 185, + 210 + ], + "offset": [ + 26, + 38 + ] + }, + { + "frame": 9, + "source_bounds": [ + 69, + 19, + 185, + 239 + ], + "offset": [ + 26, + 22 + ] + }, + { + "frame": 10, + "source_bounds": [ + 60, + 73, + 191, + 249 + ], + "offset": [ + 26, + 16 + ] + }, + { + "frame": 11, + "source_bounds": [ + 50, + 109, + 219, + 248 + ], + "offset": [ + 26, + 17 + ] + }, + { + "frame": 12, + "source_bounds": [ + 41, + 48, + 206, + 250 + ], + "offset": [ + 26, + 16 + ] + }, + { + "frame": 13, + "source_bounds": [ + 49, + 45, + 209, + 250 + ], + "offset": [ + 26, + 16 + ] + }, + { + "frame": 14, + "source_bounds": [ + 43, + 38, + 232, + 248 + ], + "offset": [ + 26, + 17 + ] + }, + { + "frame": 15, + "source_bounds": [ + 56, + 36, + 192, + 250 + ], + "offset": [ + 26, + 16 + ] + }, + { + "frame": 16, + "source_bounds": [ + 60, + 32, + 194, + 250 + ], + "offset": [ + 26, + 16 + ] + }, + { + "frame": 17, + "source_bounds": [ + 54, + 32, + 223, + 250 + ], + "offset": [ + 26, + 16 + ] + }, + { + "frame": 18, + "source_bounds": [ + 48, + 30, + 218, + 248 + ], + "offset": [ + 26, + 17 + ] + }, + { + "frame": 19, + "source_bounds": [ + 39, + 60, + 224, + 247 + ], + "offset": [ + 26, + 17 + ] + }, + { + "frame": 20, + "source_bounds": [ + 32, + 76, + 220, + 246 + ], + "offset": [ + 26, + 18 + ] + }, + { + "frame": 21, + "source_bounds": [ + 33, + 47, + 199, + 246 + ], + "offset": [ + 26, + 18 + ] + }, + { + "frame": 22, + "source_bounds": [ + 31, + 104, + 256, + 247 + ], + "offset": [ + 26, + 17 + ] + }, + { + "frame": 23, + "source_bounds": [ + 0, + 174, + 247, + 242 + ], + "offset": [ + 26, + 20 + ] + } + ] + } + }, + "enemy_packing": { + "roadie": { + "file": "roadie.png", + "size": [ + 768, + 768 + ], + "columns": 4, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1254, + 1254 + ], + "scale": 0.43986254295532645, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 90, + 12, + 229, + 303 + ], + "offset": [ + 27, + 19 + ] + }, + { + "frame": 1, + "source_bounds": [ + 94, + 12, + 229, + 303 + ], + "offset": [ + 27, + 19 + ] + }, + { + "frame": 2, + "source_bounds": [ + 83, + 22, + 255, + 303 + ], + "offset": [ + 27, + 19 + ] + }, + { + "frame": 3, + "source_bounds": [ + 87, + 29, + 226, + 302 + ], + "offset": [ + 27, + 19 + ] + }, + { + "frame": 4, + "source_bounds": [ + 93, + 26, + 231, + 302 + ], + "offset": [ + 27, + 19 + ] + }, + { + "frame": 5, + "source_bounds": [ + 58, + 32, + 261, + 302 + ], + "offset": [ + 27, + 19 + ] + }, + { + "frame": 6, + "source_bounds": [ + 84, + 40, + 225, + 302 + ], + "offset": [ + 27, + 19 + ] + }, + { + "frame": 7, + "source_bounds": [ + 73, + 21, + 213, + 302 + ], + "offset": [ + 27, + 19 + ] + }, + { + "frame": 8, + "source_bounds": [ + 65, + 27, + 245, + 306 + ], + "offset": [ + 27, + 17 + ] + }, + { + "frame": 9, + "source_bounds": [ + 31, + 39, + 298, + 306 + ], + "offset": [ + 27, + 17 + ] + }, + { + "frame": 10, + "source_bounds": [ + 59, + 32, + 224, + 306 + ], + "offset": [ + 27, + 17 + ] + }, + { + "frame": 11, + "source_bounds": [ + 65, + 14, + 237, + 259 + ], + "offset": [ + 27, + 38 + ] + }, + { + "frame": 12, + "source_bounds": [ + 53, + 49, + 252, + 296 + ], + "offset": [ + 27, + 22 + ] + }, + { + "frame": 13, + "source_bounds": [ + 44, + 37, + 247, + 297 + ], + "offset": [ + 27, + 21 + ] + }, + { + "frame": 14, + "source_bounds": [ + 41, + 116, + 262, + 294 + ], + "offset": [ + 27, + 23 + ] + }, + { + "frame": 15, + "source_bounds": [ + 12, + 195, + 308, + 292 + ], + "offset": [ + 27, + 24 + ] + } + ] + }, + "pogo_fan": { + "file": "pogo_fan.png", + "size": [ + 768, + 768 + ], + "columns": 4, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1254, + 1254 + ], + "scale": 0.46545454545454545, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 85, + 22, + 237, + 297 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 1, + "source_bounds": [ + 85, + 16, + 239, + 297 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 2, + "source_bounds": [ + 82, + 27, + 261, + 297 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 3, + "source_bounds": [ + 79, + 42, + 250, + 296 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 4, + "source_bounds": [ + 69, + 37, + 246, + 296 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 5, + "source_bounds": [ + 55, + 39, + 261, + 296 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 6, + "source_bounds": [ + 79, + 42, + 228, + 296 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 7, + "source_bounds": [ + 83, + 34, + 221, + 296 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 8, + "source_bounds": [ + 65, + 42, + 257, + 297 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 9, + "source_bounds": [ + 44, + 41, + 303, + 297 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 10, + "source_bounds": [ + 73, + 36, + 229, + 297 + ], + "offset": [ + 23, + 14 + ] + }, + { + "frame": 11, + "source_bounds": [ + 62, + 8, + 267, + 270 + ], + "offset": [ + 23, + 26 + ] + }, + { + "frame": 12, + "source_bounds": [ + 65, + 48, + 245, + 295 + ], + "offset": [ + 23, + 15 + ] + }, + { + "frame": 13, + "source_bounds": [ + 50, + 40, + 243, + 298 + ], + "offset": [ + 23, + 13 + ] + }, + { + "frame": 14, + "source_bounds": [ + 38, + 109, + 313, + 298 + ], + "offset": [ + 23, + 13 + ] + }, + { + "frame": 15, + "source_bounds": [ + 0, + 212, + 307, + 295 + ], + "offset": [ + 23, + 15 + ] + } + ] + }, + "backstage_guard": { + "file": "backstage_guard.png", + "size": [ + 768, + 768 + ], + "columns": 4, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1254, + 1254 + ], + "scale": 0.4620938628158845, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 61, + 17, + 251, + 294 + ], + "offset": [ + 23, + 16 + ] + }, + { + "frame": 1, + "source_bounds": [ + 57, + 13, + 251, + 294 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 2, + "source_bounds": [ + 50, + 23, + 263, + 293 + ], + "offset": [ + 24, + 17 + ] + }, + { + "frame": 3, + "source_bounds": [ + 53, + 37, + 238, + 293 + ], + "offset": [ + 23, + 17 + ] + }, + { + "frame": 4, + "source_bounds": [ + 51, + 27, + 256, + 290 + ], + "offset": [ + 23, + 18 + ] + }, + { + "frame": 5, + "source_bounds": [ + 52, + 24, + 272, + 292 + ], + "offset": [ + 24, + 17 + ] + }, + { + "frame": 6, + "source_bounds": [ + 48, + 33, + 240, + 292 + ], + "offset": [ + 24, + 17 + ] + }, + { + "frame": 7, + "source_bounds": [ + 53, + 24, + 234, + 290 + ], + "offset": [ + 23, + 18 + ] + }, + { + "frame": 8, + "source_bounds": [ + 29, + 44, + 255, + 295 + ], + "offset": [ + 23, + 16 + ] + }, + { + "frame": 9, + "source_bounds": [ + 17, + 40, + 294, + 295 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 10, + "source_bounds": [ + 38, + 33, + 260, + 295 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 11, + "source_bounds": [ + 42, + 6, + 271, + 286 + ], + "offset": [ + 23, + 20 + ] + }, + { + "frame": 12, + "source_bounds": [ + 16, + 43, + 279, + 282 + ], + "offset": [ + 23, + 22 + ] + }, + { + "frame": 13, + "source_bounds": [ + 13, + 33, + 250, + 289 + ], + "offset": [ + 24, + 18 + ] + }, + { + "frame": 14, + "source_bounds": [ + 0, + 107, + 313, + 289 + ], + "offset": [ + 24, + 18 + ] + }, + { + "frame": 15, + "source_bounds": [ + 0, + 190, + 303, + 291 + ], + "offset": [ + 23, + 18 + ] + } + ] + }, + "rival_guitarist": { + "file": "rival_guitarist.png", + "size": [ + 768, + 768 + ], + "columns": 4, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1254, + 1254 + ], + "scale": 0.45878136200716846, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 65, + 19, + 265, + 298 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 1, + "source_bounds": [ + 60, + 18, + 266, + 297 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 2, + "source_bounds": [ + 67, + 23, + 262, + 297 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 3, + "source_bounds": [ + 63, + 32, + 262, + 298 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 4, + "source_bounds": [ + 53, + 28, + 262, + 296 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 5, + "source_bounds": [ + 55, + 28, + 265, + 297 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 6, + "source_bounds": [ + 55, + 32, + 263, + 297 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 7, + "source_bounds": [ + 68, + 33, + 263, + 295 + ], + "offset": [ + 24, + 17 + ] + }, + { + "frame": 8, + "source_bounds": [ + 30, + 30, + 272, + 299 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 9, + "source_bounds": [ + 16, + 38, + 297, + 299 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 10, + "source_bounds": [ + 48, + 30, + 263, + 298 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 11, + "source_bounds": [ + 59, + 5, + 263, + 259 + ], + "offset": [ + 24, + 33 + ] + }, + { + "frame": 12, + "source_bounds": [ + 59, + 26, + 264, + 276 + ], + "offset": [ + 24, + 25 + ] + }, + { + "frame": 13, + "source_bounds": [ + 38, + 29, + 279, + 293 + ], + "offset": [ + 24, + 18 + ] + }, + { + "frame": 14, + "source_bounds": [ + 29, + 104, + 265, + 296 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 15, + "source_bounds": [ + 0, + 200, + 303, + 296 + ], + "offset": [ + 24, + 16 + ] + } + ] + }, + "feedback_tech": { + "file": "feedback_tech.png", + "size": [ + 768, + 768 + ], + "columns": 4, + "rows": 4, + "cell": 192, + "standing_height": 128, + "baseline": 152, + "source_size": [ + 1254, + 1254 + ], + "scale": 0.45714285714285713, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 60, + 22, + 251, + 302 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 1, + "source_bounds": [ + 58, + 19, + 249, + 301 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 2, + "source_bounds": [ + 54, + 22, + 254, + 301 + ], + "offset": [ + 24, + 14 + ] + }, + { + "frame": 3, + "source_bounds": [ + 72, + 25, + 253, + 300 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 4, + "source_bounds": [ + 79, + 20, + 244, + 300 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 5, + "source_bounds": [ + 66, + 22, + 266, + 300 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 6, + "source_bounds": [ + 75, + 27, + 246, + 297 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 7, + "source_bounds": [ + 86, + 22, + 231, + 299 + ], + "offset": [ + 24, + 15 + ] + }, + { + "frame": 8, + "source_bounds": [ + 46, + 30, + 250, + 297 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 9, + "source_bounds": [ + 16, + 30, + 307, + 297 + ], + "offset": [ + 24, + 16 + ] + }, + { + "frame": 10, + "source_bounds": [ + 44, + 27, + 244, + 296 + ], + "offset": [ + 24, + 17 + ] + }, + { + "frame": 11, + "source_bounds": [ + 68, + 10, + 263, + 256 + ], + "offset": [ + 24, + 35 + ] + }, + { + "frame": 12, + "source_bounds": [ + 44, + 25, + 258, + 264 + ], + "offset": [ + 24, + 31 + ] + }, + { + "frame": 13, + "source_bounds": [ + 39, + 32, + 253, + 294 + ], + "offset": [ + 24, + 18 + ] + }, + { + "frame": 14, + "source_bounds": [ + 1, + 90, + 266, + 291 + ], + "offset": [ + 24, + 19 + ] + }, + { + "frame": 15, + "source_bounds": [ + 4, + 187, + 304, + 290 + ], + "offset": [ + 24, + 19 + ] + } + ] + }, + "spectral_death": { + "file": "spectral_death.png", + "size": [ + 1536, + 1536 + ], + "columns": 4, + "rows": 4, + "cell": 384, + "standing_height": 256, + "baseline": 336, + "source_size": [ + 1254, + 1254 + ], + "scale": 0.8648648648648649, + "frames": [ + { + "frame": 0, + "source_bounds": [ + 52, + 7, + 275, + 303 + ], + "offset": [ + 56, + 74 + ] + }, + { + "frame": 1, + "source_bounds": [ + 28, + 8, + 267, + 303 + ], + "offset": [ + 57, + 74 + ] + }, + { + "frame": 2, + "source_bounds": [ + 13, + 9, + 290, + 299 + ], + "offset": [ + 57, + 77 + ] + }, + { + "frame": 3, + "source_bounds": [ + 23, + 9, + 295, + 302 + ], + "offset": [ + 56, + 75 + ] + }, + { + "frame": 4, + "source_bounds": [ + 27, + 6, + 314, + 301 + ], + "offset": [ + 56, + 76 + ] + }, + { + "frame": 5, + "source_bounds": [ + 0, + 8, + 278, + 301 + ], + "offset": [ + 57, + 76 + ] + }, + { + "frame": 6, + "source_bounds": [ + 4, + 8, + 284, + 300 + ], + "offset": [ + 57, + 77 + ] + }, + { + "frame": 7, + "source_bounds": [ + 33, + 7, + 290, + 301 + ], + "offset": [ + 56, + 76 + ] + }, + { + "frame": 8, + "source_bounds": [ + 16, + 13, + 314, + 299 + ], + "offset": [ + 56, + 77 + ] + }, + { + "frame": 9, + "source_bounds": [ + 0, + 49, + 292, + 291 + ], + "offset": [ + 57, + 84 + ] + }, + { + "frame": 10, + "source_bounds": [ + 2, + 4, + 313, + 308 + ], + "offset": [ + 57, + 70 + ] + }, + { + "frame": 11, + "source_bounds": [ + 0, + 4, + 299, + 308 + ], + "offset": [ + 56, + 70 + ] + }, + { + "frame": 12, + "source_bounds": [ + 20, + 11, + 314, + 299 + ], + "offset": [ + 56, + 77 + ] + }, + { + "frame": 13, + "source_bounds": [ + 0, + 44, + 313, + 294 + ], + "offset": [ + 57, + 82 + ] + }, + { + "frame": 14, + "source_bounds": [ + 0, + 93, + 313, + 292 + ], + "offset": [ + 57, + 83 + ] + }, + { + "frame": 15, + "source_bounds": [ + 0, + 146, + 299, + 288 + ], + "offset": [ + 56, + 87 + ] + } + ] + }, + "spectral_scythe": { + "size": [ + 192, + 288 + ], + "source_size": [ + 1086, + 1448 + ], + "source_bounds": [ + 144, + 16, + 859, + 1433 + ], + "source_grip": [ + 651, + 780 + ], + "offset": [ + -7, + 21 + ], + "scale": 0.15808045165843332 + } + } +} diff --git a/assets/ashen/bosses/spectral_death.png b/assets/ashen/bosses/spectral_death.png new file mode 100644 index 0000000..24bbc4b Binary files /dev/null and b/assets/ashen/bosses/spectral_death.png differ diff --git a/assets/ashen/bosses/spectral_scythe.png b/assets/ashen/bosses/spectral_scythe.png new file mode 100644 index 0000000..0ccb808 Binary files /dev/null and b/assets/ashen/bosses/spectral_scythe.png differ diff --git a/assets/ashen/characters/bassist.png b/assets/ashen/characters/bassist.png new file mode 100644 index 0000000..fa66708 Binary files /dev/null and b/assets/ashen/characters/bassist.png differ diff --git a/assets/ashen/characters/drummer.png b/assets/ashen/characters/drummer.png new file mode 100644 index 0000000..cec2fbd Binary files /dev/null and b/assets/ashen/characters/drummer.png differ diff --git a/assets/ashen/characters/guitarist.png b/assets/ashen/characters/guitarist.png new file mode 100644 index 0000000..e4b7ced Binary files /dev/null and b/assets/ashen/characters/guitarist.png differ diff --git a/assets/ashen/characters/singer.png b/assets/ashen/characters/singer.png new file mode 100644 index 0000000..26a5807 Binary files /dev/null and b/assets/ashen/characters/singer.png differ diff --git a/assets/ashen/effects/README.md b/assets/ashen/effects/README.md new file mode 100644 index 0000000..61bbec4 --- /dev/null +++ b/assets/ashen/effects/README.md @@ -0,0 +1,33 @@ +# Efectos de combate — Mortal Maze + +`combat_atlas.png` contiene **12 sprites originales** en una cuadrícula de +**6 columnas × 2 filas**, con celdas de **128 × 128 px**. El atlas completo ocupa +768 × 256 px. Cada columna tiene dos fases dibujadas: contacto y fragmentación. + +| Columna, desde 0 | Familia | Uso | +| --- | --- | --- | +| 0 | Tajo de plata, hueso y sangre | Golpe básico. | +| 1 | Impacto de hierro y fragmentos de hueso | Impactos, muerte y roturas. | +| 2 | Ceniza, polvo y escombros | Aterrizajes, golpe al suelo y roturas. | +| 3 | Descarga espectral turquesa | Solo y golpe eléctrico de Diego. | +| 4 | Metal y resonancia dorada | Ondas de Héctor y platos de Iván. | +| 5 | Resonancia violeta fragmentada | Pulso y grietas de Fer. | + +El arte se generó sobre transparencia, se separó por celdas y se redujo mediante +vecino más próximo. Las dos fases de cada familia comparten escala. Los efectos +de suelo conservan la misma línea de apoyo. La cobertura alfa es binaria para +que no aparezcan halos de suavizado sobre el escenario. + +`effects/combat_fx.gd` anima las dos fases, su desplazamiento y su desvanecimiento. +Las imágenes aportan la forma principal; anillos de un píxel, filamentos finos +y partículas pequeñas acompañan el alcance. Todo usa filtro de vecino más +próximo. No se crean colisiones ni proyectiles, ni se cambia el daño. + +Se conservan los trece nombres de efecto, la firma de `spawn`, sus duraciones y +el radio recibido del controlador. La fábrica carga el script por ruta sin una +referencia estática a su propia clase, evitando un ciclo de recursos al cerrar. + +El atlas se solicitó a ImageGen como seis familias de VFX gótico adulto, dos +fases por familia, píxeles definidos, materiales antiguos, sin texto, rejilla, +recuadros, personajes ni escenarios. No procede de sprites comerciales de +otros juegos y no requiere generación en tiempo de ejecución. diff --git a/assets/ashen/effects/combat_atlas.png b/assets/ashen/effects/combat_atlas.png new file mode 100644 index 0000000..c4c0eb0 Binary files /dev/null and b/assets/ashen/effects/combat_atlas.png differ diff --git a/assets/ashen/enemies/backstage_guard.png b/assets/ashen/enemies/backstage_guard.png new file mode 100644 index 0000000..9205da4 Binary files /dev/null and b/assets/ashen/enemies/backstage_guard.png differ diff --git a/assets/ashen/enemies/feedback_tech.png b/assets/ashen/enemies/feedback_tech.png new file mode 100644 index 0000000..c0b2834 Binary files /dev/null and b/assets/ashen/enemies/feedback_tech.png differ diff --git a/assets/ashen/enemies/pogo_fan.png b/assets/ashen/enemies/pogo_fan.png new file mode 100644 index 0000000..eb0f0da Binary files /dev/null and b/assets/ashen/enemies/pogo_fan.png differ diff --git a/assets/ashen/enemies/rival_guitarist.png b/assets/ashen/enemies/rival_guitarist.png new file mode 100644 index 0000000..bc36641 Binary files /dev/null and b/assets/ashen/enemies/rival_guitarist.png differ diff --git a/assets/ashen/enemies/roadie.png b/assets/ashen/enemies/roadie.png new file mode 100644 index 0000000..f38971c Binary files /dev/null and b/assets/ashen/enemies/roadie.png differ diff --git a/assets/ashen/environment/README.md b/assets/ashen/environment/README.md new file mode 100644 index 0000000..2bdeb20 --- /dev/null +++ b/assets/ashen/environment/README.md @@ -0,0 +1,68 @@ +# Entornos de ceniza + +Este paquete contiene el arte raster original utilizado por los tres niveles. +Las panorámicas, los materiales y los objetos se generaron para este proyecto; +no son sprites extraídos de los juegos de referencia. Los PNG ya están listos +para importar en Godot: el parche no requiere ejecutar un generador de arte. + +## Composición + +- **Calle del Feedback:** ciudad crepuscular, ruinas porticadas y objetos cercanos + en tres planos de parallax. Sus velocidades horizontales son 0,12, 0,34 y 0,63; + la geometría jugable permanece en el plano del mundo. +- **Abadía del Feedback:** el mural de la nave y el del campanario comparten una + pintura grande, pero muestran encuadres distintos. El órgano ocupa la nave; + las vidrieras de músicos dominan la subida. Los murales se desplazan lentamente + dentro de los límites de cada sala y no se estiran sobre todo el nivel. +- **Osario:** procesión exterior fría y una cámara monumental con ciudad al fondo, + rosetón, huesos y paños rojos. La puerta de hierro utiliza dos hojas raster + animadas y conserva el desbloqueo por enemigos derrotados. + +## Archivos fuente y piezas + +| Fuente | Tamaño | Uso | +|---|---:|---| +| `city_far.png` | 1774 × 887 | Ciudad y cielo del plano lejano | +| `city_mid.png` | 1774 × 887, alfa | Arcadas del plano intermedio | +| `abbey_back.png` | 1774 × 887 | Nave, órgano y vidrieras | +| `ossuary_back.png` | 1774 × 887 | Interior del osario | +| `terrain_source.png` | 1254 × 1254 | Atlas fuente de piedra y frisos | +| `props_atlas.png` | 1448 × 1086, alfa | Doce objetos originales; fondo extraído | +| `near_ruins.png` | 2048 × 576, alfa | Montaje espaciado de objetos del plano cercano | + +Las texturas de terreno se recortaron del atlas y se normalizaron con vecino +más cercano. Se añadió una copia reflejada junto a cada franja para cerrar la +unión horizontal. `stone_cap.png` marca la superficie sólida; `platform*.png` +añade talla, arcadas y paños debajo del canto. `foundation.png` y `abbey_wall.png` +permiten variar los muros sin cambiar su colisión. + +Los doce objetos son columna, estatua, estandarte, candelabro, altar, caja, +barril, lápida, verja, hiedra, escombros y amplificador. Se recortaron por celda, +eliminando márgenes transparentes, y se normalizaron al tamaño de presentación. +`gate_arch.png` procede de una arcada del plano intermedio. La placa de los +carteles reutiliza `../ui/button_plate.png`. + +## Integración en Godot + +La ventana de referencia es 1280 × 720 con cámara a 2× y filtro nearest. Los +fondos exteriores se muestran a media escala de sus PNG; los objetos y las +texturas de terreno utilizan una cuadrícula de píxeles más gruesa en primer plano. +La cámara mira 64 unidades por encima del personaje para mostrar arquitectura +y dejar el suelo en la parte inferior de la pantalla. + +`AshenVista` mantiene sprites persistentes y delega el desplazamiento horizontal +en `Parallax2D`. La actualización vertical solo modifica transformaciones cuando +se mueve la cámara. Los interiores utilizan una pasada de shader por mural; +la atmósfera añade una pasada de niebla sin lectura de pantalla y 36 partículas +por CPU. Las luces de candelabros no calculan sombras. + +`TerrainPiece.dimensions` continúa controlando la forma de colisión y la región +del relleno. `fascia_texture` y `fascia_height` añaden decoración colgante bajo +el borde: no amplían la colisión. Las medidas, alturas y recorridos originales +de las plataformas se conservan. Columnas, estatuas y soportes pintados son +decoración sin colisión salvo los obstáculos que ya eran sólidos. + +Las escenas de objetos mantienen los nombres del kit anterior para que los +niveles y las herramientas sigan encontrándolas. Por ejemplo, `streetlamp.tscn` +ahora contiene un candelabro, y `bench.tscn` un altar. Las escenas nuevas con +nombres propios están en `world/props/`. diff --git a/assets/ashen/environment/abbey_back.png b/assets/ashen/environment/abbey_back.png new file mode 100644 index 0000000..3eedf2b Binary files /dev/null and b/assets/ashen/environment/abbey_back.png differ diff --git a/assets/ashen/environment/abbey_wall.png b/assets/ashen/environment/abbey_wall.png new file mode 100644 index 0000000..304346f Binary files /dev/null and b/assets/ashen/environment/abbey_wall.png differ diff --git a/assets/ashen/environment/altar.png b/assets/ashen/environment/altar.png new file mode 100644 index 0000000..f13ca94 Binary files /dev/null and b/assets/ashen/environment/altar.png differ diff --git a/assets/ashen/environment/amplifier.png b/assets/ashen/environment/amplifier.png new file mode 100644 index 0000000..ccf3fd7 Binary files /dev/null and b/assets/ashen/environment/amplifier.png differ diff --git a/assets/ashen/environment/banner.png b/assets/ashen/environment/banner.png new file mode 100644 index 0000000..a483d5b Binary files /dev/null and b/assets/ashen/environment/banner.png differ diff --git a/assets/ashen/environment/barrel.png b/assets/ashen/environment/barrel.png new file mode 100644 index 0000000..1449657 Binary files /dev/null and b/assets/ashen/environment/barrel.png differ diff --git a/assets/ashen/environment/candelabra.png b/assets/ashen/environment/candelabra.png new file mode 100644 index 0000000..ebf7bb2 Binary files /dev/null and b/assets/ashen/environment/candelabra.png differ diff --git a/assets/ashen/environment/city_far.png b/assets/ashen/environment/city_far.png new file mode 100644 index 0000000..95da801 Binary files /dev/null and b/assets/ashen/environment/city_far.png differ diff --git a/assets/ashen/environment/city_mid.png b/assets/ashen/environment/city_mid.png new file mode 100644 index 0000000..a1ef9eb Binary files /dev/null and b/assets/ashen/environment/city_mid.png differ diff --git a/assets/ashen/environment/column.png b/assets/ashen/environment/column.png new file mode 100644 index 0000000..9bde813 Binary files /dev/null and b/assets/ashen/environment/column.png differ diff --git a/assets/ashen/environment/crate.png b/assets/ashen/environment/crate.png new file mode 100644 index 0000000..48e2fd9 Binary files /dev/null and b/assets/ashen/environment/crate.png differ diff --git a/assets/ashen/environment/fence.png b/assets/ashen/environment/fence.png new file mode 100644 index 0000000..a82f427 Binary files /dev/null and b/assets/ashen/environment/fence.png differ diff --git a/assets/ashen/environment/foundation.png b/assets/ashen/environment/foundation.png new file mode 100644 index 0000000..75b2a5a Binary files /dev/null and b/assets/ashen/environment/foundation.png differ diff --git a/assets/ashen/environment/gate_arch.png b/assets/ashen/environment/gate_arch.png new file mode 100644 index 0000000..48ead55 Binary files /dev/null and b/assets/ashen/environment/gate_arch.png differ diff --git a/assets/ashen/environment/ivy.png b/assets/ashen/environment/ivy.png new file mode 100644 index 0000000..c8f0779 Binary files /dev/null and b/assets/ashen/environment/ivy.png differ diff --git a/assets/ashen/environment/near_ruins.png b/assets/ashen/environment/near_ruins.png new file mode 100644 index 0000000..7c4c13b Binary files /dev/null and b/assets/ashen/environment/near_ruins.png differ diff --git a/assets/ashen/environment/ossuary_back.png b/assets/ashen/environment/ossuary_back.png new file mode 100644 index 0000000..3d67123 Binary files /dev/null and b/assets/ashen/environment/ossuary_back.png differ diff --git a/assets/ashen/environment/platform.png b/assets/ashen/environment/platform.png new file mode 100644 index 0000000..471f891 Binary files /dev/null and b/assets/ashen/environment/platform.png differ diff --git a/assets/ashen/environment/platform_arcade.png b/assets/ashen/environment/platform_arcade.png new file mode 100644 index 0000000..a5286f5 Binary files /dev/null and b/assets/ashen/environment/platform_arcade.png differ diff --git a/assets/ashen/environment/platform_draped.png b/assets/ashen/environment/platform_draped.png new file mode 100644 index 0000000..580fee7 Binary files /dev/null and b/assets/ashen/environment/platform_draped.png differ diff --git a/assets/ashen/environment/platform_skulls.png b/assets/ashen/environment/platform_skulls.png new file mode 100644 index 0000000..440f8d2 Binary files /dev/null and b/assets/ashen/environment/platform_skulls.png differ diff --git a/assets/ashen/environment/props_atlas.png b/assets/ashen/environment/props_atlas.png new file mode 100644 index 0000000..68ad857 Binary files /dev/null and b/assets/ashen/environment/props_atlas.png differ diff --git a/assets/ashen/environment/rubble.png b/assets/ashen/environment/rubble.png new file mode 100644 index 0000000..a58e828 Binary files /dev/null and b/assets/ashen/environment/rubble.png differ diff --git a/assets/ashen/environment/statue.png b/assets/ashen/environment/statue.png new file mode 100644 index 0000000..f185f06 Binary files /dev/null and b/assets/ashen/environment/statue.png differ diff --git a/assets/ashen/environment/stone_cap.png b/assets/ashen/environment/stone_cap.png new file mode 100644 index 0000000..02a5bf5 Binary files /dev/null and b/assets/ashen/environment/stone_cap.png differ diff --git a/assets/ashen/environment/stone_fill.png b/assets/ashen/environment/stone_fill.png new file mode 100644 index 0000000..3cbdc77 Binary files /dev/null and b/assets/ashen/environment/stone_fill.png differ diff --git a/assets/ashen/environment/terrain_source.png b/assets/ashen/environment/terrain_source.png new file mode 100644 index 0000000..f778498 Binary files /dev/null and b/assets/ashen/environment/terrain_source.png differ diff --git a/assets/ashen/environment/tombstone.png b/assets/ashen/environment/tombstone.png new file mode 100644 index 0000000..c8a02d3 Binary files /dev/null and b/assets/ashen/environment/tombstone.png differ diff --git a/assets/ashen/items/README.md b/assets/ashen/items/README.md new file mode 100644 index 0000000..5a4ff6d --- /dev/null +++ b/assets/ashen/items/README.md @@ -0,0 +1,42 @@ +# Objetos — Mortal Maze + +Dieciocho iconos originales de fantasía gótica generados como una hoja de +6 columnas y 3 filas, recortados por celda y por su alfa, y ajustados mediante +vecino más próximo a lienzos transparentes de 32 × 32 px. El objeto ocupa un +máximo de 30 px en su dimensión mayor. No contienen fondos, etiquetas ni sombras +rectangulares que tapen el escenario. + +La dirección de arte conserva la identidad de los objetos del juego, con +materiales desgastados, metal grabado, cuero, marfil y colores contenidos. +Los recursos `PickupData` apuntan directamente a estos PNG. La reliquia usa +la imagen embebida descrita al final; no hay cambios en efectos, probabilidades +ni valores. + +Orden de la hoja de producción: + +| Fila | Columna 1 | Columna 2 | Columna 3 | Columna 4 | Columna 5 | Columna 6 | +| --- | --- | --- | --- | --- | --- | --- | +| 1 | amplificador_11 | baqueta_sismica | beer | bocata_roadie | botas_doble_bombo | casete_demo | +| 2 | cinta_americana | coffee | cuerda_titanio | lata_feedback | muelles_stage | pedal_distorsion | +| 3 | pizza_post_bolo | pua_apocalipsis | setlist_fin | tapones_tecnico | tupper_bateria | lost_pick | + +El alfa se recortó a cobertura binaria para mantener píxeles nítidos y evitar +franjas de color al dibujarlos sobre fondos oscuros. El inventario los muestra +con filtro de vecino más próximo. Los iconos son arte original creado para +el proyecto y no proceden de recursos comerciales de otros videojuegos. + +Las etiquetas del mundo se muestran a 110 unidades del jugador. Conservan el +nombre y los avisos de recogida fallida, con un ancho acotado, texto centrado y +contraste sobre sombra. En el editor siguen visibles para colocar los objetos. + +## Icono de la coleccion al importar un proyecto nuevo + +`lost_pick.tres` incluye una copia exacta de los 4096 bytes RGBA del icono de +32 × 32 mediante subrecursos `Image` e `ImageTexture`. El PNG permanece como +fuente de arte. Esta excepcion evita que el autoload `PlayerProgress` intente +cargar una textura importada mientras Godot todavia esta creando su cache en +la primera apertura del ZIP. No se leen PNG sin importar en tiempo de ejecucion. + +La propiedad `RareItemData.icon` sigue siendo un `Texture2D`; el catalogo, el Id +`lost_pick`, sus bonificaciones y el formato de guardado no cambian. Si se edita +el PNG de esta reliquia, hay que regenerar tambien la imagen embebida. diff --git a/assets/ashen/items/amplificador_11.png b/assets/ashen/items/amplificador_11.png new file mode 100644 index 0000000..3f6e33e Binary files /dev/null and b/assets/ashen/items/amplificador_11.png differ diff --git a/assets/ashen/items/baqueta_sismica.png b/assets/ashen/items/baqueta_sismica.png new file mode 100644 index 0000000..7dc803d Binary files /dev/null and b/assets/ashen/items/baqueta_sismica.png differ diff --git a/assets/ashen/items/beer.png b/assets/ashen/items/beer.png new file mode 100644 index 0000000..d738962 Binary files /dev/null and b/assets/ashen/items/beer.png differ diff --git a/assets/ashen/items/bocata_roadie.png b/assets/ashen/items/bocata_roadie.png new file mode 100644 index 0000000..40de9a6 Binary files /dev/null and b/assets/ashen/items/bocata_roadie.png differ diff --git a/assets/ashen/items/botas_doble_bombo.png b/assets/ashen/items/botas_doble_bombo.png new file mode 100644 index 0000000..3197058 Binary files /dev/null and b/assets/ashen/items/botas_doble_bombo.png differ diff --git a/assets/ashen/items/casete_demo.png b/assets/ashen/items/casete_demo.png new file mode 100644 index 0000000..8e1b959 Binary files /dev/null and b/assets/ashen/items/casete_demo.png differ diff --git a/assets/ashen/items/cinta_americana.png b/assets/ashen/items/cinta_americana.png new file mode 100644 index 0000000..a3225db Binary files /dev/null and b/assets/ashen/items/cinta_americana.png differ diff --git a/assets/ashen/items/coffee.png b/assets/ashen/items/coffee.png new file mode 100644 index 0000000..1ace537 Binary files /dev/null and b/assets/ashen/items/coffee.png differ diff --git a/assets/ashen/items/cuerda_titanio.png b/assets/ashen/items/cuerda_titanio.png new file mode 100644 index 0000000..4d4233d Binary files /dev/null and b/assets/ashen/items/cuerda_titanio.png differ diff --git a/assets/ashen/items/lata_feedback.png b/assets/ashen/items/lata_feedback.png new file mode 100644 index 0000000..fd42549 Binary files /dev/null and b/assets/ashen/items/lata_feedback.png differ diff --git a/assets/ashen/items/lost_pick.png b/assets/ashen/items/lost_pick.png new file mode 100644 index 0000000..a076ffb Binary files /dev/null and b/assets/ashen/items/lost_pick.png differ diff --git a/assets/ashen/items/muelles_stage.png b/assets/ashen/items/muelles_stage.png new file mode 100644 index 0000000..56eee07 Binary files /dev/null and b/assets/ashen/items/muelles_stage.png differ diff --git a/assets/ashen/items/pedal_distorsion.png b/assets/ashen/items/pedal_distorsion.png new file mode 100644 index 0000000..39d8bba Binary files /dev/null and b/assets/ashen/items/pedal_distorsion.png differ diff --git a/assets/ashen/items/pizza_post_bolo.png b/assets/ashen/items/pizza_post_bolo.png new file mode 100644 index 0000000..f18938f Binary files /dev/null and b/assets/ashen/items/pizza_post_bolo.png differ diff --git a/assets/ashen/items/pua_apocalipsis.png b/assets/ashen/items/pua_apocalipsis.png new file mode 100644 index 0000000..ce12820 Binary files /dev/null and b/assets/ashen/items/pua_apocalipsis.png differ diff --git a/assets/ashen/items/setlist_fin.png b/assets/ashen/items/setlist_fin.png new file mode 100644 index 0000000..827ae16 Binary files /dev/null and b/assets/ashen/items/setlist_fin.png differ diff --git a/assets/ashen/items/tapones_tecnico.png b/assets/ashen/items/tapones_tecnico.png new file mode 100644 index 0000000..98b15b8 Binary files /dev/null and b/assets/ashen/items/tapones_tecnico.png differ diff --git a/assets/ashen/items/tupper_bateria.png b/assets/ashen/items/tupper_bateria.png new file mode 100644 index 0000000..dbf89f6 Binary files /dev/null and b/assets/ashen/items/tupper_bateria.png differ diff --git a/assets/ashen/portraits/bassist.png b/assets/ashen/portraits/bassist.png new file mode 100644 index 0000000..8be7cee Binary files /dev/null and b/assets/ashen/portraits/bassist.png differ diff --git a/assets/ashen/portraits/drummer.png b/assets/ashen/portraits/drummer.png new file mode 100644 index 0000000..2b4ad32 Binary files /dev/null and b/assets/ashen/portraits/drummer.png differ diff --git a/assets/ashen/portraits/guitarist.png b/assets/ashen/portraits/guitarist.png new file mode 100644 index 0000000..623c495 Binary files /dev/null and b/assets/ashen/portraits/guitarist.png differ diff --git a/assets/ashen/portraits/singer.png b/assets/ashen/portraits/singer.png new file mode 100644 index 0000000..8623733 Binary files /dev/null and b/assets/ashen/portraits/singer.png differ diff --git a/assets/ashen/production_prompts.json b/assets/ashen/production_prompts.json new file mode 100644 index 0000000..aba952e --- /dev/null +++ b/assets/ashen/production_prompts.json @@ -0,0 +1,130 @@ +{ + "purpose": "Original gothic pixel art assets for Mortal Maze; production prompts. Image generation through the built-in imagegen tool, technical crop/nearest packing afterwards.", + "environment": [ + { + "name": "city_far", + "refs": [ + "concept_reference/exec-e0dc565b-e25a-4ad2-941a-e3f085df5353.png" + ], + "alpha": false, + "prompt": "Production game art for Mortal Maze, original detailed gothic pixel art matching the supplied approved game concept. Use the reference only to retain visual language: rich hand-placed pixel clusters, chiselled weathered architectural detail, adult dark fantasy, a consistent crisp pixel grid, selective highlights, strong relief and depth. This is an actual separable game texture to be packed in a Godot project. Absolutely no HUD, letters, captions, grid lines, UI, logo or watermark. No smoothing, painterly blur, fake screenshot overlay, simple vector shapes or flat primitive tiles. Create a standalone opaque 2:1 horizontal distant landscape layer. Retain the city concept's immense distant cathedral, many elaborate spires, distant stone viaducts, tiny orange windows and turquoise atmospheric ravines, under a dramatic burnt-orange dusk sky. Remove ALL nearby characters, enemies, floor, foreground columns, large statues, banners and grass: this layer contains ONLY faraway landscape and sky. Cathedral and varied architecture fill the middle to lower part; bottom fades naturally into dim blue-violet city depths. Intricate distant silhouette, restrained contrast to allow active sprites in front. Panorama should continue naturally at left/right edges, neither edge capped by a vertical wall. 2048x1024 landscape PNG." + }, + { + "name": "abbey_back", + "refs": [ + "concept_reference/exec-2a995103-ac93-4b06-a9bf-a0577a72d59b.png" + ], + "alpha": false, + "prompt": "Production game art for Mortal Maze, original detailed gothic pixel art matching the supplied approved game concept. Use the reference only to retain visual language: rich hand-placed pixel clusters, chiselled weathered architectural detail, adult dark fantasy, a consistent crisp pixel grid, selective highlights, strong relief and depth. This is an actual separable game texture to be packed in a Godot project. Absolutely no HUD, letters, captions, grid lines, UI, logo or watermark. No smoothing, painterly blur, fake screenshot overlay, simple vector shapes or flat primitive tiles. Create a standalone opaque 2:1 horizontal background plate for an immense gothic abbey. Preserve extraordinarily intricate stained-glass windows in burgundy and cobalt, gilded pipe organ, multiple recessed ribbed arcades and elaborately carved stonework, small warm votive candles, blue moonlit glimpses of a distant ruined city. Remove ALL characters, enemies, HUD, amplifiers in the gameplay plane, foreground candelabra, floor ledges, ground blocks, and foreground framing. This layer must be a flat vertical background wall viewed SIDE ON, an elevation for a 2D platformer; architecture can be seen deep behind recesses but NO perspective floor, stairs to walk into or visible playable ground. The vertical wall detail goes all the way to the bottom. Compose asymmetric organ and stained glass landmarks with balanced calmer darker areas behind later gameplay, substantial detail at a deliberate consistent pixel size. Designed for repeated modules and scrolling. 2048x1024 landscape PNG." + }, + { + "name": "ossuary_back", + "refs": [ + "concept_reference/exec-c1f6757a-fa58-4ee5-a1ee-830e294f3e4f.png" + ], + "alpha": false, + "prompt": "Production game art for Mortal Maze, original detailed gothic pixel art matching the supplied approved game concept. Use the reference only to retain visual language: rich hand-placed pixel clusters, chiselled weathered architectural detail, adult dark fantasy, a consistent crisp pixel grid, selective highlights, strong relief and depth. This is an actual separable game texture to be packed in a Godot project. Absolutely no HUD, letters, captions, grid lines, UI, logo or watermark. No smoothing, painterly blur, fake screenshot overlay, simple vector shapes or flat primitive tiles. Create a standalone opaque 2:1 horizontal background for the boss arena. Preserve the enormous broken rose window opening onto moonlit towers and layered viaducts, a dense carved skull ossuary relief on the left, recessed bone statuary niches, deep violet-gray stone, dim candle recesses, hanging wine-dark drapery, tiny oxidized gold details. Remove ALL characters including the guitarist AND reaper, their shadows, weapons, floor/platform, foreground fence and every HUD bar. This layer is ONLY a monumental distant cathedral wall and views through its opening, a fully finished painted background elevation to stand BEHIND real independently animated actors. The bottom continues as vertical stone wall detail with no walkable floor perspective. 2048x1024 landscape PNG." + }, + { + "name": "city_mid", + "refs": [ + "concept_reference/exec-e0dc565b-e25a-4ad2-941a-e3f085df5353.png" + ], + "alpha": true, + "prompt": "Production game art for Mortal Maze, original detailed gothic pixel art matching the supplied approved game concept. Use the reference only to retain visual language: rich hand-placed pixel clusters, chiselled weathered architectural detail, adult dark fantasy, a consistent crisp pixel grid, selective highlights, strong relief and depth. This is an actual separable game texture to be packed in a Godot project. Absolutely no HUD, letters, captions, grid lines, UI, logo or watermark. No smoothing, painterly blur, fake screenshot overlay, simple vector shapes or flat primitive tiles. Create a single transparent foreground-independent MIDGROUND architecture strip, 2:1 landscape. The image contains ONE run of three richly carved ruined gothic arches and connecting stone viaduct, slender ribbed columns, one tall eroded veiled statue near the right and a small ragged crimson banner near the left. Keep the top outline irregular and let transparent empty arch openings occupy at least half the image, so the distant city can be seen through. Draw beautifully detailed weathered ashlar, dark sculpted recesses, warm stone edge highlights, roots, gold accents, small candles in niches. All elements share a single consistent vertical elevation camera, NO perspective floor. TRANSPARENT alpha behind architecture and through all arch openings, no sky, no black background, no checkerboard drawing, no ground strip, no characters. Objects rest on same bottom baseline. Entire arches fit inside frame with margin. 2048x1024 transparent PNG." + }, + { + "name": "props_atlas", + "refs": [ + "concept_reference/exec-e0dc565b-e25a-4ad2-941a-e3f085df5353.png", + "concept_reference/exec-2a995103-ac93-4b06-a9bf-a0577a72d59b.png" + ], + "alpha": true, + "prompt": "Production game art for Mortal Maze, original detailed gothic pixel art matching the supplied approved game concept. Use the reference only to retain visual language: rich hand-placed pixel clusters, chiselled weathered architectural detail, adult dark fantasy, a consistent crisp pixel grid, selective highlights, strong relief and depth. This is an actual separable game texture to be packed in a Godot project. Absolutely no HUD, letters, captions, grid lines, UI, logo or watermark. No smoothing, painterly blur, fake screenshot overlay, simple vector shapes or flat primitive tiles. Create a production sprite sheet of EXACTLY TWELVE separate gothic decorative objects, arranged on a strict FOUR COLUMN by THREE ROW rectangular grid (4x3), each object fully inside its equal cell with generous transparent padding, never touching another object. One object per cell, all viewed side-on like the reference game. Row1 left to right: intricately carved tall Gothic column with decorative capital; tall eroded hooded saint statue on stone plinth; ragged burgundy banner hanging from brass rod; wrought iron street candelabrum with small amber flame. Row2: candle-covered funerary altar; detailed braced wooden equipment crate with black iron corners; old brass-banded wood barrel; grim weathered headstone with skull relief. Row3: elaborate wrought iron fence section; trailing leafy thorn/vine cluster; loose fallen carved stone rubble pile; dark vintage guitar amplifier with worn leather corners and intricate speaker grille. Real stone relief, worn brass, tiny highlights, cloth folds, wood grain, specific irregular shapes. Match same illumination and pixel size across all twelve. Alpha transparency everywhere else; NO cell borders, labels, text, visible checkerboard or floor shadows. Image 1536x1152 with each grid cell384x384." + }, + { + "name": "terrain_atlas", + "refs": [ + "concept_reference/exec-e0dc565b-e25a-4ad2-941a-e3f085df5353.png", + "concept_reference/exec-2a995103-ac93-4b06-a9bf-a0577a72d59b.png" + ], + "alpha": false, + "prompt": "Production game art for Mortal Maze, original detailed gothic pixel art matching the supplied approved game concept. Use the reference only to retain visual language: rich hand-placed pixel clusters, chiselled weathered architectural detail, adult dark fantasy, a consistent crisp pixel grid, selective highlights, strong relief and depth. This is an actual separable game texture to be packed in a Godot project. Absolutely no HUD, letters, captions, grid lines, UI, logo or watermark. No smoothing, painterly blur, fake screenshot overlay, simple vector shapes or flat primitive tiles. Create a 1024x1024 square environment texture atlas divided into EXACTLY FOUR equal 512x512 quadrants, no gaps no borders no labels. Each quadrant is a FRONT-FACING, entirely opaque, richly detailed seamless game surface with the same pixel density, using pixel clusters with deliberate cracks and carved texture:\nTOP LEFT: aged charcoal-gray limestone ashlar wall, varied irregular blocks, subtle ochre moonlit top bevels and fine cracks, small roots in isolated seams. Truly repeatable at both edges, NOT identical rectangular boxes.\nTOP RIGHT: dark Gothic stone foundation masonry with ornate shallow pointed arch relief, skull medallions and erosion, muted contrast, repeatable on both axes.\nBOTTOM LEFT: aged cold blue stone of abbey walls, small decorative cross relief, weathered mortar and subtle copper stains, repeatable on both axes.\nBOTTOM RIGHT: horizontal PLATFORM EDGE MODULE composed of four horizontal 128px tall bands. Each band is a DIFFERENT side-view platform face: thick richly carved limestone cornice, a dark altar ledge with bronze trim, cracked pale stone bridge lip, and a narrow wrought iron supported stone ledge. Each band has an exactly FLAT walkable top edge, warm ivory highlight along its top, dark lower stone relief and tiny fractured bottom silhouette contained within the band. Every band extends seamlessly left to right. No perspective floor, no top-down view, no characters, no sky. This sheet will be sliced into real terrain textures." + } + ], + "characters": [ + { + "name": "guitarist", + "refs": [ + "concept_reference/exec-e0dc565b-e25a-4ad2-941a-e3f085df5353.png" + ], + "alpha": true, + "prompt": "Create a professional production PIXEL ART character animation spritesheet for a 2D SIDE-SCROLLING Godot game. The attached concept is a STYLE reference only; extract its mature gothic pixel craftsmanship, NOT any background/UI/enemy. CRITICAL output: EXACTLY TWENTY-FOUR separate full-body frames in a STRICT SIX COLUMNS by FOUR ROWS grid, read left-to-right then top-to-bottom. Every equal cell contains one version of the SAME character; same body size, lighting, costume, identity, right-facing lateral camera, no angle changes. NO title, grid, numbers, lines, labels, platform, shadows or background shapes. Genuine ALPHA transparency everywhere around each sprite, no checkerboard painted in. Canvas 1536x1024 with six256px columns and four256px rows; very generous clear gutters ensure separate cells and all weapons/hair stay inside their cell. Each standing character ~200px tall in the256px cell, feet at localY234, pelvis centered at localX128; seven-head adult proportions, small head, long legs, articulated knees/ankles/hands. Clear dark silhouette, muted rich material ramps, subtle cold rim on shoulders, ivory highlights, manually crafted visible hard pixel clusters. Extremely detailed pixel art like the reference, no vector/cartoon/shiny 3D. ALL24 FRAMES must be drawn, every row exactly6 equally spaced actors, no missing or merged cells.\nFRAME PLAN:\nRow1 columns1-6: neutral guarded idle; subtle breathing idle; walk contact LEFT foot forward; walk downward weight LEFT supporting; walk passing RIGHT leg; walk contact RIGHT foot forward.\nRow2 columns1-6: walk downward weight RIGHT supporting; walk passing LEFT leg; upward jump with knees flexed; descending fall with legs lower; low landing crouch; downward aerial ground-pound pose, fists/instrument tucked.\nRow3 columns1-6: close combat anticipation body coiled; basic punch drawing fist back with other hand maintaining instrument; full RIGHT-ARM PUNCH extended forward; punch followthrough recovering body; special musical attack anticipation preparing instrument; first strong SPECIAL musical action.\nRow4 columns1-6: second SPECIAL musical action; third SPECIAL musical action; fourth SPECIAL musical action; hurt recoil leaning backward; death falling on one knee; final death on ground facing right.\nSpecial poses must visibly use the correct instrument and have FOUR DISTINCT body/hand positions, not duplicate frames. Six walk drawings form a true alternating articulated leg cycle. Keep all facial details and costume identical. No VFX outside the body so runtime effects can be added separately. Small instruments may be held through idle, during punch one hand attacks without spawning a second weapon. \nCHARACTER: DIEGO, male mature thrash guitarist with very long DARK BROWN HAIR, full substantial dark BEARD, dark faded DENIM SLEEVELESS VEST with small silver band patches, black shirt, fitted black jeans and worn combat boots. RED angular electric six-string guitar with readable fretboard/tuning pegs and shoulder strap. Retain the approved reference's guitarist identity.\nSPECIAL animation: vigorously perform with red angular electric GUITAR with 6 strings. Preserve adult anatomy in all poses, no excessive head enlargement." + }, + { + "name": "drummer", + "refs": [ + "concept_reference/exec-2a995103-ac93-4b06-a9bf-a0577a72d59b.png" + ], + "alpha": true, + "prompt": "Create a professional production PIXEL ART character animation spritesheet for a 2D SIDE-SCROLLING Godot game. The attached concept is a STYLE reference only; extract its mature gothic pixel craftsmanship, NOT any background/UI/enemy. CRITICAL output: EXACTLY TWENTY-FOUR separate full-body frames in a STRICT SIX COLUMNS by FOUR ROWS grid, read left-to-right then top-to-bottom. Every equal cell contains one version of the SAME character; same body size, lighting, costume, identity, right-facing lateral camera, no angle changes. NO title, grid, numbers, lines, labels, platform, shadows or background shapes. Genuine ALPHA transparency everywhere around each sprite, no checkerboard painted in. Canvas 1536x1024 with six256px columns and four256px rows; very generous clear gutters ensure separate cells and all weapons/hair stay inside their cell. Each standing character ~200px tall in the256px cell, feet at localY234, pelvis centered at localX128; seven-head adult proportions, small head, long legs, articulated knees/ankles/hands. Clear dark silhouette, muted rich material ramps, subtle cold rim on shoulders, ivory highlights, manually crafted visible hard pixel clusters. Extremely detailed pixel art like the reference, no vector/cartoon/shiny 3D. ALL24 FRAMES must be drawn, every row exactly6 equally spaced actors, no missing or merged cells.\nFRAME PLAN:\nRow1 columns1-6: neutral guarded idle; subtle breathing idle; walk contact LEFT foot forward; walk downward weight LEFT supporting; walk passing RIGHT leg; walk contact RIGHT foot forward.\nRow2 columns1-6: walk downward weight RIGHT supporting; walk passing LEFT leg; upward jump with knees flexed; descending fall with legs lower; low landing crouch; downward aerial ground-pound pose, fists/instrument tucked.\nRow3 columns1-6: close combat anticipation body coiled; basic punch drawing fist back with other hand maintaining instrument; full RIGHT-ARM PUNCH extended forward; punch followthrough recovering body; special musical attack anticipation preparing instrument; first strong SPECIAL musical action.\nRow4 columns1-6: second SPECIAL musical action; third SPECIAL musical action; fourth SPECIAL musical action; hurt recoil leaning backward; death falling on one knee; final death on ground facing right.\nSpecial poses must visibly use the correct instrument and have FOUR DISTINCT body/hand positions, not duplicate frames. Six walk drawings form a true alternating articulated leg cycle. Keep all facial details and costume identical. No VFX outside the body so runtime effects can be added separately. Small instruments may be held through idle, during punch one hand attacks without spawning a second weapon. \nCHARACTER: IVAN, mature male metal DRUMMER, shoulder-length perfectly straight BLACK HAIR, clean-shaven angular face, black fitted band T-SHIRT, dark blue distressed JEANS, worn dark leather BOOTS, small wrist cuffs, lean adult frame. Carries TWO natural wood DRUMSTICKS, one in each hand. No guitar, bass or microphone. Face clearly different from the bearded guitarist in reference.\nSPECIAL animation: vigorously perform with TWO DRUMSTICKS, one in each hand. Preserve adult anatomy in all poses, no excessive head enlargement." + }, + { + "name": "bassist", + "refs": [ + "concept_reference/exec-e0dc565b-e25a-4ad2-941a-e3f085df5353.png" + ], + "alpha": true, + "prompt": "Create a professional production PIXEL ART character animation spritesheet for a 2D SIDE-SCROLLING Godot game. The attached concept is a STYLE reference only; extract its mature gothic pixel craftsmanship, NOT any background/UI/enemy. CRITICAL output: EXACTLY TWENTY-FOUR separate full-body frames in a STRICT SIX COLUMNS by FOUR ROWS grid, read left-to-right then top-to-bottom. Every equal cell contains one version of the SAME character; same body size, lighting, costume, identity, right-facing lateral camera, no angle changes. NO title, grid, numbers, lines, labels, platform, shadows or background shapes. Genuine ALPHA transparency everywhere around each sprite, no checkerboard painted in. Canvas 1536x1024 with six256px columns and four256px rows; very generous clear gutters ensure separate cells and all weapons/hair stay inside their cell. Each standing character ~200px tall in the256px cell, feet at localY234, pelvis centered at localX128; seven-head adult proportions, small head, long legs, articulated knees/ankles/hands. Clear dark silhouette, muted rich material ramps, subtle cold rim on shoulders, ivory highlights, manually crafted visible hard pixel clusters. Extremely detailed pixel art like the reference, no vector/cartoon/shiny 3D. ALL24 FRAMES must be drawn, every row exactly6 equally spaced actors, no missing or merged cells.\nFRAME PLAN:\nRow1 columns1-6: neutral guarded idle; subtle breathing idle; walk contact LEFT foot forward; walk downward weight LEFT supporting; walk passing RIGHT leg; walk contact RIGHT foot forward.\nRow2 columns1-6: walk downward weight RIGHT supporting; walk passing LEFT leg; upward jump with knees flexed; descending fall with legs lower; low landing crouch; downward aerial ground-pound pose, fists/instrument tucked.\nRow3 columns1-6: close combat anticipation body coiled; basic punch drawing fist back with other hand maintaining instrument; full RIGHT-ARM PUNCH extended forward; punch followthrough recovering body; special musical attack anticipation preparing instrument; first strong SPECIAL musical action.\nRow4 columns1-6: second SPECIAL musical action; third SPECIAL musical action; fourth SPECIAL musical action; hurt recoil leaning backward; death falling on one knee; final death on ground facing right.\nSpecial poses must visibly use the correct instrument and have FOUR DISTINCT body/hand positions, not duplicate frames. Six walk drawings form a true alternating articulated leg cycle. Keep all facial details and costume identical. No VFX outside the body so runtime effects can be added separately. Small instruments may be held through idle, during punch one hand attacks without spawning a second weapon. \nCHARACTER: FER, mature male metal BASS player, shoulder-length DARK CURLY HAIR with distinct curls, short dark stubble, black LEATHER vest with rivets, silver chain at belt, dark charcoal trousers and heavy boots, wiry adult body. Clearly identifiable DARK GREEN FOUR-STRING ELECTRIC BASS with long narrow neck and elongated asymmetrical body, four tuning pegs. NEVER drumsticks. Face different from the reference guitarist.\nSPECIAL animation: vigorously perform with DARK GREEN FOUR-STRING ELECTRIC BASS with a longer narrow neck than a guitar. Preserve adult anatomy in all poses, no excessive head enlargement." + }, + { + "name": "singer", + "refs": [ + "concept_reference/exec-2a995103-ac93-4b06-a9bf-a0577a72d59b.png" + ], + "alpha": true, + "prompt": "Create a professional production PIXEL ART character animation spritesheet for a 2D SIDE-SCROLLING Godot game. The attached concept is a STYLE reference only; extract its mature gothic pixel craftsmanship, NOT any background/UI/enemy. CRITICAL output: EXACTLY TWENTY-FOUR separate full-body frames in a STRICT SIX COLUMNS by FOUR ROWS grid, read left-to-right then top-to-bottom. Every equal cell contains one version of the SAME character; same body size, lighting, costume, identity, right-facing lateral camera, no angle changes. NO title, grid, numbers, lines, labels, platform, shadows or background shapes. Genuine ALPHA transparency everywhere around each sprite, no checkerboard painted in. Canvas 1536x1024 with six256px columns and four256px rows; very generous clear gutters ensure separate cells and all weapons/hair stay inside their cell. Each standing character ~200px tall in the256px cell, feet at localY234, pelvis centered at localX128; seven-head adult proportions, small head, long legs, articulated knees/ankles/hands. Clear dark silhouette, muted rich material ramps, subtle cold rim on shoulders, ivory highlights, manually crafted visible hard pixel clusters. Extremely detailed pixel art like the reference, no vector/cartoon/shiny 3D. ALL24 FRAMES must be drawn, every row exactly6 equally spaced actors, no missing or merged cells.\nFRAME PLAN:\nRow1 columns1-6: neutral guarded idle; subtle breathing idle; walk contact LEFT foot forward; walk downward weight LEFT supporting; walk passing RIGHT leg; walk contact RIGHT foot forward.\nRow2 columns1-6: walk downward weight RIGHT supporting; walk passing LEFT leg; upward jump with knees flexed; descending fall with legs lower; low landing crouch; downward aerial ground-pound pose, fists/instrument tucked.\nRow3 columns1-6: close combat anticipation body coiled; basic punch drawing fist back with other hand maintaining instrument; full RIGHT-ARM PUNCH extended forward; punch followthrough recovering body; special musical attack anticipation preparing instrument; first strong SPECIAL musical action.\nRow4 columns1-6: second SPECIAL musical action; third SPECIAL musical action; fourth SPECIAL musical action; hurt recoil leaning backward; death falling on one knee; final death on ground facing right.\nSpecial poses must visibly use the correct instrument and have FOUR DISTINCT body/hand positions, not duplicate frames. Six walk drawings form a true alternating articulated leg cycle. Keep all facial details and costume identical. No VFX outside the body so runtime effects can be added separately. Small instruments may be held through idle, during punch one hand attacks without spawning a second weapon. \nCHARACTER: HECTOR, mature male thrash metal vocalist, long pale BLOND HAIR, angular clean-shaven face, BLACK LEATHER JACKET open over faded dark shirt, black jeans, heavy worn combat boots, small aged-brass buckles. Holds a wired SILVER MICROPHONE; long black cord held close to his silhouette. No guitar, bass or drumsticks. Blond hair is immediately recognizable; lean adult anatomy.\nSPECIAL animation: vigorously perform with a SILVER wired MICROPHONE. Preserve adult anatomy in all poses, no excessive head enlargement." + } + ], + "enemies": [ + { + "name": "roadie", + "ref": "concept_reference/exec-e0dc565b-e25a-4ad2-941a-e3f085df5353.png", + "prompt": "Production-ready detailed PIXEL ART animation spritesheet for a gothic side-scrolling action game, mature proportions, finely sculpted hard pixel clusters, worn bone/metal/leather materials. The attached image is a STYLE reference only. Create EXACTLY SIXTEEN full-body frames of ONE enemy in a STRICT FOUR COLUMNS by FOUR ROWS square grid. Canvas1024x1024, equal256px cells, generous transparent gutters, each standing figure200pixels tall, feet at localY234, pelvis at localX128. Same scale, identity and lateral facing RIGHT in every cell. TRUE transparent alpha around figures; absolutely NO background, cast shadows, floor, labels, grid lines, frame borders, text or extra creatures. Strict consistent body scale across frames, even crouching/death, no cropping hair/weapon.\nFRAME ORDER left-to-right/top-to-bottom:\nRow1: guarded idle1, idle2 subtle breath, walk contactleft, walk downleft.\nRow2: walk passingright, walk contactright, walk downright, walk passingleft.\nRow3: attack anticipation, fully extended close-range attack to RIGHT, attack recovery, jumping up.\nRow4: falling with bent legs, hurt recoil backwards, death collapsing on knee, final death lying on ground.\nWalk must have alternating articulated legs, SIX DISTINCT frames and balanced changes of weight. The attack has clear windup/contact/recovery. Small head, adult long limbs, seven-head anatomy. No cute or cartoon proportions. Palette and crisp pixel texture match the gothic concept. Output one clean sixteen-cell spritesheet with no UI or scene.\nEnemy: a gaunt male hooded PALLBEARER, visible thin weathered face, dark burgundy hood and tattered sleeveless pilgrim jerkin, wrapped forearms, bone rosary, leather work gloves, black patched trousers, boots. An old bronze CENSER and chain at his belt; he punches with his free fist. Restrained tarnished gold edges, sickly gray skin. Distinct readable lean silhouette." + }, + { + "name": "pogo_fan", + "ref": "concept_reference/exec-e0dc565b-e25a-4ad2-941a-e3f085df5353.png", + "prompt": "Production-ready detailed PIXEL ART animation spritesheet for a gothic side-scrolling action game, mature proportions, finely sculpted hard pixel clusters, worn bone/metal/leather materials. The attached image is a STYLE reference only. Create EXACTLY SIXTEEN full-body frames of ONE enemy in a STRICT FOUR COLUMNS by FOUR ROWS square grid. Canvas1024x1024, equal256px cells, generous transparent gutters, each standing figure200pixels tall, feet at localY234, pelvis at localX128. Same scale, identity and lateral facing RIGHT in every cell. TRUE transparent alpha around figures; absolutely NO background, cast shadows, floor, labels, grid lines, frame borders, text or extra creatures. Strict consistent body scale across frames, even crouching/death, no cropping hair/weapon.\nFRAME ORDER left-to-right/top-to-bottom:\nRow1: guarded idle1, idle2 subtle breath, walk contactleft, walk downleft.\nRow2: walk passingright, walk contactright, walk downright, walk passingleft.\nRow3: attack anticipation, fully extended close-range attack to RIGHT, attack recovery, jumping up.\nRow4: falling with bent legs, hurt recoil backwards, death collapsing on knee, final death lying on ground.\nWalk must have alternating articulated legs, SIX DISTINCT frames and balanced changes of weight. The attack has clear windup/contact/recovery. Small head, adult long limbs, seven-head anatomy. No cute or cartoon proportions. Palette and crisp pixel texture match the gothic concept. Output one clean sixteen-cell spritesheet with no UI or scene.\nEnemy: an agile emaciated PENITENT with shaved head and tattered blindfold, dirty ivory bandages on arms and bare scarred shoulders, cropped dark oxblood sleeveless tabard, long narrow trouser legs, heavy boots, a broken votive medallion on chest. Hunched aggressive restless posture, punches forward, leap poses with knees high. Human adult anatomy, no monster giant head. Pale gray cloth and russet accents." + }, + { + "name": "backstage_guard", + "ref": "concept_reference/exec-2a995103-ac93-4b06-a9bf-a0577a72d59b.png", + "prompt": "Production-ready detailed PIXEL ART animation spritesheet for a gothic side-scrolling action game, mature proportions, finely sculpted hard pixel clusters, worn bone/metal/leather materials. The attached image is a STYLE reference only. Create EXACTLY SIXTEEN full-body frames of ONE enemy in a STRICT FOUR COLUMNS by FOUR ROWS square grid. Canvas1024x1024, equal256px cells, generous transparent gutters, each standing figure200pixels tall, feet at localY234, pelvis at localX128. Same scale, identity and lateral facing RIGHT in every cell. TRUE transparent alpha around figures; absolutely NO background, cast shadows, floor, labels, grid lines, frame borders, text or extra creatures. Strict consistent body scale across frames, even crouching/death, no cropping hair/weapon.\nFRAME ORDER left-to-right/top-to-bottom:\nRow1: guarded idle1, idle2 subtle breath, walk contactleft, walk downleft.\nRow2: walk passingright, walk contactright, walk downright, walk passingleft.\nRow3: attack anticipation, fully extended close-range attack to RIGHT, attack recovery, jumping up.\nRow4: falling with bent legs, hurt recoil backwards, death collapsing on knee, final death lying on ground.\nWalk must have alternating articulated legs, SIX DISTINCT frames and balanced changes of weight. The attack has clear windup/contact/recovery. Small head, adult long limbs, seven-head anatomy. No cute or cartoon proportions. Palette and crisp pixel texture match the gothic concept. Output one clean sixteen-cell spritesheet with no UI or scene.\nEnemy: a formidable male GOTHIC WARDEN in battered dark steel cuirass and enclosed narrow-visored helmet, antique bronze pauldrons, shredded black cloak behind, chainmail underlayer, leather belt and heavy articulated armored boots. Thick imposing adult silhouette, compact body without gigantic head. Close-range attack is an armored gauntlet strike, NO long weapon to collide with other cells. Red cloth sash." + }, + { + "name": "rival_guitarist", + "ref": "concept_reference/exec-2a995103-ac93-4b06-a9bf-a0577a72d59b.png", + "prompt": "Production-ready detailed PIXEL ART animation spritesheet for a gothic side-scrolling action game, mature proportions, finely sculpted hard pixel clusters, worn bone/metal/leather materials. The attached image is a STYLE reference only. Create EXACTLY SIXTEEN full-body frames of ONE enemy in a STRICT FOUR COLUMNS by FOUR ROWS square grid. Canvas1024x1024, equal256px cells, generous transparent gutters, each standing figure200pixels tall, feet at localY234, pelvis at localX128. Same scale, identity and lateral facing RIGHT in every cell. TRUE transparent alpha around figures; absolutely NO background, cast shadows, floor, labels, grid lines, frame borders, text or extra creatures. Strict consistent body scale across frames, even crouching/death, no cropping hair/weapon.\nFRAME ORDER left-to-right/top-to-bottom:\nRow1: guarded idle1, idle2 subtle breath, walk contactleft, walk downleft.\nRow2: walk passingright, walk contactright, walk downright, walk passingleft.\nRow3: attack anticipation, fully extended close-range attack to RIGHT, attack recovery, jumping up.\nRow4: falling with bent legs, hurt recoil backwards, death collapsing on knee, final death lying on ground.\nWalk must have alternating articulated legs, SIX DISTINCT frames and balanced changes of weight. The attack has clear windup/contact/recovery. Small head, adult long limbs, seven-head anatomy. No cute or cartoon proportions. Palette and crisp pixel texture match the gothic concept. Output one clean sixteen-cell spritesheet with no UI or scene.\nEnemy: a haunted thin white-haired RIVAL GUITARIST with angular pale mature face, long white hair, worn charcoal brocade longcoat with deep plum lining, black leather pants and buckled boots. Holds an angular PURPLE electric guitar with gold fittings, shoulder strap. One hand makes a brutal rightward fist strike during attack while guitar stays strapped. His guitar is visibly distinct from the red hero guitar. Restrained violet reflections." + }, + { + "name": "feedback_tech", + "ref": "concept_reference/exec-2a995103-ac93-4b06-a9bf-a0577a72d59b.png", + "prompt": "Production-ready detailed PIXEL ART animation spritesheet for a gothic side-scrolling action game, mature proportions, finely sculpted hard pixel clusters, worn bone/metal/leather materials. The attached image is a STYLE reference only. Create EXACTLY SIXTEEN full-body frames of ONE enemy in a STRICT FOUR COLUMNS by FOUR ROWS square grid. Canvas1024x1024, equal256px cells, generous transparent gutters, each standing figure200pixels tall, feet at localY234, pelvis at localX128. Same scale, identity and lateral facing RIGHT in every cell. TRUE transparent alpha around figures; absolutely NO background, cast shadows, floor, labels, grid lines, frame borders, text or extra creatures. Strict consistent body scale across frames, even crouching/death, no cropping hair/weapon.\nFRAME ORDER left-to-right/top-to-bottom:\nRow1: guarded idle1, idle2 subtle breath, walk contactleft, walk downleft.\nRow2: walk passingright, walk contactright, walk downright, walk passingleft.\nRow3: attack anticipation, fully extended close-range attack to RIGHT, attack recovery, jumping up.\nRow4: falling with bent legs, hurt recoil backwards, death collapsing on knee, final death lying on ground.\nWalk must have alternating articulated legs, SIX DISTINCT frames and balanced changes of weight. The attack has clear windup/contact/recovery. Small head, adult long limbs, seven-head anatomy. No cute or cartoon proportions. Palette and crisp pixel texture match the gothic concept. Output one clean sixteen-cell spritesheet with no UI or scene.\nEnemy: a cursed hooded SOUND TECHNICIAN, tall male in dark teal hood and long ragged brown leather coat, a copper breathing mask over lower face, glass eyepieces, exposed black cables and coiled wire clipped to belt, leather gauntlets and boots. A small antique coil apparatus on back with dim cyan tube light, NOT a giant futuristic gun. Attacks with metal-gloved hand. Gothic industrial silhouette and aged verdigris metal, opaque materials." + }, + { + "name": "spectral_death", + "ref": "concept_reference/exec-c1f6757a-fa58-4ee5-a1ee-830e294f3e4f.png", + "prompt": "Create a professional detailed gothic PIXEL ART boss animation spritesheet using the attached scene as STYLE AND BOSS DESIGN reference. ONLY the gigantic spectral REAPER, no players, no UI, no floor, no columns, no scene. True transparent alpha. EXACTLY SIXTEEN full-body poses, STRICT FOUR COLUMNS by FOUR ROWS square grid, equal cells, no grid lines or labels. Canvas1536x1536, cells384px. Same body scale and face/clothing every frame. Standing full figure about320px tall, centeredX192, robe bottomY356. Generous clear gutters. The boss is mature terrifying solemn gothic death: small realistic ivory skull deep in torn black hood, very elongated skeletal articulated arms, layered shredded dark charcoal clerical robes with muted antique gold filigree, long asymmetric tattered hems. Cold gray-blue rim highlights and deep muted wine inner folds. The body floats slightly, NO painted glow blob, shadow or opaque background. DO NOT draw a scythe or weapon: weapon will be separate animated engine object, keep both bone hands empty but posed to hold/throw a scythe. Match monumental figure in reference, NO chibi proportions, NO cartoon icon. Clean hard detailed pixel clusters, hand-crafted sprite appearance, no smooth illustration.\nROW1: idle solemn facingLEFT; idle breathing robe variation; gliding approach left with robe streaming right; gliding approach other robe variation.\nROW2: slash windup arms raised back; slash contact LEFT arm extending left; slash recovery arms lower; casting anticipation both hands at chest.\nROW3: casting arms thrust left; dash left bent forward long streaming robe; phase change rising with arms open; phase change more intense arms above head.\nROW4: hurt recoil back; death kneeling robe collapsing; death skull descending amid robe; final empty collapsed robe with skull on floor.\nEvery pose separate, every equal cell contains exactly ONE figure, consistent small skull size and body anatomy, no crop. Do not paint magic effects outside the figure, separate runtime VFX will be used." + }, + { + "name": "spectral_scythe", + "ref": "concept_reference/exec-c1f6757a-fa58-4ee5-a1ee-830e294f3e4f.png", + "prompt": "Create ONE production-ready gothic PIXEL ART boss SCYTHE asset, isolated on genuine transparent alpha, matching the attached scene's grim reaper weapon. No creature, no hands, no floor, no UI, no second object. A very tall aged ebony staff with tarnished gold collars and wrapped dark leather grip, one enormous curved crescent blade of cold worn silver sweeping from upper shaft towards the LEFT, a small carved skull at the blade root and three frayed dark red ribbons. Side-on orthographic 2D lateral game view. Shaft upright vertical, full scythe entirely visible with generous transparent margins. Finely carved gothic detail, mature realistic proportions, crisp pixel clusters and stepped edges, no smooth vector gradients, no cartoon. Canvas768x1024, weapon occupies about560x880px. No cast shadow, no ambient background, true cutout alpha." + } + ], + "alpha_refinements": [ + "BACKGROUND EXTRACTION ONLY. Edit the attached 4x4 sixteen-frame reaper animation sheet. Preserve EXACTLY all16 figures, their positions, sizes, poses, gold halos, torn robes, skulls and every drawn detail. Remove ALL the pale white/gray background and ALL cast shadows around and between the figures, including the clear spaces inside arms and ribbons. Output a genuine transparent RGBA cutout: empty space must be alpha0, figure material opaque. Do not replace background with a checkerboard or colored fill. Do not draw a new composition, do not rearrange or rescale frames, do not change any pose or color. Keep source square canvas and four equal columns by four equal rows. ONLY remove background for use as a 2D game spritesheet.", + "BACKGROUND EXTRACTION ONLY: preserve the EXACT single tall scythe, every blade detail, skull, shaft, gold fittings and red ribbons, same position and canvas. Remove ALL gray/white background haze/glow around the blade and ribbons. Empty space everywhere, including inside blade holes and between ribbons, must be genuinely transparent alpha0, not a white background or painted checkerboard. Keep material opaque and pixel edges crisp. No object, pose, layout, size or color change. Output the scythe as a clean RGBA cutout suitable for a sprite, with zero glow or cast shadows." + ] +} diff --git a/assets/ashen/ui/README.md b/assets/ashen/ui/README.md new file mode 100644 index 0000000..e4b88f2 --- /dev/null +++ b/assets/ashen/ui/README.md @@ -0,0 +1,54 @@ +# Arte de interfaz — Mortal Maze + +Interfaz creada para la nueva dirección de arte gótica: bronce envejecido, hueso, +sangre y luz espectral. Los PNG son arte original generado para este proyecto, +no extracciones de Blasphemous ni Castlevania. No se requiere generación de +imágenes ni acceso a servicios externos al ejecutar o exportar el juego. + +## Recursos + +| Archivo | Uso | +| --- | --- | +| `hud_frame.png` | Montura compacta de vida, especial y retrato, 432 × 144 px. | +| `title.png` | Logotipo original de la portada, 880 × 245 px. | +| `button_plate.png` | Placa con fondo oscuro y esquinas ornamentales, usada como nine-patch. | +| `button_frame.png` | Recorte transparente de origen de la placa. | +| `portrait_frame.png` | Bisel de retrato extraído de la montura; disponible para otras vistas. | +| `boss_bar_frame.png` | Marco independiente, simétrico, con calaveras y espinas, 880 × 140 px. | + +El marco de jefe es una generación independiente y conserva transparencia en +su interior. En su resolución nativa el depósito encaja aproximadamente en +`Rect2(76, 69, 728, 25)`; el dibujo del marco debe quedar delante del depósito. + +El HUD conserva los nodos de los controladores originales. Los medidores son +continuos, con reflejos discretos, marca de activación, estela de daño y las +mismas cifras reales del jugador. La barra de vida y la de especial comparten +una sola montura. El retrato se obtiene de +`assets/ashen/portraits/.png`; el primer fotograma `idle` sirve +como alternativa al abrir recursos aislados. La máscara usa coordenadas +locales, por lo que también acepta fotogramas `AtlasTexture`. + +La portada y los submenús usan el fondo limpio `abbey_back.png`. El viñeteado es +un efecto de composición de la interfaz; el fondo no contiene personajes, HUD +ni texto pintados. Las esquinas de las placas se preservan con `StyleBoxTexture` +y no se alargan al cambiar el tamaño de un botón o panel. + +Los botones táctiles aparecen en dispositivos con pantalla táctil o al recibir +un evento táctil. Para revisarlos desde un ordenador se puede activar +`show_on_desktop` en `MobileControls`. Se mantienen las seis acciones del +`InputMap`, incluida la liberación de acciones al cambiar de escena. Las zonas +activas tienen 112 × 112 unidades de interfaz a 1280 × 720. + +## Preparación del arte + +La montura y el logotipo se generaron sobre transparencia y después se +recortaron y redujeron con vecino más próximo. El alfa se convirtió a cobertura +binaria para evitar halos de suavizado en los bordes. Los recortes de la montura +proporcionan las placas y el marco de retrato. Solo se añadió un fondo oscuro +al hueco transparente de las placas para mantener la legibilidad del texto. + +Se solicitó a ImageGen metal sagrado envejecido, espinas góticas, calaveras +pequeñas, píxeles escalonados, siluetas ornamentales legibles y ausencia de +texto en los componentes. El logotipo se generó con el texto exacto +`MORTAL MAZE`. El marco de jefe se generó como una única barra vacía, sin +retrato, título ni medidor secundario. diff --git a/assets/ashen/ui/boss_bar_frame.png b/assets/ashen/ui/boss_bar_frame.png new file mode 100644 index 0000000..2a8dd51 Binary files /dev/null and b/assets/ashen/ui/boss_bar_frame.png differ diff --git a/assets/ashen/ui/button_frame.png b/assets/ashen/ui/button_frame.png new file mode 100644 index 0000000..1147cc8 Binary files /dev/null and b/assets/ashen/ui/button_frame.png differ diff --git a/assets/ashen/ui/button_plate.png b/assets/ashen/ui/button_plate.png new file mode 100644 index 0000000..f61c862 Binary files /dev/null and b/assets/ashen/ui/button_plate.png differ diff --git a/assets/ashen/ui/hud_frame.png b/assets/ashen/ui/hud_frame.png new file mode 100644 index 0000000..4006fad Binary files /dev/null and b/assets/ashen/ui/hud_frame.png differ diff --git a/assets/ashen/ui/portrait_frame.png b/assets/ashen/ui/portrait_frame.png new file mode 100644 index 0000000..8fbc934 Binary files /dev/null and b/assets/ashen/ui/portrait_frame.png differ diff --git a/assets/ashen/ui/title.png b/assets/ashen/ui/title.png new file mode 100644 index 0000000..293b290 Binary files /dev/null and b/assets/ashen/ui/title.png differ diff --git a/assets/bosses/muerte/muerte_frames.tres b/assets/bosses/muerte/muerte_frames.tres index bfd7d72..2509621 100644 --- a/assets/bosses/muerte/muerte_frames.tres +++ b/assets/bosses/muerte/muerte_frames.tres @@ -1,85 +1,85 @@ [gd_resource type="SpriteFrames" load_steps=18 format=3] -[ext_resource type="Texture2D" path="res://assets/bosses/muerte/muerte_body_atlas.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/bosses/spectral_death.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 256, 256) +region = Rect2(0, 0, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(256, 0, 256, 256) +region = Rect2(384, 0, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="approach_0"] atlas = ExtResource("atlas") -region = Rect2(512, 0, 256, 256) +region = Rect2(768, 0, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="approach_1"] atlas = ExtResource("atlas") -region = Rect2(768, 0, 256, 256) +region = Rect2(1152, 0, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="slash_warn"] atlas = ExtResource("atlas") -region = Rect2(0, 256, 256, 256) +region = Rect2(0, 384, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="slash_0"] atlas = ExtResource("atlas") -region = Rect2(256, 256, 256, 256) +region = Rect2(384, 384, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="slash_1"] atlas = ExtResource("atlas") -region = Rect2(512, 256, 256, 256) +region = Rect2(768, 384, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="cast_0"] atlas = ExtResource("atlas") -region = Rect2(768, 256, 256, 256) +region = Rect2(1152, 384, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="cast_1"] atlas = ExtResource("atlas") -region = Rect2(0, 512, 256, 256) +region = Rect2(0, 768, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="dash_0"] atlas = ExtResource("atlas") -region = Rect2(256, 512, 256, 256) +region = Rect2(384, 768, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="phase_0"] atlas = ExtResource("atlas") -region = Rect2(512, 512, 256, 256) +region = Rect2(768, 768, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="phase_1"] atlas = ExtResource("atlas") -region = Rect2(768, 512, 256, 256) +region = Rect2(1152, 768, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(0, 768, 256, 256) +region = Rect2(0, 1152, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="death_0"] atlas = ExtResource("atlas") -region = Rect2(256, 768, 256, 256) +region = Rect2(384, 1152, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="death_1"] atlas = ExtResource("atlas") -region = Rect2(512, 768, 256, 256) +region = Rect2(768, 1152, 384, 384) filter_clip = true [sub_resource type="AtlasTexture" id="death_2"] atlas = ExtResource("atlas") -region = Rect2(768, 768, 256, 256) +region = Rect2(1152, 1152, 384, 384) filter_clip = true [resource] diff --git a/bosses/spectral_death/spectral_death.gd b/bosses/spectral_death/spectral_death.gd index efdd1c4..120feaa 100644 --- a/bosses/spectral_death/spectral_death.gd +++ b/bosses/spectral_death/spectral_death.gd @@ -1,7 +1,7 @@ @tool extends Node2D -## La Muerte Espectral: tres barras, patrones fijos y una presentacion animada -## independiente del arte definitivo. Conserva el contrato de enemigo original. +## La Muerte Espectral: tres barras, patrones fijos y poses raster independientes. +## Conserva el contrato de enemigo y las ventanas de dano originales. signal died const PHASE_HEALTH: int = 40 @@ -119,10 +119,11 @@ func _process(delta: float) -> void: func _start_camera_framing() -> void: - # Caben el personaje, el arma y la cabeza en pantalla durante la pelea. + # La camara elevada del jugador encuadra pies y cabeza. El zoom entero + # conserva la cuadricula de pixeles del resto del recorrido. var camera: Camera2D = _target.get_node_or_null("Camera2D") as Camera2D if camera != null: - create_tween().tween_property(camera, "zoom", Vector2(1.30, 1.30), 0.85).set_trans(Tween.TRANS_SINE) + camera.zoom = Vector2(2.0, 2.0) func _set_state(name: String, duration: float) -> void: @@ -286,21 +287,15 @@ func _update_visuals() -> void: var bob: float = sin(_elapsed * (2.3 + phase * 0.4)) * (6.0 if _state != "transition" else 12.0) var fraction: float = clampf(_state_elapsed / _state_duration, 0.0, 1.0) var flash: float = clampf(_hit_flash / 0.20, 0.0, 1.0) - body.flip_h = _facing < 0.0 - body.position = Vector2(_hit_direction * flash * 11.0, -26.0 + bob) + # Los dibujos originales de este atlas miran a la izquierda. + body.flip_h = _facing > 0.0 + body.position = Vector2(roundf(_hit_direction * flash * 11.0), roundf(-26.0 + bob)) body.rotation = 0.0 - body.scale = Vector2(1.14, 1.14) - if _state == "move": - body.rotation = 0.06 * sin(_elapsed * 8.0) * _facing - elif _state == "windup": - body.rotation = -0.10 * _facing * fraction - elif _state in ["active", "dash_active"]: - body.rotation = 0.11 * _facing * sin(fraction * PI) - elif _state == "transition": - body.scale *= 1.0 + 0.065 * sin(_elapsed * 13.0) + body.scale = Vector2.ONE if is_dead: body.modulate.a = 1.0 - clampf(_death_elapsed / 1.45, 0.0, 1.0) - body.position.y -= 25.0 * _death_elapsed + # La caida esta dibujada en tres poses; la tunica permanece sobre el piso. + body.position.y = -26.0 else: body.modulate.a = 1.0 if flash > 0.0: diff --git a/bosses/spectral_death/spectral_death.tscn b/bosses/spectral_death/spectral_death.tscn index b545f07..bc59ce8 100644 --- a/bosses/spectral_death/spectral_death.tscn +++ b/bosses/spectral_death/spectral_death.tscn @@ -1,30 +1,17 @@ -[gd_scene load_steps=8 format=3] +[gd_scene load_steps=9 format=3] [ext_resource type="Script" path="res://bosses/spectral_death/spectral_death.gd" id="boss"] [ext_resource type="SpriteFrames" path="res://assets/bosses/muerte/muerte_frames.tres" id="frames"] -[ext_resource type="Texture2D" path="res://assets/bosses/muerte/spectral_scythe.svg" id="scythe"] +[ext_resource type="Texture2D" path="res://assets/ashen/bosses/spectral_scythe.png" id="scythe"] + +[ext_resource type="Texture2D" path="res://assets/ashen/ui/boss_bar_frame.png" id="boss_hud_frame"] +[ext_resource type="Theme" path="res://ui/hud/thrash_hud_theme.tres" id="hud_theme"] +[ext_resource type="Script" path="res://ui/hud/thrash_meter.gd" id="hud_meter"] +[ext_resource type="Script" path="res://ui/hud/boss_hud_layout.gd" id="hud_layout"] [sub_resource type="RectangleShape2D" id="hurt_shape"] size = Vector2(154, 270) -[sub_resource type="StyleBoxFlat" id="hud_panel"] -bg_color = Color(0.08, 0.045, 0.13, 0.85) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0.53, 0.36, 0.68, 0.95) -corner_radius_top_left = 7 -corner_radius_top_right = 7 -corner_radius_bottom_right = 7 -corner_radius_bottom_left = 7 - -[sub_resource type="StyleBoxFlat" id="bar_empty"] -bg_color = Color(0.17, 0.11, 0.22, 1) - -[sub_resource type="StyleBoxFlat" id="bar_fill"] -bg_color = Color(0.61, 0.91, 0.78, 1) - [node name="SpectralDeath" type="Node2D" groups=["enemy"]] script = ExtResource("boss") z_index = 5 @@ -40,8 +27,9 @@ position = Vector2(0, -12) shape = SubResource("hurt_shape") [node name="Body" type="AnimatedSprite2D" parent="."] +texture_filter = 1 position = Vector2(0, -26) -scale = Vector2(1.14, 1.14) +scale = Vector2(1, 1) sprite_frames = ExtResource("frames") animation = &"idle" autoplay = "idle" @@ -50,63 +38,90 @@ autoplay = "idle" position = Vector2(-69, -32) [node name="HeldScythe" type="Sprite2D" parent="WeaponPivot"] +texture_filter = 1 texture = ExtResource("scythe") -offset = Vector2(30, -73) -scale = Vector2(1.25, 1.25) +flip_h = true [node name="ThrownScythe" type="Sprite2D" parent="."] visible = false +texture_filter = 1 texture = ExtResource("scythe") -scale = Vector2(1.2, 1.2) [node name="BossHUD" type="CanvasLayer" parent="."] visible = false -layer = 3 +layer = 85 -[node name="Panel" type="PanelContainer" parent="BossHUD"] -anchors_preset = 10 -anchor_right = 1.0 -offset_left = 64.0 -offset_top = 22.0 -offset_right = -64.0 -offset_bottom = 90.0 -theme_override_styles/panel = SubResource("hud_panel") +[node name="Panel" type="Control" parent="BossHUD"] +offset_left = 200.0 +offset_top = 550.0 +offset_right = 1080.0 +offset_bottom = 690.0 +mouse_filter = 2 +theme = ExtResource("hud_theme") +script = ExtResource("hud_layout") [node name="Rows" type="VBoxContainer" parent="BossHUD/Panel"] -theme_override_constants/separation = 7 +layout_mode = 0 +offset_left = 76.0 +offset_top = -30.0 +offset_right = 804.0 +offset_bottom = 94.0 +mouse_filter = 2 +theme_override_constants/separation = 75 [node name="Status" type="Label" parent="BossHUD/Panel/Rows"] -theme_override_colors/font_color = Color(0.91, 0.95, 0.92, 1) -theme_override_font_sizes/font_size = 21 +custom_minimum_size = Vector2(0, 24) +layout_mode = 2 +mouse_filter = 2 +theme_override_colors/font_color = Color(0.86, 0.79, 0.64, 1) +theme_override_font_sizes/font_size = 16 text = "LA MUERTE ESPECTRAL" horizontal_alignment = 1 +vertical_alignment = 1 [node name="Bars" type="HBoxContainer" parent="BossHUD/Panel/Rows"] -theme_override_constants/separation = 8 +layout_mode = 2 +mouse_filter = 2 +theme_override_constants/separation = 6 [node name="Life1" type="ProgressBar" parent="BossHUD/Panel/Rows/Bars"] -custom_minimum_size = Vector2(0, 14) +custom_minimum_size = Vector2(0, 25) +layout_mode = 2 size_flags_horizontal = 3 -theme_override_styles/background = SubResource("bar_empty") -theme_override_styles/fill = SubResource("bar_fill") +mouse_filter = 2 max_value = 40.0 value = 40.0 show_percentage = false +script = ExtResource("hud_meter") +fill_color = Color(0.56, 0.085, 0.16, 1) [node name="Life2" type="ProgressBar" parent="BossHUD/Panel/Rows/Bars"] -custom_minimum_size = Vector2(0, 14) +custom_minimum_size = Vector2(0, 25) +layout_mode = 2 size_flags_horizontal = 3 -theme_override_styles/background = SubResource("bar_empty") -theme_override_styles/fill = SubResource("bar_fill") +mouse_filter = 2 max_value = 40.0 value = 40.0 show_percentage = false +script = ExtResource("hud_meter") +fill_color = Color(0.56, 0.085, 0.16, 1) [node name="Life3" type="ProgressBar" parent="BossHUD/Panel/Rows/Bars"] -custom_minimum_size = Vector2(0, 14) +custom_minimum_size = Vector2(0, 25) +layout_mode = 2 size_flags_horizontal = 3 -theme_override_styles/background = SubResource("bar_empty") -theme_override_styles/fill = SubResource("bar_fill") +mouse_filter = 2 max_value = 40.0 value = 40.0 show_percentage = false +script = ExtResource("hud_meter") +fill_color = Color(0.56, 0.085, 0.16, 1) + +[node name="Frame" type="TextureRect" parent="BossHUD/Panel"] +layout_mode = 0 +offset_right = 880.0 +offset_bottom = 140.0 +mouse_filter = 2 +texture_filter = 1 +texture = ExtResource("boss_hud_frame") +expand_mode = 1 diff --git a/docs/direccion_arte_referencia_2026.md b/docs/direccion_arte_referencia_2026.md index 07bc746..5fa5623 100644 --- a/docs/direccion_arte_referencia_2026.md +++ b/docs/direccion_arte_referencia_2026.md @@ -1,9 +1,11 @@ # Mortal Maze - referencia de arte e identidad de la banda -Estado: guia de identidad visual y registro de la pasada de arte. La imagen de -referencia facilitada por el autor es la guia visual, **no un spritesheet**. -La entrega actual conserva la escala y las 40 celdas de cada atlas; no pretende -resolver aun todos los requisitos de animacion avanzada enumerados mas abajo. +**Registro historico de la pasada vectorial anterior.** Las identidades de la +banda que figuran abajo siguen vigentes. Las dimensiones SVG, escalas y comandos +de generacion de este documento ya no describen la entrega actual. +La especificacion activa es [ART_GOTHIC.md](../ART_GOTHIC.md): atlas PNG con +poses nuevas, 24 dibujos por protagonista y sprites de192px. La imagen de +referencia se utiliza como guia visual, no como spritesheet. ## Los cuatro personajes - orden estricto, de izquierda a derecha diff --git a/effects/combat_fx.gd b/effects/combat_fx.gd index 959530c..35f9a2d 100644 --- a/effects/combat_fx.gd +++ b/effects/combat_fx.gd @@ -1,18 +1,18 @@ class_name CombatFX extends Node2D -## Decorative world-space effects for player and enemies. -## No collisions, timers or damage are changed by this file. -## Colors are shared with the new illustrated-metal art direction: -## dark outlines, warm metallic highlights, controlled saturated accents. - -const OUTLINE = Color(0.07, 0.08, 0.13) -const PALE_GOLD = Color(1.0, 0.90, 0.63) -const DUST_BROWN = Color(0.55, 0.46, 0.39) -const ELECTRIC_BLUE = Color(0.28, 0.65, 0.96) -const ELECTRIC_WHITE = Color(0.85, 0.97, 1.0) -const VOCAL_GOLD = Color(1.0, 0.72, 0.18) -const BASS_PURPLE = Color(0.58, 0.36, 0.87) +## Efectos decorativos en coordenadas del mundo. El atlas contiene doce sprites +## originales: seis familias con dos fases dibujadas, sin colisiones ni dano. +## Las ondas discretas conservan la lectura del radio que comunica el jugador. +const FX_ATLAS: Texture2D = preload("res://assets/ashen/effects/combat_atlas.png") +const CELL_SIZE: float = 128.0 +const OUTLINE = Color(0.045, 0.035, 0.055) +const PALE_GOLD = Color(0.87, 0.75, 0.52) +const DUST_BROWN = Color(0.49, 0.44, 0.40) +const ELECTRIC_BLUE = Color(0.25, 0.58, 0.66) +const ELECTRIC_WHITE = Color(0.77, 0.90, 0.91) +const VOCAL_GOLD = Color(0.70, 0.52, 0.26) +const BASS_PURPLE = Color(0.48, 0.32, 0.58) var kind: StringName = &"hit" var direction: float = 1.0 @@ -21,12 +21,13 @@ var _age: float = 0.0 var _lifetime: float = 0.28 -## Creates a transient effect at a fixed world position (not parented to an actor). +## No precargar este mismo script dentro de su fabrica: formaria una referencia +## circular de GDScript. La carga por ruta conserva el contrato publico. static func spawn(parent: Node, origin: Vector2, effect_kind: StringName, effect_direction: float = 1.0, effect_radius: float = 54.0) -> void: if not is_instance_valid(parent): return - var effect: CombatFX = CombatFX.new() + var effect = load("res://effects/combat_fx.gd").new() effect.kind = effect_kind effect.direction = effect_direction effect.radius = effect_radius @@ -36,9 +37,7 @@ static func spawn(parent: Node, origin: Vector2, effect_kind: StringName, func _ready() -> void: z_index = 12 - # The sprites are illustrated at high resolution; procedural FX should not - # introduce blocky sawtooth edges at the game's 2x camera zoom. - texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR + texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST match kind: &"ground_pound", &"electric_pound", &"vocal_dome", &"bass_cracks": _lifetime = 0.60 @@ -62,308 +61,185 @@ func _draw() -> void: var progress: float = clampf(_age / _lifetime, 0.0, 1.0) var fade: float = (1.0 - progress) * (1.0 - progress * 0.18) match kind: - &"electric_pound": - _draw_electric_pound(progress, fade) - &"vocal_dome": - _draw_vocal_dome(progress, fade) - &"bass_cracks": - _draw_bass_cracks(progress, fade) - &"vocal_wave": - _draw_vocal_wave(progress, fade) - &"drum_cymbals": - _draw_drum_cymbals(progress, fade) - &"bass_pulse": - _draw_bass_pulse(progress, fade) - &"ground_pound": - _draw_ground_pound(progress, fade) - &"solo": - _draw_solo(progress, fade) - &"dust": - _draw_debris(progress, 7, DUST_BROWN, 23.0, fade * 0.7) + &"electric_pound": _draw_electric_pound(progress, fade) + &"vocal_dome": _draw_vocal_dome(progress, fade) + &"bass_cracks": _draw_bass_cracks(progress, fade) + &"vocal_wave": _draw_vocal_wave(progress, fade) + &"drum_cymbals": _draw_drum_cymbals(progress, fade) + &"bass_pulse": _draw_bass_pulse(progress, fade) + &"ground_pound": _draw_ground_pound(progress, fade) + &"solo": _draw_solo(progress, fade) + &"dust": _draw_dust(progress, fade) &"break": - _draw_debris(progress, 14, Color(0.67, 0.42, 0.27), 52.0, fade) - _draw_debris(progress, 6, Color(0.67, 0.67, 0.69), 34.0, fade) - &"death": - _draw_death(progress, fade) - &"swing": - _draw_swing(progress, fade) - _: - _draw_hit(progress, fade) + _draw_sprite(1, progress, Vector2(0, -8), Vector2(68, 68), fade) + _draw_sprite(2, progress, Vector2(0, 6), Vector2(80, 38), fade * 0.7) + &"death": _draw_death(progress, fade) + &"swing": _draw_swing(progress, fade) + _: _draw_hit(progress, fade) + + +## Cambia entre dos dibujos reales; el crecimiento y los fragmentos acompanan +## a la animacion. Cada familia conserva su color y su silueta propios. +func _draw_sprite(column: int, progress: float, center: Vector2, + dimensions: Vector2, fade: float, mirrored: bool = false, + rotation_angle: float = 0.0) -> void: + var frame: int = 0 if progress < 0.38 else 1 + var region := Rect2(Vector2(float(column), float(frame)) * CELL_SIZE, + Vector2.ONE * CELL_SIZE) + var extent: Vector2 = dimensions.round().max(Vector2.ONE) + var facing: float = -1.0 if mirrored else 1.0 + draw_set_transform(center.round(), rotation_angle, Vector2(facing, 1.0)) + draw_texture_rect_region(FX_ATLAS, Rect2((-extent * 0.5).floor(), extent), + region, Color(1, 1, 1, clampf(fade, 0.0, 1.0)), false, true) + draw_set_transform(Vector2.ZERO, 0.0, Vector2.ONE) func _alpha(color: Color, opacity: float) -> Color: return Color(color.r, color.g, color.b, clampf(opacity, 0.0, 1.0)) +## Trazos secundarios siempre alineados a pixeles y sin antialiasing. func _stroke(points: PackedVector2Array, outer: Color, inner: Color, outer_width: float, inner_width: float, fade: float) -> void: if points.size() < 2: return - draw_polyline(points, _alpha(outer, fade), outer_width, true) - draw_polyline(points, _alpha(inner, fade), inner_width, true) + var snapped := PackedVector2Array() + for point: Vector2 in points: + snapped.append(point.round()) + draw_polyline(snapped, _alpha(outer, fade), outer_width, false) + draw_polyline(snapped, _alpha(inner, fade), inner_width, false) -## An elliptical perspective ring with an ink border and a light upper lip. -func _draw_ring(ring_radius: float, height_ratio: float, color: Color, width: float, - fade: float = 1.0) -> void: +## La circunferencia alcanza el radio solicitado: solo orienta, nunca colisiona. +func _draw_ring(ring_radius: float, height_ratio: float, color: Color, + width: float, fade: float = 1.0) -> void: var rim := PackedVector2Array() - var highlight := PackedVector2Array() - for index: int in range(49): - var angle: float = TAU * float(index) / 48.0 - var point := Vector2(cos(angle) * ring_radius, - sin(angle) * ring_radius * height_ratio) - rim.append(point) - if index >= 24 and index <= 48: - highlight.append(point + Vector2(0.0, -0.8)) - _stroke(rim, OUTLINE, color, width + 2.5, width, fade) - if highlight.size() > 2: - draw_polyline(highlight, _alpha(PALE_GOLD, fade * 0.36), 0.8, true) + for index: int in range(65): + var angle: float = TAU * float(index) / 64.0 + rim.append(Vector2(cos(angle) * ring_radius, + sin(angle) * ring_radius * height_ratio).round()) + draw_polyline(rim, _alpha(color, fade), width, false) -## Stable, non-random debris. Different silhouettes/velocities avoid a square cloud. func _draw_debris(progress: float, count: int, color: Color, spread: float, fade: float) -> void: for index: int in range(count): var side: float = -1.0 if index % 2 == 0 else 1.0 - var speed: float = 0.34 + float(index % 5) * 0.145 - var height: float = 11.0 + float(index % 4) * 7.0 - var x: float = side * spread * progress * speed - var y: float = -height * sin(progress * PI) - 1.5 - var size: float = 1.9 + float(index % 3) * 0.75 - var point := Vector2(x, y) - var fragment := PackedVector2Array([ - point + Vector2(-size, 0.0), - point + Vector2(size * 0.20, -size * 1.3), - point + Vector2(size, size * 0.35), - point + Vector2(-size * 0.25, size * 0.85)]) - draw_colored_polygon(fragment, _alpha(color, fade)) - fragment.append(fragment[0]) - draw_polyline(fragment, _alpha(OUTLINE, fade * 0.72), 1.0, true) + var x: float = side * spread * progress * (0.4 + float(index % 4) * 0.17) + var y: float = -(8.0 + float(index % 3) * 5.0) * sin(progress * PI) + var point: Vector2 = Vector2(x, y).round() + draw_rect(Rect2(point, Vector2(2, 2)), _alpha(color, fade)) + draw_rect(Rect2(point, Vector2(1, 1)), _alpha(PALE_GOLD, fade * 0.65)) func _draw_sparks(progress: float, color: Color, count: int, spread: float, fade: float) -> void: for index: int in range(count): - var angle: float = TAU * (float(index) + 0.18 * float(index % 3)) / float(count) + var angle: float = TAU * float(index) / float(count) var axis := Vector2(cos(angle), sin(angle)) - var distance: float = spread * progress * (0.68 + float(index % 4) * 0.11) - var point: Vector2 = axis * distance + Vector2(direction * 4.0 * progress, 0.0) - var tail: Vector2 = point - axis * (3.0 + 7.0 * (1.0 - progress)) - _stroke(PackedVector2Array([tail, point]), OUTLINE, color, 3.3, 1.7, fade) - if index % 3 == 0: - draw_circle(point, 1.1, _alpha(PALE_GOLD, fade)) - - -## Curved eighth note: deliberately not a blocky 5x4 sprite. -func _draw_note(point: Vector2, color: Color, fade: float) -> void: - draw_set_transform(point, -0.18, Vector2.ONE) - draw_circle(Vector2(-2.0, 3.0), 3.1, _alpha(OUTLINE, fade)) - draw_circle(Vector2(-1.9, 2.9), 2.1, _alpha(color, fade)) - _stroke(PackedVector2Array([Vector2(0.1, 2.0), Vector2(0.1, -10.0), - Vector2(5.7, -8.0), Vector2(7.2, -4.1)]), OUTLINE, color, 2.4, 1.1, fade) - draw_set_transform(Vector2.ZERO, 0.0, Vector2.ONE) + var point: Vector2 = axis * spread * progress + draw_line((point - axis * 3.0).round(), point.round(), _alpha(color, fade), 1.0, false) func _draw_hit(progress: float, fade: float) -> void: - var scale: float = 0.45 + progress * 0.9 - var center := Vector2(direction * 5.0 * progress, 0.0) - var burst := PackedVector2Array() - for index: int in range(16): - var angle: float = TAU * float(index) / 16.0 - var length: float = (12.0 if index % 2 == 0 else 4.7) * scale - burst.append(center + Vector2(cos(angle), sin(angle)) * length) - draw_colored_polygon(burst, _alpha(Color(0.98, 0.60, 0.24), fade * 0.9)) - burst.append(burst[0]) - draw_polyline(burst, _alpha(OUTLINE, fade), 2.2, true) - draw_circle(center, 3.9 * scale, _alpha(PALE_GOLD, fade)) - _draw_sparks(progress, PALE_GOLD, 9, 27.0, fade) + var extent: float = 44.0 + progress * 14.0 + _draw_sprite(1, progress, Vector2(direction * 4, 0), Vector2.ONE * extent, fade) + _draw_sparks(progress, PALE_GOLD, 5, 23.0, fade * 0.6) func _draw_death(progress: float, fade: float) -> void: - _draw_sparks(progress, Color(1.0, 0.43, 0.30), 12, 37.0, fade) - _draw_debris(progress, 8, Color(0.48, 0.26, 0.33), 39.0, fade) - _draw_ring(lerpf(4.0, 25.0, progress), 0.82, - Color(1.0, 0.72, 0.43), 2.4, fade) + _draw_sprite(1, progress, Vector2(0, -6), Vector2.ONE * (72.0 + progress * 18.0), fade) + _draw_sprite(2, progress, Vector2(0, 14), Vector2(70, 40), fade * 0.62) + _draw_debris(progress, 6, Color(0.41, 0.25, 0.27), 35.0, fade) func _draw_swing(progress: float, fade: float) -> void: - var outer := PackedVector2Array() - var inner := PackedVector2Array() - for index: int in range(16): - var angle: float = lerpf(-1.05, 1.02, float(index) / 15.0) + progress * 0.42 - outer.append(Vector2(cos(angle) * 22.0 * direction, - sin(angle) * 21.0)) - inner.append(Vector2(cos(angle) * 15.0 * direction, - sin(angle) * 15.0)) - _stroke(outer, OUTLINE, PALE_GOLD, 5.0, 2.9, fade) - draw_polyline(inner, _alpha(Color(1.0, 0.50, 0.26), fade * 0.8), 1.6, true) + _draw_sprite(0, progress, Vector2(direction * 6, 0), Vector2(58, 58), fade, direction < 0.0) + + +func _draw_dust(progress: float, fade: float) -> void: + var width: float = 48.0 + progress * 24.0 + _draw_sprite(2, progress, Vector2(0, -13), Vector2(width, 28), fade * 0.65) func _draw_ground_pound(progress: float, fade: float) -> void: var reach: float = lerpf(8.0, radius, sqrt(progress)) - _draw_ring(reach, 0.25, Color(1.0, 0.61, 0.28), 3.1, fade) - _draw_ring(reach * 0.74, 0.30, PALE_GOLD, 1.7, fade * 0.7) - _draw_debris(progress, 16, Color(0.75, 0.59, 0.45), radius, fade) - for side: float in [-1.0, 1.0]: - var fissure := PackedVector2Array([ - Vector2(3.0 * side, 1.0), Vector2(13.0 * side, 3.0), - Vector2(23.0 * side, -1.0), Vector2(36.0 * side, 2.0), - Vector2(46.0 * side, 0.0)]) - _stroke(fissure, OUTLINE, Color(0.92, 0.62, 0.39), 4.2, 1.4, fade * 0.9) + _draw_ring(reach, 0.20, PALE_GOLD, 1.0, fade * 0.48) + var height: float = minf(54.0, 20.0 + reach * 0.32) + _draw_sprite(2, progress, Vector2(0, -height * 0.5), Vector2(reach * 2, height), fade) + _draw_debris(progress, 8, DUST_BROWN, radius, fade * 0.6) +## Diego conserva electricidad ramificada; dos filamentos finos orientan el +## alcance mientras el peso visual procede del sprite animado de descarga. func _draw_solo(progress: float, fade: float) -> void: - # Diego: guitarra electrica. El especial se lee como una descarga, no como - # una onda musical generica; los arcos son decorativos y no crean proyectiles. var reach: float = lerpf(9.0, radius, sqrt(progress)) - _draw_ring(reach, 0.62, ELECTRIC_BLUE, 3.4, fade) - _draw_ring(reach * 0.78, 0.66, ELECTRIC_WHITE, 1.35, fade * 0.72) - draw_circle(Vector2.ZERO, lerpf(5.0, 1.5, progress), - _alpha(ELECTRIC_WHITE, fade * (1.0 - progress * 0.35))) - - for index: int in range(10): - var angle: float = TAU * float(index) / 10.0 - progress * 0.16 - var axis := Vector2(cos(angle), sin(angle) * 0.82) - var normal := Vector2(-axis.y, axis.x) - var bolt := PackedVector2Array() - for step: int in range(6): - var fraction: float = float(step) / 5.0 - var jitter: float = 0.0 if step == 0 or step == 5 else ( - -1.0 if (step + index) % 2 == 0 else 1.0) * (3.0 + float(step % 3)) - bolt.append(axis * reach * (0.24 + fraction * 0.76) - + normal * jitter * (0.45 + progress * 0.55)) - _stroke(bolt, OUTLINE, ELECTRIC_BLUE, 5.0, 2.5, fade * 0.92) - draw_polyline(bolt, _alpha(ELECTRIC_WHITE, fade * 0.88), 1.05, true) - - if index % 2 == 0: - var fork := PackedVector2Array([ - bolt[2], - bolt[3] + normal * 5.0, - bolt[4] + normal * 10.0]) - _stroke(fork, OUTLINE, ELECTRIC_BLUE, 3.0, 1.35, fade * 0.78) - - _draw_sparks(progress, ELECTRIC_WHITE, 12, reach * 0.72, fade * 0.82) + var height: float = reach * 1.55 + # La primera celda termina en una chispa de contacto; su pivote es el cuerpo, + # no la base del lienzo. La segunda celda es una onda centrada. + var center := Vector2(0, -height * 0.38 if progress < 0.38 else 0.0) + _draw_sprite(3, progress, center, Vector2(reach * 2, height), fade * 0.88) + _draw_ring(reach, 0.62, ELECTRIC_BLUE, 1.0, fade * 0.35) + for side: float in [-1.0, 1.0]: + var bolt := PackedVector2Array([ + Vector2(side * reach * 0.35, 0), Vector2(side * reach * 0.56, -7), + Vector2(side * reach * 0.65, 5), Vector2(side * reach, 0)]) + _stroke(bolt, OUTLINE, ELECTRIC_BLUE, 2.0, 1.0, fade * 0.60) + var fork := PackedVector2Array([bolt[1], bolt[2] + Vector2(0, -12), + bolt[3] + Vector2(0, -20)]) + _stroke(fork, OUTLINE, ELECTRIC_WHITE, 2.0, 1.0, fade * 0.40) -## Diego: lightning branches and a hot contact halo, all purely decorative. func _draw_electric_pound(progress: float, fade: float) -> void: var reach: float = lerpf(10.0, radius, sqrt(progress)) - _draw_ring(reach, 0.27, ELECTRIC_BLUE, 3.2, fade) - _draw_ring(reach * 0.82, 0.31, ELECTRIC_WHITE, 1.1, fade * 0.6) - for index: int in range(9): - var angle: float = PI + PI * float(index) / 8.0 - var axis := Vector2(cos(angle), sin(angle) * 0.72) - var normal := Vector2(-axis.y, axis.x) - var bolt := PackedVector2Array([Vector2.ZERO]) - for step: int in range(1, 7): - var fraction: float = float(step) / 6.0 - var jitter: float = (-1.0 if (step + index) % 2 == 0 else 1.0) * (3.7 + step * 0.25) - bolt.append(axis * reach * fraction + normal * jitter) - _stroke(bolt, OUTLINE, ELECTRIC_BLUE, 6.2, 3.3, fade * 0.9) - draw_polyline(bolt, _alpha(ELECTRIC_WHITE, fade), 1.25, true) - var fork := PackedVector2Array([bolt[3], bolt[4] + normal * 8.0, - bolt[5] + normal * 14.0]) - _stroke(fork, OUTLINE, ELECTRIC_WHITE, 3.0, 1.2, fade * 0.85) - _draw_sparks(progress, ELECTRIC_WHITE, 11, radius * 0.45, fade * 0.8) + var height: float = reach * 0.9 + _draw_sprite(3, progress, Vector2(0, -height * 0.5), Vector2(reach * 2, height), fade) + _draw_ring(reach, 0.22, ELECTRIC_BLUE, 1.0, fade * 0.55) + _draw_sparks(progress, ELECTRIC_WHITE, 7, reach * 0.65, fade * 0.55) -## Hector: layered transparent sound dome, not an additional damage area. func _draw_vocal_dome(progress: float, fade: float) -> void: var reach: float = lerpf(5.0, radius, sqrt(progress)) + # Una veladura leve distingue la cupula apoyada en suelo de la onda radial. var dome := PackedVector2Array() - for index: int in range(49): - var angle: float = PI + PI * float(index) / 48.0 - dome.append(Vector2(cos(angle) * reach, sin(angle) * reach * 0.85)) - draw_colored_polygon(dome, _alpha(VOCAL_GOLD, fade * 0.14)) - _stroke(dome, OUTLINE, Color(1.0, 0.85, 0.34), 5.4, 2.7, fade) - for ratio: float in [0.42, 0.73]: - var seam := PackedVector2Array() - for index: int in range(25): - var angle: float = PI + PI * float(index) / 24.0 - seam.append(Vector2(cos(angle) * reach * ratio, - sin(angle) * reach * ratio * 0.85)) - draw_polyline(seam, _alpha(PALE_GOLD, fade * 0.24), 1.1, true) - _draw_ring(reach, 0.16, VOCAL_GOLD, 2.3, fade) + for index: int in range(33): + var angle: float = PI + PI * float(index) / 32.0 + dome.append(Vector2(cos(angle) * reach, sin(angle) * reach * 0.85).round()) + draw_colored_polygon(dome, _alpha(VOCAL_GOLD, fade * 0.045)) + _draw_sprite(4, progress, Vector2(0, -reach * 0.4), Vector2(reach * 2, reach * 0.85), fade) + _draw_ring(reach, 0.14, VOCAL_GOLD, 1.0, fade * 0.6) -## Fer: inked floor fissures and violet resonant dust; no TileMap writes. func _draw_bass_cracks(progress: float, fade: float) -> void: - var growth: float = minf(progress * 4.0, 1.0) + var reach: float = radius * minf(progress * 4.0, 1.0) + _draw_sprite(5, progress, Vector2(0, -12), Vector2(reach * 2, 42), fade) + _draw_sprite(2, progress, Vector2(0, -14), Vector2(reach * 1.4, 30), fade * 0.5) for side: float in [-1.0, 1.0]: - for branch: int in range(3): - var crack := PackedVector2Array([Vector2.ZERO]) - for step: int in range(1, 7): - var x: float = side * radius * float(step) / 6.0 * growth - var y: float = float(branch - 1) * float(step) * 1.8 - y += 3.4 if (branch + step) % 2 == 0 else -3.4 - crack.append(Vector2(x, y)) - _stroke(crack, OUTLINE, BASS_PURPLE, 6.0, 1.8, fade) - var fork := PackedVector2Array([crack[3], - crack[4] + Vector2(side * 3.0, -6.0), - crack[4] + Vector2(side * 9.0, -12.0)]) - _stroke(fork, OUTLINE, Color(0.85, 0.72, 1.0), 3.0, 1.1, fade) - _draw_debris(progress, 12, Color(0.61, 0.54, 0.67), radius * 0.7, fade) - _draw_ring(lerpf(4.0, radius * 0.7, progress), 0.18, - Color(0.68, 0.48, 0.94), 1.8, fade * 0.65) + var crack := PackedVector2Array([Vector2.ZERO, + Vector2(side * reach * 0.3, -3), Vector2(side * reach * 0.55, 4), + Vector2(side * reach * 0.8, -2), Vector2(side * reach, 0)]) + _stroke(crack, OUTLINE, BASS_PURPLE, 3.0, 1.0, fade * 0.65) -## Hector: successive broad, hand-inked sound wavefronts. func _draw_vocal_wave(progress: float, fade: float) -> void: var reach: float = lerpf(9.0, radius, progress) - for index: int in range(3): - var ratio: float = 1.0 - float(index) * 0.18 - _draw_ring(reach * ratio, 0.82, - Color(1.0, 0.86 - float(index) * 0.07, 0.29), 3.0, - fade * (0.92 - float(index) * 0.18)) - for index: int in range(15): - var angle: float = TAU * float(index) / 15.0 - var axis := Vector2(cos(angle), sin(angle) * 0.82) - var start: Vector2 = axis * reach * 0.87 - var tip: Vector2 = axis * (reach + 5.0 + float(index % 3) * 2.4) - _stroke(PackedVector2Array([start, tip]), OUTLINE, PALE_GOLD, - 3.7, 1.5, fade * 0.67) + _draw_sprite(4, progress, Vector2.ZERO, Vector2(reach * 2, reach * 1.64), fade) + _draw_ring(reach, 0.82, VOCAL_GOLD, 1.0, fade * 0.35) -## Ivan: rimmed cymbals with highlights and movement trails. No projectiles. +## Ivan: fragmentos circulares de metal resonante. No se crean proyectiles. func _draw_drum_cymbals(progress: float, fade: float) -> void: - for index: int in range(10): - var angle: float = TAU * float(index) / 10.0 - var travel: float = lerpf(14.0, radius, progress) + var travel: float = lerpf(14.0, radius, progress) + for index: int in range(8): + var angle: float = TAU * float(index) / 8.0 var point := Vector2(cos(angle), sin(angle) * 0.78) * travel - var wobble: float = 0.32 + absf(sin(progress * TAU * 1.8 + angle)) * 0.26 - draw_set_transform(point, angle + progress * 4.0, Vector2(1.0, wobble)) - var outer := PackedVector2Array() - for step: int in range(33): - var theta: float = TAU * float(step) / 32.0 - outer.append(Vector2(cos(theta) * 12.0, sin(theta) * 12.0)) - draw_colored_polygon(outer, _alpha(Color(0.91, 0.63, 0.22), fade)) - draw_polyline(outer, _alpha(OUTLINE, fade), 2.4, true) - _draw_ring(9.0, 1.0, Color(1.0, 0.85, 0.44), 1.4, fade) - draw_circle(Vector2.ZERO, 3.5, _alpha(Color(0.40, 0.27, 0.12), fade)) - draw_circle(Vector2(-0.7, -0.7), 1.5, _alpha(PALE_GOLD, fade)) - draw_line(Vector2(-6.0, -5.5), Vector2(1.0, -8.0), - _alpha(PALE_GOLD, fade * 0.9), 1.4, true) - draw_set_transform(Vector2.ZERO, 0.0, Vector2.ONE) - if index % 2 == 0: - var trail := PackedVector2Array([ - point - Vector2(cos(angle), sin(angle) * 0.78) * 8.0, - point - Vector2(cos(angle), sin(angle) * 0.78) * 17.0]) - draw_polyline(trail, _alpha(Color(1.0, 0.84, 0.48), fade * 0.48), 1.6, true) + _draw_sprite(4, progress, point, Vector2(32, 16), fade, + false, snappedf(angle + progress * 2.0, PI * 0.25)) + _draw_ring(travel, 0.78, PALE_GOLD, 1.0, fade * 0.25) -## Fer: thick low-frequency pulses with visible harmonic strings. func _draw_bass_pulse(progress: float, fade: float) -> void: var reach: float = lerpf(8.0, radius, progress) - _draw_ring(reach, 0.63, BASS_PURPLE, 5.4, fade * 0.82) - _draw_ring(reach * 0.84, 0.65, Color(0.92, 0.77, 1.0), 2.1, fade * 0.9) - for index: int in range(6): - var angle: float = TAU * float(index) / 6.0 - var axis := Vector2(cos(angle), sin(angle) * 0.63) - var point: Vector2 = axis * reach - _draw_note(point, Color(0.86, 0.73, 1.0), fade) - var line := PackedVector2Array() - for step: int in range(8): - var r: float = reach * (0.50 + float(step) * 0.060) - var offset: float = sin(float(step) * PI * 0.6 + progress * TAU * 2.0) * 2.2 - line.append(axis * r + Vector2(-axis.y, axis.x) * offset) - draw_polyline(line, _alpha(Color(0.78, 0.54, 1.0), fade * 0.65), 1.6, true) + _draw_sprite(5, progress, Vector2.ZERO, Vector2(reach * 2, reach * 1.26), fade) + _draw_ring(reach, 0.63, BASS_PURPLE, 1.0, fade * 0.45) + _draw_sparks(progress, Color(0.67, 0.55, 0.75), 6, reach, fade * 0.5) diff --git a/enemies/animations/backstage_guard_frames.tres b/enemies/animations/backstage_guard_frames.tres index f253f96..4e380a7 100644 --- a/enemies/animations/backstage_guard_frames.tres +++ b/enemies/animations/backstage_guard_frames.tres @@ -1,85 +1,85 @@ [gd_resource type="SpriteFrames" load_steps=18 format=3] -[ext_resource type="Texture2D" path="res://assets/enemies/backstage_guard.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/enemies/backstage_guard.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_0"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_1"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_2"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_0"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_1"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [resource] diff --git a/enemies/animations/feedback_tech_frames.tres b/enemies/animations/feedback_tech_frames.tres index 91f5b39..13e3cdc 100644 --- a/enemies/animations/feedback_tech_frames.tres +++ b/enemies/animations/feedback_tech_frames.tres @@ -1,85 +1,85 @@ [gd_resource type="SpriteFrames" load_steps=18 format=3] -[ext_resource type="Texture2D" path="res://assets/enemies/feedback_tech.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/enemies/feedback_tech.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_0"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_1"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_2"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_0"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_1"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [resource] diff --git a/enemies/animations/pogo_fan_frames.tres b/enemies/animations/pogo_fan_frames.tres index 6c62e11..1d011fe 100644 --- a/enemies/animations/pogo_fan_frames.tres +++ b/enemies/animations/pogo_fan_frames.tres @@ -1,85 +1,85 @@ [gd_resource type="SpriteFrames" load_steps=18 format=3] -[ext_resource type="Texture2D" path="res://assets/enemies/pogo_fan.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/enemies/pogo_fan.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_0"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_1"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_2"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_0"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_1"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [resource] diff --git a/enemies/animations/rival_guitarist_frames.tres b/enemies/animations/rival_guitarist_frames.tres index 5eeb291..ce2b098 100644 --- a/enemies/animations/rival_guitarist_frames.tres +++ b/enemies/animations/rival_guitarist_frames.tres @@ -1,85 +1,85 @@ [gd_resource type="SpriteFrames" load_steps=18 format=3] -[ext_resource type="Texture2D" path="res://assets/enemies/rival_guitarist.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/enemies/rival_guitarist.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_0"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_1"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_2"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_0"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_1"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [resource] diff --git a/enemies/animations/roadie_frames.tres b/enemies/animations/roadie_frames.tres index b32a3cc..f99ba71 100644 --- a/enemies/animations/roadie_frames.tres +++ b/enemies/animations/roadie_frames.tres @@ -1,85 +1,85 @@ [gd_resource type="SpriteFrames" load_steps=18 format=3] -[ext_resource type="Texture2D" path="res://assets/enemies/roadie.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/enemies/roadie.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_0"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_1"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="attack_2"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_0"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="death_1"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [resource] diff --git a/enemies/walker/walker.gd b/enemies/walker/walker.gd index 76e6c9b..b486ff6 100644 --- a/enemies/walker/walker.gd +++ b/enemies/walker/walker.gd @@ -562,8 +562,8 @@ func _update_jump_visual() -> void: visual.scale = _visual_scale COMBAT_FX.spawn(get_parent(), global_position + Vector2(0.0, 26.0), &"dust") else: - # Pose aerea sin modificar las colisiones ni los recursos de imagen. - visual.scale = _visual_scale * Vector2(0.9, 1.08) + # La pose de salto ya esta dibujada; no deformar sus pixeles. + visual.scale = _visual_scale # ============================================================================ @@ -833,10 +833,11 @@ func _update_death_animation(delta: float) -> void: _apply_gravity(delta) velocity.x = move_toward(velocity.x, 0.0, 180.0 * delta) move_and_slide() - var collapse: float = smoothstep(0.06, duration * 0.55, _death_elapsed) - visual.rotation = _visual_rotation + _last_hit_direction * PI * 0.5 * collapse - visual.position = _visual_position + Vector2(0, 10.0 * collapse) - visual.scale = _visual_scale * Vector2(1.0, lerpf(1.0, 0.85, collapse)) + # Los dos fotogramas dibujados incluyen la caida completa. Rotarlos + # otra vez pondria el cadaver de pie y hundiria sus pies en el suelo. + visual.rotation = _visual_rotation + visual.position = _visual_position + visual.scale = _visual_scale var fade: float = 1.0 - smoothstep(duration * 0.65, duration, _death_elapsed) var color: Color = Color(1.8, 1.8, 1.8) if _death_elapsed < 0.09 else _visual_color color.a = _visual_color.a * fade @@ -907,7 +908,8 @@ func _draw() -> void: _draw_damage_texts() return # Dibujo de reserva si no se ha podido importar la textura del enemigo. - if visual.texture == null: + if visual.sprite_frames == null or not visual.sprite_frames.has_animation(visual.animation) \ + or visual.sprite_frames.get_frame_count(visual.animation) == 0: _draw_rectangle_collision( body_collision, Color(0.18, 0.18, 0.20, 0.90), diff --git a/enemies/walker/walker.tscn b/enemies/walker/walker.tscn index 8532ea8..e4131bc 100644 --- a/enemies/walker/walker.tscn +++ b/enemies/walker/walker.tscn @@ -16,7 +16,9 @@ script = ExtResource("1_walker") [node name="Visual" type="AnimatedSprite2D" parent="."] z_index = -1 -texture_filter = 2 +texture_filter = 1 +position = Vector2(0, -2) +scale = Vector2(0.5, 0.5) sprite_frames = ExtResource("2_sprite") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] diff --git a/game/boot.gd b/game/boot.gd index e012e0f..e647090 100644 --- a/game/boot.gd +++ b/game/boot.gd @@ -1,6 +1,6 @@ extends Control -## Intro provisional. Los diez segundos son una presentacion, no progreso ficticio. +## Presentacion ilustrada y saltable. Los diez segundos no representan progreso de carga. ## Se carga el menu en paralelo y nunca se salta una carga real pendiente. ## Sustituir IntroContent por un video/animacion no obliga a cambiar el menu. const MENU_PATH: String = "res://ui/menu/main_menu.tscn" @@ -19,7 +19,7 @@ var _load_failed: bool = false func _ready() -> void: - $Margin/IntroContent/Hint.text = "Intro provisional de %g segundos" % intro_duration_seconds + $Margin/IntroContent/Hint.text = "Cuatro almas. Una ultima cancion." skip_button.pressed.connect(_on_skip_pressed) skip_button.grab_focus() _request_menu() @@ -28,7 +28,7 @@ func _ready() -> void: ## Inicia o reintenta la carga, sin bloquear el hilo que dibuja la intro. func _request_menu() -> void: _load_failed = false - status_label.text = "Cargando..." + status_label.text = "EL SILENCIO TIENE UN PRECIO" skip_button.text = "SALTAR INTRO" skip_button.disabled = false var error: Error = ResourceLoader.load_threaded_request(MENU_PATH, "PackedScene") diff --git a/game/main.tscn b/game/main.tscn index 7f8c13d..b5cd37c 100644 --- a/game/main.tscn +++ b/game/main.tscn @@ -1,8 +1,11 @@ -[gd_scene load_steps=3 format=3] +[gd_scene load_steps=5 format=3] [ext_resource type="Script" path="res://game/boot.gd" id="script"] [ext_resource type="Theme" path="res://ui/menu/menu_theme.tres" id="theme"] +[ext_resource type="PackedScene" path="res://ui/menu/ashen_backdrop.tscn" id="backdrop"] +[ext_resource type="Texture2D" path="res://assets/ashen/ui/title.png" id="brand"] + [node name="Boot" type="Control"] layout_mode = 3 anchors_preset = 15 @@ -13,22 +16,17 @@ grow_vertical = 2 theme = ExtResource("theme") script = ExtResource("script") -[node name="Background" type="ColorRect" parent="."] +[node name="Background" parent="." instance=ExtResource("backdrop")] layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -mouse_filter = 2 -color = Color(0.035, 0.045, 0.055, 1) [node name="Margin" type="MarginContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -theme_override_constants/margin_left = 32 +theme_override_constants/margin_left = 140 theme_override_constants/margin_top = 24 -theme_override_constants/margin_right = 32 +theme_override_constants/margin_right = 140 theme_override_constants/margin_bottom = 24 [node name="IntroContent" type="VBoxContainer" parent="Margin"] @@ -36,20 +34,32 @@ layout_mode = 2 theme_override_constants/separation = 24 alignment = 1 +[node name="Brand" type="TextureRect" parent="Margin/IntroContent"] +custom_minimum_size = Vector2(0, 245) +layout_mode = 2 +mouse_filter = 2 +texture_filter = 1 +texture = ExtResource("brand") +expand_mode = 1 +stretch_mode = 5 + [node name="Status" type="Label" parent="Margin/IntroContent"] layout_mode = 2 -theme_override_font_sizes/font_size = 30 -text = "Cargando..." +theme_override_font_sizes/font_size = 20 +text = "EL SILENCIO TIENE UN PRECIO" horizontal_alignment = 1 autowrap_mode = 3 [node name="Hint" type="Label" parent="Margin/IntroContent"] layout_mode = 2 -text = "Intro provisional de 10 segundos" +theme_override_colors/font_color = Color(0.64, 0.60, 0.51, 1) +theme_override_font_sizes/font_size = 16 +text = "Cuatro almas. Una ultima cancion." horizontal_alignment = 1 autowrap_mode = 3 [node name="Skip" type="Button" parent="Margin/IntroContent"] -custom_minimum_size = Vector2(0, 64) +custom_minimum_size = Vector2(360, 64) layout_mode = 2 +size_flags_horizontal = 4 text = "SALTAR INTRO" diff --git a/levels/level_00.gd b/levels/level_00.gd index b3b5d64..bd51ab0 100644 --- a/levels/level_00.gd +++ b/levels/level_00.gd @@ -1,7 +1,7 @@ @tool extends LevelRoot -## Beta de pruebas: recorrido urbano con suelo a distintas alturas, plataformas, +## Recorrido por la ciudad arruinada, con suelo a distintas alturas, plataformas, ## grupos de enemigos y objetos opcionales. Las posiciones y colisiones se editan ## en level_00.tscn; este script solo gestiona el progreso y la meta. ## No interviene en los drops: los Walker usan su sistema habitual. @@ -49,7 +49,7 @@ func _on_enemy_died() -> void: ## Calcula el sector segun los limites editables del nivel. func _update_status() -> void: var sector: int = clampi(int((player.position.x - camera_bounds.position.x) / (camera_bounds.size.x / 8.0)) + 1, 1, 8) - status_label.text = "BETA - CALLE DEL FEEDBACK %02d/08\nKOs: %02d/%02d" % [ + status_label.text = "CALLE DEL FEEDBACK %02d / 08\nENEMIGOS %02d / %02d" % [ sector, defeated_enemies, enemies.get_child_count() ] diff --git a/levels/level_00.tscn b/levels/level_00.tscn index 6e567a5..65e8656 100644 --- a/levels/level_00.tscn +++ b/levels/level_00.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=39 format=3] +[gd_scene load_steps=45 format=3] [ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"] @@ -6,19 +6,7 @@ [ext_resource type="PackedScene" path="res://world/props/streetlamp.tscn" id="kit_streetlamp"] -[ext_resource type="PackedScene" path="res://world/signs/text_label.tscn" id="kit_label"] - -[ext_resource type="PackedScene" path="res://world/props/facade_01.tscn" id="kit_facade_01"] - -[ext_resource type="PackedScene" path="res://world/props/facade_02.tscn" id="kit_facade_02"] - -[ext_resource type="PackedScene" path="res://world/props/facade_03.tscn" id="kit_facade_03"] - -[ext_resource type="PackedScene" path="res://world/props/facade_04.tscn" id="kit_facade_04"] - -[ext_resource type="PackedScene" path="res://world/props/facade_05.tscn" id="kit_facade_05"] - -[ext_resource type="PackedScene" path="res://world/props/facade_06.tscn" id="kit_facade_06"] +[ext_resource type="PackedScene" path="res://world/signs/sign_post.tscn" id="kit_label"] [ext_resource type="PackedScene" path="res://world/terrain/ground.tscn" id="kit_ground"] @@ -74,6 +62,30 @@ [ext_resource type="FontFile" path="res://assets/fonts/PixelOperator8.ttf" id="font"] +[ext_resource type="PackedScene" path="res://world/backgrounds/ashen_atmosphere.tscn" id="art_atmosphere"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/platform_draped.png" id="art_draped"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/foundation.png" id="art_foundation"] + +[ext_resource type="PackedScene" path="res://world/props/column.tscn" id="art_column"] + +[ext_resource type="PackedScene" path="res://world/props/statue.tscn" id="art_statue"] + +[ext_resource type="PackedScene" path="res://world/props/banner.tscn" id="art_banner"] + +[ext_resource type="PackedScene" path="res://world/props/fence.tscn" id="art_fence"] + +[ext_resource type="PackedScene" path="res://world/props/ivy.tscn" id="art_ivy"] + +[ext_resource type="PackedScene" path="res://world/props/altar.tscn" id="art_altar"] + +[ext_resource type="PackedScene" path="res://world/props/amplifier.tscn" id="art_amplifier"] + +[ext_resource type="PackedScene" path="res://world/props/tombstone.tscn" id="art_tombstone"] + +[ext_resource type="PackedScene" path="res://world/props/rubble.tscn" id="art_rubble"] + [sub_resource type="RectangleShape2D" id="FinishShape"] size = Vector2(110, 240) @@ -85,111 +97,6 @@ camera_bounds = Rect2(0, 0, 11000, 1280) [node name="CityBackground" parent="." instance=ExtResource("kit_background")] -[node name="Facades" type="Node2D" parent="."] -z_index = -8 - -[node name="Facade01" parent="Facades" instance=ExtResource("kit_facade_01")] -position = Vector2(143, 970) - -[node name="Facade02" parent="Facades" instance=ExtResource("kit_facade_02")] -position = Vector2(488, 970) - -[node name="Facade03" parent="Facades" instance=ExtResource("kit_facade_03")] -position = Vector2(837, 970) - -[node name="Facade04" parent="Facades" instance=ExtResource("kit_facade_04")] -position = Vector2(1128, 970) - -[node name="Facade05" parent="Facades" instance=ExtResource("kit_facade_05")] -position = Vector2(1466, 970) - -[node name="Facade06" parent="Facades" instance=ExtResource("kit_facade_06")] -position = Vector2(1806, 880) - -[node name="Facade07" parent="Facades" instance=ExtResource("kit_facade_01")] -position = Vector2(2105, 880) - -[node name="Facade08" parent="Facades" instance=ExtResource("kit_facade_02")] -position = Vector2(2402, 880) - -[node name="Facade09" parent="Facades" instance=ExtResource("kit_facade_03")] -position = Vector2(2751, 880) - -[node name="Facade10" parent="Facades" instance=ExtResource("kit_facade_04")] -position = Vector2(3090, 1015) - -[node name="Facade11" parent="Facades" instance=ExtResource("kit_facade_05")] -position = Vector2(3428, 1015) - -[node name="Facade12" parent="Facades" instance=ExtResource("kit_facade_06")] -position = Vector2(3720, 1015) - -[node name="Facade13" parent="Facades" instance=ExtResource("kit_facade_01")] -position = Vector2(4019, 1015) - -[node name="Facade14" parent="Facades" instance=ExtResource("kit_facade_02")] -position = Vector2(4316, 930) - -[node name="Facade15" parent="Facades" instance=ExtResource("kit_facade_03")] -position = Vector2(4713, 930) - -[node name="Facade16" parent="Facades" instance=ExtResource("kit_facade_04")] -position = Vector2(5004, 930) - -[node name="Facade17" parent="Facades" instance=ExtResource("kit_facade_05")] -position = Vector2(5342, 930) - -[node name="Facade18" parent="Facades" instance=ExtResource("kit_facade_06")] -position = Vector2(5634, 825) - -[node name="Facade19" parent="Facades" instance=ExtResource("kit_facade_01")] -position = Vector2(5981, 825) - -[node name="Facade20" parent="Facades" instance=ExtResource("kit_facade_02")] -position = Vector2(6278, 825) - -[node name="Facade21" parent="Facades" instance=ExtResource("kit_facade_03")] -position = Vector2(6627, 825) - -[node name="Facade22" parent="Facades" instance=ExtResource("kit_facade_04")] -position = Vector2(6918, 1000) - -[node name="Facade23" parent="Facades" instance=ExtResource("kit_facade_05")] -position = Vector2(7304, 1000) - -[node name="Facade24" parent="Facades" instance=ExtResource("kit_facade_06")] -position = Vector2(7596, 1000) - -[node name="Facade25" parent="Facades" instance=ExtResource("kit_facade_01")] -position = Vector2(7895, 1000) - -[node name="Facade26" parent="Facades" instance=ExtResource("kit_facade_02")] -position = Vector2(8192, 910) - -[node name="Facade27" parent="Facades" instance=ExtResource("kit_facade_03")] -position = Vector2(8541, 910) - -[node name="Facade28" parent="Facades" instance=ExtResource("kit_facade_04")] -position = Vector2(8880, 910) - -[node name="Facade29" parent="Facades" instance=ExtResource("kit_facade_05")] -position = Vector2(9218, 910) - -[node name="Facade30" parent="Facades" instance=ExtResource("kit_facade_06")] -position = Vector2(9510, 970) - -[node name="Facade31" parent="Facades" instance=ExtResource("kit_facade_01")] -position = Vector2(9809, 970) - -[node name="Facade32" parent="Facades" instance=ExtResource("kit_facade_02")] -position = Vector2(10154, 970) - -[node name="Facade33" parent="Facades" instance=ExtResource("kit_facade_03")] -position = Vector2(10503, 970) - -[node name="Facade34" parent="Facades" instance=ExtResource("kit_facade_04")] -position = Vector2(10794, 970) - [node name="World" type="Node2D" parent="."] [node name="Ground" type="Node2D" parent="World"] @@ -201,6 +108,7 @@ dimensions = Vector2(1480, 500) [node name="Street02" parent="World/Ground" instance=ExtResource("kit_ground")] position = Vector2(2145, 1005) dimensions = Vector2(1330, 500) +fill_texture = ExtResource("art_foundation") [node name="Street03" parent="World/Ground" instance=ExtResource("kit_ground")] position = Vector2(3480, 1140) @@ -209,6 +117,7 @@ dimensions = Vector2(1340, 500) [node name="Street04" parent="World/Ground" instance=ExtResource("kit_ground")] position = Vector2(4825, 1055) dimensions = Vector2(1350, 500) +fill_texture = ExtResource("art_foundation") [node name="Street05" parent="World/Ground" instance=ExtResource("kit_ground")] position = Vector2(6150, 950) @@ -217,6 +126,7 @@ dimensions = Vector2(1300, 500) [node name="Street06" parent="World/Ground" instance=ExtResource("kit_ground")] position = Vector2(7440, 1125) dimensions = Vector2(1280, 500) +fill_texture = ExtResource("art_foundation") [node name="Street07" parent="World/Ground" instance=ExtResource("kit_ground")] position = Vector2(8720, 1035) @@ -225,6 +135,7 @@ dimensions = Vector2(1280, 500) [node name="Street08" parent="World/Ground" instance=ExtResource("kit_ground")] position = Vector2(10180, 1095) dimensions = Vector2(1640, 500) +fill_texture = ExtResource("art_foundation") [node name="Walkways" type="Node2D" parent="World"] @@ -235,6 +146,9 @@ dimensions = Vector2(270, 20) [node name="Walkway02" parent="World/Walkways" instance=ExtResource("kit_platform")] position = Vector2(950, 625) dimensions = Vector2(230, 20) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="Walkway03" parent="World/Walkways" instance=ExtResource("kit_platform")] position = Vector2(2135, 638) @@ -247,6 +161,9 @@ dimensions = Vector2(220, 20) [node name="Walkway05" parent="World/Walkways" instance=ExtResource("kit_platform")] position = Vector2(3405, 665) dimensions = Vector2(190, 20) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="Walkway06" parent="World/Walkways" instance=ExtResource("kit_platform")] position = Vector2(4720, 685) @@ -259,6 +176,9 @@ dimensions = Vector2(200, 20) [node name="Walkway08" parent="World/Walkways" instance=ExtResource("kit_platform")] position = Vector2(5995, 485) dimensions = Vector2(190, 20) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="Walkway09" parent="World/Walkways" instance=ExtResource("kit_platform")] position = Vector2(7360, 755) @@ -271,6 +191,9 @@ dimensions = Vector2(230, 20) [node name="Walkway11" parent="World/Walkways" instance=ExtResource("kit_platform")] position = Vector2(10035, 735) dimensions = Vector2(270, 20) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="Barriers" type="Node2D" parent="World"] @@ -330,6 +253,249 @@ position = Vector2(10770, 845) tint = Color(0.9, 0.86, 0.88, 1) draw_layer = 0 +[node name="Ruins" type="Node2D" parent="."] + +[node name="ThresholdColumn" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(58, 845) +display_size = Vector2(104, 264) +draw_layer = -2 + +[node name="FirstMartyr" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(495, 845) +display_size = Vector2(116, 236) +draw_layer = -4 + +[node name="FirstRubble" parent="Ruins" instance=ExtResource("art_rubble")] +position = Vector2(350, 845) +display_size = Vector2(76, 48) +draw_layer = -2 + +[node name="RoadAmplifier" parent="Ruins" instance=ExtResource("art_amplifier")] +position = Vector2(385, 845) +display_size = Vector2(66, 70) +draw_layer = -2 + +[node name="TornCityBanner" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(1180, 674) +display_size = Vector2(128, 174) +draw_layer = -5 + +[node name="HighQuarterStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(1850, 755) +display_size = Vector2(130, 264) +draw_layer = -5 + +[node name="HighQuarterIvy" parent="Ruins" instance=ExtResource("art_ivy")] +position = Vector2(2782, 844) +display_size = Vector2(104, 112) +draw_layer = -2 + +[node name="FallenArcade" parent="Ruins" instance=ExtResource("art_rubble")] +position = Vector2(3020, 890) +display_size = Vector2(144, 90) +draw_layer = -2 + +[node name="ProcessionAltar" parent="Ruins" instance=ExtResource("art_altar")] +position = Vector2(3865, 890) +display_size = Vector2(146, 135) +draw_layer = -4 + +[node name="ProcessionBanner" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(4330, 645) +display_size = Vector2(124, 168) +draw_layer = -5 + +[node name="ChoirStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(5170, 805) +display_size = Vector2(122, 248) +draw_layer = -5 +flip_h = true + +[node name="ChoirSpeaker" parent="Ruins" instance=ExtResource("art_amplifier")] +position = Vector2(5250, 805) +display_size = Vector2(66, 70) +draw_layer = -2 + +[node name="UpperBanner" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(6300, 472) +display_size = Vector2(138, 188) +draw_layer = -5 + +[node name="UpperRuins" parent="Ruins" instance=ExtResource("art_rubble")] +position = Vector2(6650, 700) +display_size = Vector2(128, 80) +draw_layer = -2 + +[node name="OssuaryFence" parent="Ruins" instance=ExtResource("art_fence")] +position = Vector2(7060, 875) +display_size = Vector2(182, 178) +draw_layer = -5 +tint = Color(0.62, 0.62, 0.70, 1) + +[node name="OssuaryStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(7630, 875) +display_size = Vector2(140, 284) +draw_layer = -5 + +[node name="MourningBanner" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(8200, 590) +display_size = Vector2(128, 174) +draw_layer = -5 + +[node name="LastAltar" parent="Ruins" instance=ExtResource("art_altar")] +position = Vector2(9100, 785) +display_size = Vector2(156, 144) +draw_layer = -5 + +[node name="LastAmplifier" parent="Ruins" instance=ExtResource("art_amplifier")] +position = Vector2(9255, 785) +display_size = Vector2(74, 78) +draw_layer = -2 + +[node name="ExitColumn" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(10640, 845) +display_size = Vector2(112, 284) +draw_layer = -4 + +[node name="ExitBanner" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(10780, 653) +display_size = Vector2(124, 168) +draw_layer = -5 + +[node name="BridgeSupport00_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(590, 845) +display_size = Vector2(27, 135) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport00_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(790, 845) +display_size = Vector2(27, 135) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport01_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(865, 845) +display_size = Vector2(46, 230) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport01_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(1035, 845) +display_size = Vector2(46, 230) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport02_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(2050, 755) +display_size = Vector2(25, 127) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport02_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(2220, 755) +display_size = Vector2(25, 127) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport03_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(3099, 890) +display_size = Vector2(25, 125) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport03_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(3261, 890) +display_size = Vector2(25, 125) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport04_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(3335, 890) +display_size = Vector2(47, 235) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport04_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(3475, 890) +display_size = Vector2(47, 235) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport05_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(4624, 805) +display_size = Vector2(26, 130) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport05_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(4816, 805) +display_size = Vector2(26, 130) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport06_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(5706, 700) +display_size = Vector2(25, 125) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport06_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(5854, 700) +display_size = Vector2(25, 125) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport07_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(5925, 700) +display_size = Vector2(45, 225) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport07_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(6065, 700) +display_size = Vector2(45, 225) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport08_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(7279, 875) +display_size = Vector2(26, 130) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport08_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(7441, 875) +display_size = Vector2(26, 130) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport09_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(8620, 785) +display_size = Vector2(28, 140) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport09_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(8790, 785) +display_size = Vector2(28, 140) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport10_0" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(9935, 845) +display_size = Vector2(24, 120) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="BridgeSupport10_1" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(10135, 845) +display_size = Vector2(24, 120) +draw_layer = -3 +tint = Color(0.67, 0.66, 0.73, 1) + +[node name="Atmosphere" parent="." instance=ExtResource("art_atmosphere")] + [node name="Player" parent="." instance=ExtResource("player")] position = Vector2(125, 795) show_debug_hitboxes = false @@ -339,122 +505,122 @@ special_radius = 290.0 [node name="Enemy01" parent="Enemies" instance=ExtResource("enemy_roadie")] position = Vector2(1260, 811) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy02" parent="Enemies" instance=ExtResource("enemy_pogo_fan")] position = Vector2(915, 811) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy03" parent="Enemies" instance=ExtResource("enemy_rival_guitarist")] position = Vector2(970, 581) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy04" parent="Enemies" instance=ExtResource("enemy_feedback_tech")] position = Vector2(1770, 721) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy05" parent="Enemies" instance=ExtResource("enemy_pogo_fan")] position = Vector2(1880, 721) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy06" parent="Enemies" instance=ExtResource("enemy_backstage_guard")] position = Vector2(2260, 721) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy07" parent="Enemies" instance=ExtResource("enemy_roadie")] position = Vector2(2450, 721) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy08" parent="Enemies" instance=ExtResource("enemy_pogo_fan")] position = Vector2(3030, 856) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy09" parent="Enemies" instance=ExtResource("enemy_roadie")] position = Vector2(3170, 856) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy10" parent="Enemies" instance=ExtResource("enemy_rival_guitarist")] position = Vector2(3320, 856) -show_debug_enemy_info = true +show_debug_enemy_info = false guaranteed_drop = ExtResource("item_beer") [node name="Enemy11" parent="Enemies" instance=ExtResource("enemy_feedback_tech")] position = Vector2(3900, 856) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy12" parent="Enemies" instance=ExtResource("enemy_roadie")] position = Vector2(4430, 771) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy13" parent="Enemies" instance=ExtResource("enemy_pogo_fan")] position = Vector2(4530, 771) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy14" parent="Enemies" instance=ExtResource("enemy_backstage_guard")] position = Vector2(5180, 771) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy15" parent="Enemies" instance=ExtResource("enemy_feedback_tech")] position = Vector2(5670, 666) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy16" parent="Enemies" instance=ExtResource("enemy_pogo_fan")] position = Vector2(5810, 666) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy17" parent="Enemies" instance=ExtResource("enemy_roadie")] position = Vector2(5960, 666) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy18" parent="Enemies" instance=ExtResource("enemy_rival_guitarist")] position = Vector2(6500, 666) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy19" parent="Enemies" instance=ExtResource("enemy_pogo_fan")] position = Vector2(7010, 841) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy20" parent="Enemies" instance=ExtResource("enemy_feedback_tech")] position = Vector2(7150, 841) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy21" parent="Enemies" instance=ExtResource("enemy_roadie")] position = Vector2(7320, 841) -show_debug_enemy_info = true +show_debug_enemy_info = false guaranteed_drop = ExtResource("item_pizza_post_bolo") [node name="Enemy22" parent="Enemies" instance=ExtResource("enemy_backstage_guard")] position = Vector2(7780, 841) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy23" parent="Enemies" instance=ExtResource("enemy_rival_guitarist")] position = Vector2(8380, 751) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy24" parent="Enemies" instance=ExtResource("enemy_pogo_fan")] position = Vector2(8510, 751) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy25" parent="Enemies" instance=ExtResource("enemy_feedback_tech")] position = Vector2(8950, 751) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy26" parent="Enemies" instance=ExtResource("enemy_roadie")] position = Vector2(9660, 811) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy27" parent="Enemies" instance=ExtResource("enemy_pogo_fan")] position = Vector2(9780, 811) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Enemy28" parent="Enemies" instance=ExtResource("enemy_rival_guitarist")] position = Vector2(9940, 811) -show_debug_enemy_info = true +show_debug_enemy_info = false guaranteed_drop = ExtResource("item_bocata_roadie") [node name="Enemy29" parent="Enemies" instance=ExtResource("enemy_backstage_guard")] position = Vector2(10420, 811) -show_debug_enemy_info = true +show_debug_enemy_info = false [node name="Items" type="Node2D" parent="."] @@ -523,46 +689,46 @@ position = Vector2(10850, 780) shape = SubResource("FinishShape") [node name="Sign01" parent="." instance=ExtResource("kit_label")] -offset_left = 300 -offset_top = 715 -offset_right = 560 -offset_bottom = 755 +position = Vector2(1090, 845) +display_size = Vector2(180, 56) +font_size = 10 text = "SALA RUIDO >>" +draw_layer = -2 [node name="Sign02" parent="." instance=ExtResource("kit_label")] -offset_left = 1610 -offset_top = 641 -offset_right = 1870 -offset_bottom = 681 -text = "SUBE AL BARRIO ALTO" +position = Vector2(2060, 755) +display_size = Vector2(180, 56) +font_size = 10 +text = "BARRIO ALTO >>" +draw_layer = -2 [node name="Sign03" parent="." instance=ExtResource("kit_label")] -offset_left = 2890 -offset_top = 793 -offset_right = 3150 -offset_bottom = 833 -text = "BAJADA SIN FRENOS" +position = Vector2(2920, 890) +display_size = Vector2(180, 56) +font_size = 10 +text = "DESCENSO >>" +draw_layer = -2 [node name="Sign04" parent="." instance=ExtResource("kit_label")] -offset_left = 5420 -offset_top = 564 -offset_right = 5680 -offset_bottom = 604 -text = "ESCALERA A LOS TEJADOS" +position = Vector2(5580, 700) +display_size = Vector2(180, 56) +font_size = 10 +text = "TEJADOS >>" +draw_layer = -2 [node name="Sign05" parent="." instance=ExtResource("kit_label")] -offset_left = 6850 -offset_top = 745 -offset_right = 7110 -offset_bottom = 785 -text = "POGO MULTITUDINARIO" +position = Vector2(6880, 875) +display_size = Vector2(180, 56) +font_size = 10 +text = "PATIO DEL POGO >>" +draw_layer = -2 [node name="Sign06" parent="." instance=ExtResource("kit_label")] -offset_left = 10680 -offset_top = 659 -offset_right = 10940 -offset_bottom = 699 -text = "FIN DE LA GIRA!" +position = Vector2(10800, 845) +display_size = Vector2(180, 56) +font_size = 10 +text = "FIN DE LA GIRA" +draw_layer = -2 [node name="LevelHUD" type="CanvasLayer" parent="."] layer = 87 @@ -582,13 +748,13 @@ layout_mode = 1 anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 -offset_left = -360.0 +offset_left = -440.0 offset_top = 86.0 -offset_right = -14.0 +offset_right = -24.0 offset_bottom = 140.0 grow_horizontal = 0 theme_override_fonts/font = ExtResource("font") -theme_override_font_sizes/font_size = 17 +theme_override_font_sizes/font_size = 14 theme_override_colors/font_color = Color(0.98, 0.87, 0.68, 1) theme_override_colors/font_shadow_color = Color(0.07, 0.06, 0.13, 1) theme_override_constants/shadow_offset_x = 2 diff --git a/levels/level_01.tscn b/levels/level_01.tscn index 38897fe..453e11c 100644 --- a/levels/level_01.tscn +++ b/levels/level_01.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=39 format=3] +[gd_scene load_steps=51 format=3] [ext_resource type="Script" path="res://levels/level_root.gd" id="level"] [ext_resource type="PackedScene" path="res://player/player.tscn" id="player"] @@ -16,9 +16,6 @@ [ext_resource type="PackedScene" path="res://world/props/traffic_cone.tscn" id="traffic_cone"] [ext_resource type="PackedScene" path="res://world/props/trash_bin.tscn" id="trash_bin"] [ext_resource type="PackedScene" path="res://world/props/rock.tscn" id="rock"] -[ext_resource type="PackedScene" path="res://world/props/facade_02.tscn" id="facade_02"] -[ext_resource type="PackedScene" path="res://world/props/facade_04.tscn" id="facade_04"] -[ext_resource type="PackedScene" path="res://world/props/facade_06.tscn" id="facade_06"] [ext_resource type="PackedScene" path="res://enemies/variants/roadie.tscn" id="roadie"] [ext_resource type="PackedScene" path="res://enemies/variants/pogo_fan.tscn" id="pogo_fan"] [ext_resource type="PackedScene" path="res://enemies/variants/feedback_tech.tscn" id="feedback_tech"] @@ -39,6 +36,36 @@ [ext_resource type="PackedScene" path="res://pickups/variants/amplifier_11.tscn" id="amplifier_11"] [ext_resource type="PackedScene" path="res://pickups/variants/final_setlist.tscn" id="final_setlist"] +[ext_resource type="PackedScene" path="res://world/backgrounds/ashen_atmosphere.tscn" id="art_atmosphere"] + +[ext_resource type="Script" path="res://world/backgrounds/painted_hall.gd" id="art_hall"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/abbey_back.png" id="art_abbey"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/city_mid.png" id="art_portico"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/abbey_wall.png" id="art_wall"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/platform_draped.png" id="art_draped"] + +[ext_resource type="PackedScene" path="res://world/props/column.tscn" id="art_column"] + +[ext_resource type="PackedScene" path="res://world/props/statue.tscn" id="art_statue"] + +[ext_resource type="PackedScene" path="res://world/props/banner.tscn" id="art_banner"] + +[ext_resource type="PackedScene" path="res://world/props/fence.tscn" id="art_fence"] + +[ext_resource type="PackedScene" path="res://world/props/ivy.tscn" id="art_ivy"] + +[ext_resource type="PackedScene" path="res://world/props/altar.tscn" id="art_altar"] + +[ext_resource type="PackedScene" path="res://world/props/amplifier.tscn" id="art_amplifier"] + +[ext_resource type="PackedScene" path="res://world/props/tombstone.tscn" id="art_tombstone"] + +[ext_resource type="PackedScene" path="res://world/props/rubble.tscn" id="art_rubble"] + [node name="Level01" type="Node2D"] script = ExtResource("level") texture_filter = 1 @@ -46,21 +73,48 @@ texture_repeat = 2 camera_bounds = Rect2(0, 0, 3800, 2760) [node name="Backdrop" type="Polygon2D" parent="."] -z_index = -20 +z_index = -45 color = Color(0.04, 0.055, 0.075, 1) polygon = PackedVector2Array(0, 0, 3800, 0, 3800, 2760, 0, 2760) [node name="CityBackground" parent="." instance=ExtResource("background")] -[node name="BasementBackdrop" type="Polygon2D" parent="."] -z_index = -12 -color = Color(0.075, 0.09, 0.105, 1) -polygon = PackedVector2Array(0, 900, 2460, 900, 2460, 2760, 0, 2760) +[node name="AbbeyInterior" type="TextureRect" parent="."] +z_index = -15 +texture_filter = 1 +offset_top = 880.0 +offset_right = 2460.0 +offset_bottom = 2760.0 +texture = ExtResource("art_abbey") +expand_mode = 1 +mouse_filter = 2 +script = ExtResource("art_hall") +composition_offset = Vector2(450, 180) +parallax_ratio = Vector2(0.24, 0.18) +modulate = Color(0.74, 0.72, 0.82, 1) -[node name="TowerBackdrop" type="Polygon2D" parent="."] -z_index = -12 -color = Color(0.10, 0.12, 0.14, 1) -polygon = PackedVector2Array(2500, 580, 3800, 580, 3800, 2760, 2500, 2760) +[node name="BellTowerInterior" type="TextureRect" parent="."] +z_index = -15 +texture_filter = 1 +offset_left = 2500.0 +offset_top = 380.0 +offset_right = 3800.0 +offset_bottom = 2760.0 +texture = ExtResource("art_abbey") +expand_mode = 1 +mouse_filter = 2 +script = ExtResource("art_hall") +composition_offset = Vector2(1080, 260) +parallax_ratio = Vector2(0.15, 0.18) +modulate = Color(0.65, 0.70, 0.86, 1) + +[node name="AbbeyPortico" type="Sprite2D" parent="."] +z_index = -8 +texture_filter = 1 +texture = ExtResource("art_portico") +position = Vector2(520, 548) +scale = Vector2(0.48, 0.48) +modulate = Color(0.72, 0.73, 0.80, 1) [node name="World" type="Node2D" parent="."] @@ -81,10 +135,14 @@ dimensions = Vector2(1280, 100) [node name="BasementFloor" parent="World/Ground" instance=ExtResource("ground")] position = Vector2(1900, 2630.0) dimensions = Vector2(3800, 260) +fill_texture = ExtResource("art_wall") [node name="ExitRoof" parent="World/Ground" instance=ExtResource("platform")] position = Vector2(3490, 436.0) dimensions = Vector2(620, 32) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="LeftBoundary" parent="World/Barriers" instance=ExtResource("wall")] position = Vector2(-24, 1380.0) @@ -133,10 +191,12 @@ dimensions = Vector2(360, 24) [node name="DressingRoomFloor" parent="World/SideRooms" instance=ExtResource("ground")] position = Vector2(660, 1716.0) dimensions = Vector2(1160, 72) +fill_texture = ExtResource("art_wall") [node name="DressingRoomRoof" parent="World/SideRooms" instance=ExtResource("ground")] position = Vector2(540, 1350.0) dimensions = Vector2(1000, 60) +fill_texture = ExtResource("art_wall") [node name="DressingRoomStep" parent="World/SideRooms" instance=ExtResource("platform")] position = Vector2(1300, 1532.0) @@ -157,6 +217,9 @@ dimensions = Vector2(400, 24) [node name="TowerStep02" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(3240, 2192.0) dimensions = Vector2(400, 24) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="TowerStep03" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(2820, 2032.0) @@ -165,6 +228,9 @@ dimensions = Vector2(400, 24) [node name="TowerStep04" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(3240, 1872.0) dimensions = Vector2(400, 24) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="TowerStep05" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(2820, 1712.0) @@ -173,6 +239,9 @@ dimensions = Vector2(400, 24) [node name="TowerStep06" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(3240, 1552.0) dimensions = Vector2(400, 24) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="TowerStep07" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(2820, 1392.0) @@ -181,6 +250,9 @@ dimensions = Vector2(400, 24) [node name="TowerStep08" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(3240, 1232.0) dimensions = Vector2(400, 24) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="TowerStep09" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(2820, 1072.0) @@ -189,6 +261,9 @@ dimensions = Vector2(400, 24) [node name="TowerStep10" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(3240, 912.0) dimensions = Vector2(400, 24) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="TowerStep11" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(2820, 752.0) @@ -197,6 +272,9 @@ dimensions = Vector2(400, 24) [node name="TowerStep12" parent="World/Tower" instance=ExtResource("platform")] position = Vector2(3240, 592.0) dimensions = Vector2(400, 24) +fill_texture = ExtResource("art_draped") +fascia_texture = ExtResource("art_draped") +fascia_height = 58.0 [node name="TowerRestShelf" parent="World/SideRooms" instance=ExtResource("platform")] position = Vector2(3630, 1552.0) @@ -204,11 +282,6 @@ dimensions = Vector2(300, 24) [node name="Scenery" type="Node2D" parent="."] -[node name="EntryFacade" parent="Scenery" instance=ExtResource("facade_04")] -position = Vector2(510, 760) -display_size = Vector2(740, 510) -collision_enabled = false - [node name="EntryLamp" parent="Scenery" instance=ExtResource("streetlamp")] position = Vector2(160, 760) collision_enabled = false @@ -272,11 +345,6 @@ position = Vector2(3730, 1540) collision_enabled = false draw_layer = 10 -[node name="TowerHighFacade" parent="Scenery" instance=ExtResource("facade_02")] -position = Vector2(3660, 900) -display_size = Vector2(260, 450) -collision_enabled = false - [node name="TowerExitLamp" parent="Scenery" instance=ExtResource("streetlamp")] position = Vector2(3350, 420) collision_enabled = false @@ -285,53 +353,149 @@ collision_enabled = false [node name="StartHint" parent="Signs" instance=ExtResource("sign")] position = Vector2(620, 760) -display_size = Vector2(300, 160) -font_size = 14 -text = "PASAJES DEL FEEDBACK\nBAJA AL SOTANO >>" +display_size = Vector2(206, 70) +font_size = 10 +text = "ABADIA DEL FEEDBACK\nDESCIENDE A LA NAVE >>" collision_enabled = false [node name="RoomHint" parent="Signs" instance=ExtResource("sign")] position = Vector2(1850, 1560) -display_size = Vector2(300, 160) -font_size = 14 +display_size = Vector2(206, 70) +font_size = 10 text = "<< CAMERINO OPCIONAL\nENTRA Y VUELVE" collision_enabled = false [node name="RoomReturn" parent="Signs" instance=ExtResource("sign")] position = Vector2(810, 1680) -display_size = Vector2(300, 160) -font_size = 14 +display_size = Vector2(206, 70) +font_size = 10 text = "DANO HASTA UN GOLPE\nSALIDA POR LA DERECHA >>" collision_enabled = false [node name="BasementHint" parent="Signs" instance=ExtResource("sign")] position = Vector2(1670, 2500) -display_size = Vector2(300, 160) -font_size = 14 +display_size = Vector2(206, 70) +font_size = 10 text = "<< ALMACEN OPCIONAL\nTORRE Y SALIDA >>" collision_enabled = false [node name="StorageReturn" parent="Signs" instance=ExtResource("sign")] position = Vector2(370, 2180) -display_size = Vector2(300, 160) -font_size = 14 +display_size = Vector2(206, 70) +font_size = 10 text = "RESERVA DEL GRUPO\nVUELVE POR LA DERECHA >>" collision_enabled = false [node name="TowerHint" parent="Signs" instance=ExtResource("sign")] position = Vector2(2830, 2500) -display_size = Vector2(300, 160) -font_size = 14 -text = "SUBE POR LOS ANDAMIOS\nSALIDA EN LA AZOTEA" +display_size = Vector2(206, 70) +font_size = 10 +text = "ASCIENDE AL CAMPANARIO\nSALIDA EN LA AZOTEA" collision_enabled = false [node name="RestHint" parent="Signs" instance=ExtResource("sign")] position = Vector2(3630, 1540) -display_size = Vector2(300, 160) -font_size = 14 +display_size = Vector2(206, 70) +font_size = 10 text = "DESCANSO OPCIONAL\nVUELVE A LOS ANDAMIOS" collision_enabled = false +[node name="Ruins" type="Node2D" parent="."] + +[node name="EntryColumn" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(65, 760) +display_size = Vector2(108, 274) +draw_layer = -4 + +[node name="EntryStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(1185, 760) +display_size = Vector2(128, 260) +draw_layer = -4 + +[node name="EntryBanner" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(880, 544) +display_size = Vector2(116, 158) +draw_layer = -5 + +[node name="DescentDrape01" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(2210, 1260) +display_size = Vector2(138, 188) +draw_layer = -6 + +[node name="DescentDrape02" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(2210, 1900) +display_size = Vector2(138, 188) +draw_layer = -6 + +[node name="OptionalAltar" parent="Ruins" instance=ExtResource("art_altar")] +position = Vector2(450, 1680) +display_size = Vector2(180, 166) +draw_layer = -5 + +[node name="ChoirColumn" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(95, 1680) +display_size = Vector2(84, 214) +draw_layer = -4 + +[node name="BasementMartyr" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(1450, 2500) +display_size = Vector2(166, 338) +draw_layer = -4 + +[node name="BasementColumn" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(2350, 2500) +display_size = Vector2(110, 280) +draw_layer = -4 + +[node name="BasementIvy" parent="Ruins" instance=ExtResource("art_ivy")] +position = Vector2(20, 2500) +display_size = Vector2(156, 166) +draw_layer = -2 + +[node name="ChoirAmplifier" parent="Ruins" instance=ExtResource("art_amplifier")] +position = Vector2(1990, 2500) +display_size = Vector2(82, 86) +draw_layer = -3 + +[node name="StorageOssuary" parent="Ruins" instance=ExtResource("art_tombstone")] +position = Vector2(160, 2500) +display_size = Vector2(110, 128) +draw_layer = -4 + +[node name="TowerBannerLow" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(3630, 2150) +display_size = Vector2(150, 204) +draw_layer = -6 + +[node name="TowerBannerMid" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(3630, 1510) +display_size = Vector2(150, 204) +draw_layer = -6 + +[node name="TowerBannerHigh" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(3630, 870) +display_size = Vector2(150, 204) +draw_layer = -6 + +[node name="TowerStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(3640, 1540) +display_size = Vector2(118, 240) +draw_layer = -4 + +[node name="TowerRoofStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(3725, 420) +display_size = Vector2(120, 244) +draw_layer = -4 + +[node name="TowerBellRubble" parent="Ruins" instance=ExtResource("art_rubble")] +position = Vector2(3600, 420) +display_size = Vector2(116, 72) +draw_layer = -3 + +[node name="Atmosphere" parent="." instance=ExtResource("art_atmosphere")] +mist_color = Color(0.44, 0.35, 0.36, 0.14) +dust_color = Color(0.81, 0.65, 0.39, 0.40) + [node name="Player" parent="." instance=ExtResource("player")] position = Vector2(160, 732) special_radius = 290.0 diff --git a/levels/level_02.tscn b/levels/level_02.tscn index 331bc38..a206463 100644 --- a/levels/level_02.tscn +++ b/levels/level_02.tscn @@ -1,7 +1,6 @@ -[gd_scene load_steps=15 format=3] +[gd_scene load_steps=30 format=3] [ext_resource type="Script" path="res://levels/level_root.gd" id="level"] -[ext_resource type="Script" path="res://levels/level_02_art.gd" id="art"] [ext_resource type="PackedScene" path="res://world/triggers/kill_gate.tscn" id="gate"] [ext_resource type="PackedScene" path="res://world/triggers/boss_victory.tscn" id="boss_victory"] [ext_resource type="PackedScene" path="res://player/player.tscn" id="player"] @@ -15,23 +14,70 @@ [ext_resource type="PackedScene" path="res://enemies/variants/feedback_tech.tscn" id="tech"] [ext_resource type="PackedScene" path="res://bosses/spectral_death/spectral_death.tscn" id="boss"] +[ext_resource type="PackedScene" path="res://world/backgrounds/ashen_atmosphere.tscn" id="art_atmosphere"] + +[ext_resource type="PackedScene" path="res://world/backgrounds/city_background.tscn" id="art_city"] + +[ext_resource type="Script" path="res://world/backgrounds/painted_hall.gd" id="art_hall"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/ossuary_back.png" id="art_ossuary"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/foundation.png" id="art_foundation"] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/platform_skulls.png" id="art_skulls"] + +[ext_resource type="PackedScene" path="res://world/props/streetlamp.tscn" id="art_lamp"] + +[ext_resource type="PackedScene" path="res://world/props/column.tscn" id="art_column"] + +[ext_resource type="PackedScene" path="res://world/props/statue.tscn" id="art_statue"] + +[ext_resource type="PackedScene" path="res://world/props/banner.tscn" id="art_banner"] + +[ext_resource type="PackedScene" path="res://world/props/fence.tscn" id="art_fence"] + +[ext_resource type="PackedScene" path="res://world/props/ivy.tscn" id="art_ivy"] + +[ext_resource type="PackedScene" path="res://world/props/altar.tscn" id="art_altar"] + +[ext_resource type="PackedScene" path="res://world/props/amplifier.tscn" id="art_amplifier"] + +[ext_resource type="PackedScene" path="res://world/props/tombstone.tscn" id="art_tombstone"] + +[ext_resource type="PackedScene" path="res://world/props/rubble.tscn" id="art_rubble"] + [node name="Level02" type="Node2D"] script = ExtResource("level") camera_bounds = Rect2(0, 0, 4400, 1550) +texture_filter = 1 +texture_repeat = 2 [node name="Night" type="Polygon2D" parent="."] -z_index = -20 +z_index = -38 color = Color(0.055, 0.045, 0.09, 1) polygon = PackedVector2Array(0, 0, 4400, 0, 4400, 1550, 0, 1550) -[node name="Crypt" type="Polygon2D" parent="."] -z_index = -15 -color = Color(0.10, 0.075, 0.15, 1) -polygon = PackedVector2Array(3070, 690, 4400, 690, 4400, 1550, 3070, 1550) +[node name="ProcessionVista" parent="." instance=ExtResource("art_city")] +camera_anchor_y = 650.0 +horizon_y = 898.0 +distant_tint = Color(0.52, 0.61, 0.85, 1) +middle_tint = Color(0.56, 0.59, 0.76, 1) +near_tint = Color(0.36, 0.35, 0.49, 1) -[node name="TemporaryArt" type="Node2D" parent="."] -z_index = -10 -script = ExtResource("art") +[node name="OssuaryInterior" type="TextureRect" parent="."] +z_index = -14 +texture_filter = 1 +offset_left = 3070.0 +offset_top = 690.0 +offset_right = 4400.0 +offset_bottom = 1550.0 +texture = ExtResource("art_ossuary") +expand_mode = 1 +mouse_filter = 2 +script = ExtResource("art_hall") +composition_offset = Vector2(520, 280) +parallax_ratio = Vector2(0.24, 0.15) +art_scale = 0.8 [node name="Ground" type="Node2D" parent="."] @@ -62,26 +108,42 @@ dimensions = Vector2(510, 260) [node name="Step00" parent="Ground" instance=ExtResource("platform")] position = Vector2(580, 620) dimensions = Vector2(160, 28) +fill_texture = ExtResource("art_skulls") +fascia_texture = ExtResource("art_skulls") +fascia_height = 54.0 [node name="Step01" parent="Ground" instance=ExtResource("platform")] position = Vector2(1150, 580) dimensions = Vector2(160, 28) +fill_texture = ExtResource("art_skulls") +fascia_texture = ExtResource("art_skulls") +fascia_height = 54.0 [node name="Step02" parent="Ground" instance=ExtResource("platform")] position = Vector2(1720, 605) dimensions = Vector2(160, 28) +fill_texture = ExtResource("art_skulls") +fascia_texture = ExtResource("art_skulls") +fascia_height = 54.0 [node name="Step03" parent="Ground" instance=ExtResource("platform")] position = Vector2(2240, 575) dimensions = Vector2(160, 28) +fill_texture = ExtResource("art_skulls") +fascia_texture = ExtResource("art_skulls") +fascia_height = 54.0 [node name="Step04" parent="Ground" instance=ExtResource("platform")] position = Vector2(2750, 615) dimensions = Vector2(160, 28) +fill_texture = ExtResource("art_skulls") +fascia_texture = ExtResource("art_skulls") +fascia_height = 54.0 [node name="CryptFloor" parent="Ground" instance=ExtResource("ground")] position = Vector2(3720, 1400) dimensions = Vector2(1330, 260) +fill_texture = ExtResource("art_foundation") [node name="LeftBoundary" parent="Ground" instance=ExtResource("wall")] position = Vector2(-24, 780) @@ -91,6 +153,133 @@ dimensions = Vector2(48, 1560) position = Vector2(4375, 780) dimensions = Vector2(48, 1560) +[node name="Ruins" type="Node2D" parent="."] + +[node name="ProcessionGrave0" parent="Ruins" instance=ExtResource("art_tombstone")] +position = Vector2(240, 730) +display_size = Vector2(70, 82) +draw_layer = -4 +tint = Color(0.73, 0.73, 0.86, 1) + +[node name="ProcessionGrave1" parent="Ruins" instance=ExtResource("art_tombstone")] +position = Vector2(980, 675) +display_size = Vector2(82, 96) +draw_layer = -4 +tint = Color(0.73, 0.73, 0.86, 1) +flip_h = true + +[node name="ProcessionGrave2" parent="Ruins" instance=ExtResource("art_tombstone")] +position = Vector2(1540, 675) +display_size = Vector2(70, 82) +draw_layer = -4 +tint = Color(0.73, 0.73, 0.86, 1) + +[node name="ProcessionGrave3" parent="Ruins" instance=ExtResource("art_tombstone")] +position = Vector2(1960, 700) +display_size = Vector2(82, 96) +draw_layer = -4 +tint = Color(0.73, 0.73, 0.86, 1) +flip_h = true + +[node name="ProcessionGrave4" parent="Ruins" instance=ExtResource("art_tombstone")] +position = Vector2(2450, 680) +display_size = Vector2(70, 82) +draw_layer = -4 +tint = Color(0.73, 0.73, 0.86, 1) + +[node name="ProcessionGrave5" parent="Ruins" instance=ExtResource("art_tombstone")] +position = Vector2(2910, 710) +display_size = Vector2(82, 96) +draw_layer = -4 +tint = Color(0.73, 0.73, 0.86, 1) +flip_h = true + +[node name="FirstOssuaryColumn" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(80, 730) +display_size = Vector2(108, 274) +draw_layer = -4 + +[node name="MourningStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(765, 700) +display_size = Vector2(128, 260) +draw_layer = -5 + +[node name="ProcessionAltar" parent="Ruins" instance=ExtResource("art_altar")] +position = Vector2(2170, 680) +display_size = Vector2(150, 139) +draw_layer = -5 + +[node name="CryptThreshold" parent="Ruins" instance=ExtResource("art_column")] +position = Vector2(3038, 710) +display_size = Vector2(110, 280) +draw_layer = -4 + +[node name="ProcessionIvy" parent="Ruins" instance=ExtResource("art_ivy")] +position = Vector2(1285, 735) +display_size = Vector2(106, 112) +draw_layer = -3 + +[node name="LastRubble" parent="Ruins" instance=ExtResource("art_rubble")] +position = Vector2(2850, 710) +display_size = Vector2(130, 82) +draw_layer = -3 + +[node name="BossLeftStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(3215, 1270) +display_size = Vector2(152, 308) +draw_layer = -4 + +[node name="BossRightStatue" parent="Ruins" instance=ExtResource("art_statue")] +position = Vector2(4240, 1270) +display_size = Vector2(152, 308) +draw_layer = -4 +flip_h = true + +[node name="BossBannerLeft" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(3370, 938) +display_size = Vector2(146, 198) +draw_layer = -5 + +[node name="BossBannerRight" parent="Ruins" instance=ExtResource("art_banner")] +position = Vector2(4150, 938) +display_size = Vector2(146, 198) +draw_layer = -5 + +[node name="BossAmpLeft" parent="Ruins" instance=ExtResource("art_amplifier")] +position = Vector2(3390, 1270) +display_size = Vector2(84, 88) +draw_layer = -3 + +[node name="BossAmpRight" parent="Ruins" instance=ExtResource("art_amplifier")] +position = Vector2(4100, 1270) +display_size = Vector2(84, 88) +draw_layer = -3 +flip_h = true + +[node name="BossRubble" parent="Ruins" instance=ExtResource("art_rubble")] +position = Vector2(4340, 1270) +display_size = Vector2(128, 80) +draw_layer = -3 + +[node name="Votive0" parent="Ruins" instance=ExtResource("art_lamp")] +position = Vector2(460, 730) + +[node name="Votive1" parent="Ruins" instance=ExtResource("art_lamp")] +position = Vector2(1280, 675) + +[node name="Votive2" parent="Ruins" instance=ExtResource("art_lamp")] +position = Vector2(2670, 710) + +[node name="Votive3" parent="Ruins" instance=ExtResource("art_lamp")] +position = Vector2(3300, 1270) + +[node name="Votive4" parent="Ruins" instance=ExtResource("art_lamp")] +position = Vector2(4180, 1270) + +[node name="Atmosphere" parent="." instance=ExtResource("art_atmosphere")] +mist_color = Color(0.32, 0.36, 0.57, 0.17) +dust_color = Color(0.53, 0.60, 0.81, 0.40) + [node name="Player" parent="." instance=ExtResource("player")] position = Vector2(130, 560) special_radius = 290.0 diff --git a/levels/level_02_art.gd b/levels/level_02_art.gd deleted file mode 100644 index 06d93ac..0000000 --- a/levels/level_02_art.gd +++ /dev/null @@ -1,32 +0,0 @@ -extends Node2D -## Decorado vectorial temporal: cielo, ruinas, antorchas y camara de la Muerte. -## Sin sprites externos: el equipo de arte puede reemplazar este nodo completo. - -func _process(_delta: float) -> void: - queue_redraw() - -func _draw() -> void: - var t: float = Time.get_ticks_msec() * 0.001 - # Ventanas de la ciudad y luminarias del camino. - for i: int in range(11): - var x: float = 140.0 + i * 268.0 - var h: float = 240.0 + (i % 4) * 55.0 - draw_rect(Rect2(x, 620.0 - h, 120, h), Color(0.105, 0.095, 0.15)) - for row: int in range(3): - draw_rect(Rect2(x + 24, 435 - h + row * 68, 16, 24), Color(0.61, 0.27, 0.19, 0.55)) - draw_line(Vector2(x + 8, 620), Vector2(x + 8, 470), Color(0.23, 0.23, 0.31), 7) - draw_circle(Vector2(x + 8, 466), 13, Color(0.9, 0.45, 0.14, 0.45 + 0.1 * sin(t * 4 + i))) - # Flechas de descenso y marco de piedra para el umbral. - for i: int in range(3): - var y: float = 770 + i * 120 - draw_colored_polygon(PackedVector2Array([Vector2(3150, y), Vector2(3220, y), Vector2(3185, y + 38)]), Color(0.75, 0.23, 0.42, 0.7)) - # Cripta: columnas, arco, luna ensangrentada y antorchas. - draw_circle(Vector2(3790, 890), 64, Color(0.69, 0.18, 0.23, 0.35)) - for x: float in [3340.0, 3520.0, 4030.0, 4240.0]: - draw_rect(Rect2(x, 965, 35, 305), Color(0.22, 0.18, 0.29)) - draw_rect(Rect2(x - 12, 953, 58, 22), Color(0.33, 0.25, 0.37)) - draw_rect(Rect2(x - 12, 1248, 58, 24), Color(0.33, 0.25, 0.37)) - draw_circle(Vector2(x + 18, 1030), 14, Color(0.95, 0.29, 0.30, 0.35 + 0.1 * sin(t * 5 + x))) - draw_arc(Vector2(3780, 1040), 240, PI, TAU, 36, Color(0.36, 0.24, 0.42), 18) - for x: int in range(3320, 4300, 110): - draw_line(Vector2(x, 1259), Vector2(x + 40, 1249), Color(0.49, 0.29, 0.38, 0.55), 3) diff --git a/pickups/data/amplificador_11.tres b/pickups/data/amplificador_11.tres index 5b28d61..8adfdf8 100644 --- a/pickups/data/amplificador_11.tres +++ b/pickups/data/amplificador_11.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/amplificador_11.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/amplificador_11.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/baqueta_sismica.tres b/pickups/data/baqueta_sismica.tres index 528edd4..65dd307 100644 --- a/pickups/data/baqueta_sismica.tres +++ b/pickups/data/baqueta_sismica.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/baqueta_sismica.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/baqueta_sismica.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/beer.tres b/pickups/data/beer.tres index 4797907..4398e96 100644 --- a/pickups/data/beer.tres +++ b/pickups/data/beer.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/beer.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/beer.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/bocata_roadie.tres b/pickups/data/bocata_roadie.tres index f0b159f..89fcd3e 100644 --- a/pickups/data/bocata_roadie.tres +++ b/pickups/data/bocata_roadie.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/bocata_roadie.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/bocata_roadie.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/botas_doble_bombo.tres b/pickups/data/botas_doble_bombo.tres index 638a134..5e1cb63 100644 --- a/pickups/data/botas_doble_bombo.tres +++ b/pickups/data/botas_doble_bombo.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/botas_doble_bombo.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/botas_doble_bombo.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/casete_demo.tres b/pickups/data/casete_demo.tres index 27089a0..e4e74b6 100644 --- a/pickups/data/casete_demo.tres +++ b/pickups/data/casete_demo.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/casete_demo.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/casete_demo.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/cinta_americana.tres b/pickups/data/cinta_americana.tres index 9c94627..563cc7d 100644 --- a/pickups/data/cinta_americana.tres +++ b/pickups/data/cinta_americana.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/cinta_americana.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/cinta_americana.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/coffee.tres b/pickups/data/coffee.tres index c4ac9a4..8e2b619 100644 --- a/pickups/data/coffee.tres +++ b/pickups/data/coffee.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/coffee.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/coffee.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/cuerda_titanio.tres b/pickups/data/cuerda_titanio.tres index 6b008a0..01d3abc 100644 --- a/pickups/data/cuerda_titanio.tres +++ b/pickups/data/cuerda_titanio.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/cuerda_titanio.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/cuerda_titanio.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/lata_feedback.tres b/pickups/data/lata_feedback.tres index 0e4534b..3a95346 100644 --- a/pickups/data/lata_feedback.tres +++ b/pickups/data/lata_feedback.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/lata_feedback.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/lata_feedback.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/muelles_stage.tres b/pickups/data/muelles_stage.tres index 1000003..869dca1 100644 --- a/pickups/data/muelles_stage.tres +++ b/pickups/data/muelles_stage.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/muelles_stage.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/muelles_stage.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/pedal_distorsion.tres b/pickups/data/pedal_distorsion.tres index f66e1f1..ad2bc2d 100644 --- a/pickups/data/pedal_distorsion.tres +++ b/pickups/data/pedal_distorsion.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/pedal_distorsion.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/pedal_distorsion.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/pizza_post_bolo.tres b/pickups/data/pizza_post_bolo.tres index 9aafa97..9448371 100644 --- a/pickups/data/pizza_post_bolo.tres +++ b/pickups/data/pizza_post_bolo.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/pizza_post_bolo.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/pizza_post_bolo.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/pua_apocalipsis.tres b/pickups/data/pua_apocalipsis.tres index 9314af0..d26a91a 100644 --- a/pickups/data/pua_apocalipsis.tres +++ b/pickups/data/pua_apocalipsis.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/pua_apocalipsis.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/pua_apocalipsis.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/setlist_fin.tres b/pickups/data/setlist_fin.tres index ba391b1..fa331b0 100644 --- a/pickups/data/setlist_fin.tres +++ b/pickups/data/setlist_fin.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/setlist_fin.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/setlist_fin.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/tapones_tecnico.tres b/pickups/data/tapones_tecnico.tres index 116ce37..817e63d 100644 --- a/pickups/data/tapones_tecnico.tres +++ b/pickups/data/tapones_tecnico.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/tapones_tecnico.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/tapones_tecnico.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/data/tupper_bateria.tres b/pickups/data/tupper_bateria.tres index 106ad35..2d1b24f 100644 --- a/pickups/data/tupper_bateria.tres +++ b/pickups/data/tupper_bateria.tres @@ -1,7 +1,7 @@ [gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3] [ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"] -[ext_resource type="Texture2D" path="res://assets/pickups/tupper_bateria.svg" id="2_icon"] +[ext_resource type="Texture2D" path="res://assets/ashen/items/tupper_bateria.png" id="2_icon"] [resource] script = ExtResource("1_data") diff --git a/pickups/pickup.gd b/pickups/pickup.gd index d5311cd..cddf51a 100644 --- a/pickups/pickup.gd +++ b/pickups/pickup.gd @@ -26,6 +26,8 @@ const DROP_COLLECTION_DELAY_SECONDS: float = 0.75 @export var bob_amplitude: float = 4.0 ## Velocidad angular de esa oscilacion. @export var bob_speed: float = 3.0 +## Solo presentacion: los nombres aparecen al acercarse al objeto. +@export_range(32.0, 320.0, 2.0) var label_visibility_radius: float = 110.0 var velocity: Vector2 = Vector2.ZERO var time: float = 0.0 @@ -33,6 +35,7 @@ var start_y: float = 0.0 var grounded: bool = false var _can_collect: bool = false var _pending_collector: Node2D # Jugador que toco el objeto durante la espera. +var _label_viewer: Node2D @onready var label: Label = $Label @onready var sprite: Sprite2D = $Sprite2D @@ -44,6 +47,7 @@ func _ready() -> void: _update_preview() if Engine.is_editor_hint(): return + label.visible = false add_to_group("pickup") body_entered.connect(_on_body_entered) @@ -82,6 +86,7 @@ func _enable_collection_after_delay() -> void: func _physics_process(delta: float) -> void: if Engine.is_editor_hint(): return + _update_label_proximity() time += delta if not grounded: velocity.y += fall_speed * delta @@ -153,3 +158,12 @@ func _get_configuration_warnings() -> PackedStringArray: if pickup_data == null: return PackedStringArray(["Asigna Pickup Data o arrastra una escena de pickups/variants."]) return PackedStringArray() + + +## Nombres y avisos de recogida permanecen legibles cerca del personaje sin +## llenar el horizonte de etiquetas. El editor conserva todas las etiquetas. +func _update_label_proximity() -> void: + if not is_instance_valid(_label_viewer): + _label_viewer = get_tree().get_first_node_in_group(&"player") as Node2D + label.visible = is_instance_valid(_label_viewer) and \ + global_position.distance_squared_to(_label_viewer.global_position) <= label_visibility_radius * label_visibility_radius diff --git a/pickups/pickup.tscn b/pickups/pickup.tscn index 7ebdc39..dd24fda 100644 --- a/pickups/pickup.tscn +++ b/pickups/pickup.tscn @@ -28,10 +28,17 @@ color = Color(1, 1, 1, 1) shape = SubResource("PickupShape") [node name="Label" type="Label" parent="."] -offset_left = -32.0 -offset_top = -28.0 -offset_right = 32.0 -offset_bottom = -12.0 +offset_left = -80.0 +offset_top = -50.0 +offset_right = 80.0 +offset_bottom = -18.0 +mouse_filter = 2 +theme_override_colors/font_color = Color(0.82, 0.77, 0.63, 1) +theme_override_colors/font_shadow_color = Color(0.025, 0.018, 0.026, 1) +theme_override_constants/shadow_offset_x = 1 +theme_override_constants/shadow_offset_y = 1 +clip_text = true +autowrap_mode = 3 theme_override_fonts/font = ExtResource("2_font") theme_override_font_sizes/font_size = 8 text = "Item" diff --git a/player/characters/animations/bassist_frames.tres b/player/characters/animations/bassist_frames.tres index a2f5176..d49b48b 100644 --- a/player/characters/animations/bassist_frames.tres +++ b/player/characters/animations/bassist_frames.tres @@ -1,205 +1,215 @@ -[gd_resource type="SpriteFrames" load_steps=42 format=3] +[gd_resource type="SpriteFrames" load_steps=44 format=3] -[ext_resource type="Texture2D" path="res://assets/characters/band/bassist.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/characters/bassist.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_2"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_3"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(256, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(320, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(384, 0, 64, 64) +region = Rect2(768, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(448, 0, 64, 64) +region = Rect2(960, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="fall_0"] atlas = ExtResource("atlas") -region = Rect2(256, 64, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="fall_1"] atlas = ExtResource("atlas") -region = Rect2(320, 64, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_0"] atlas = ExtResource("atlas") -region = Rect2(384, 64, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_1"] atlas = ExtResource("atlas") -region = Rect2(448, 64, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_2"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_3"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_4"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="ground_pound_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(960, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="ground_pound_1"] atlas = ExtResource("atlas") -region = Rect2(256, 128, 64, 64) +region = Rect2(960, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_0"] atlas = ExtResource("atlas") -region = Rect2(320, 128, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_1"] atlas = ExtResource("atlas") -region = Rect2(384, 128, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_2"] atlas = ExtResource("atlas") -region = Rect2(448, 128, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_0"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_1"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_2"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(960, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_0"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(960, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_1"] atlas = ExtResource("atlas") -region = Rect2(256, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_2"] atlas = ExtResource("atlas") -region = Rect2(320, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_3"] atlas = ExtResource("atlas") -region = Rect2(384, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_4"] atlas = ExtResource("atlas") -region = Rect2(448, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_5"] atlas = ExtResource("atlas") -region = Rect2(0, 256, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_end_0"] atlas = ExtResource("atlas") -region = Rect2(64, 256, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_end_1"] atlas = ExtResource("atlas") -region = Rect2(128, 256, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(192, 256, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_1"] atlas = ExtResource("atlas") -region = Rect2(256, 256, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_0"] atlas = ExtResource("atlas") -region = Rect2(320, 256, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_1"] atlas = ExtResource("atlas") -region = Rect2(384, 256, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_2"] atlas = ExtResource("atlas") -region = Rect2(448, 256, 64, 64) +region = Rect2(0, 0, 192, 192) +filter_clip = true + +[sub_resource type="AtlasTexture" id="death_0"] +atlas = ExtResource("atlas") +region = Rect2(768, 576, 192, 192) +filter_clip = true + +[sub_resource type="AtlasTexture" id="death_1"] +atlas = ExtResource("atlas") +region = Rect2(960, 576, 192, 192) filter_clip = true [resource] @@ -263,4 +273,9 @@ animations = [{ "loop": false, "name": &"pound_land", "speed": 12.0 +}, { +"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 2.0, "texture": SubResource("death_1")}], +"loop": false, +"name": &"death", +"speed": 6.0 }] diff --git a/player/characters/animations/drummer_frames.tres b/player/characters/animations/drummer_frames.tres index 89d52b4..82d3d8c 100644 --- a/player/characters/animations/drummer_frames.tres +++ b/player/characters/animations/drummer_frames.tres @@ -1,205 +1,215 @@ -[gd_resource type="SpriteFrames" load_steps=42 format=3] +[gd_resource type="SpriteFrames" load_steps=44 format=3] -[ext_resource type="Texture2D" path="res://assets/characters/band/drummer.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/characters/drummer.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_2"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_3"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(256, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(320, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(384, 0, 64, 64) +region = Rect2(768, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(448, 0, 64, 64) +region = Rect2(960, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="fall_0"] atlas = ExtResource("atlas") -region = Rect2(256, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="fall_1"] atlas = ExtResource("atlas") -region = Rect2(320, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_0"] atlas = ExtResource("atlas") -region = Rect2(384, 64, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_1"] atlas = ExtResource("atlas") -region = Rect2(448, 64, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_2"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_3"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_4"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="ground_pound_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(960, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="ground_pound_1"] atlas = ExtResource("atlas") -region = Rect2(256, 128, 64, 64) +region = Rect2(960, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_0"] atlas = ExtResource("atlas") -region = Rect2(320, 128, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_1"] atlas = ExtResource("atlas") -region = Rect2(384, 128, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_2"] atlas = ExtResource("atlas") -region = Rect2(448, 128, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_0"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_1"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_2"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(960, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_0"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(960, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_1"] atlas = ExtResource("atlas") -region = Rect2(256, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_2"] atlas = ExtResource("atlas") -region = Rect2(320, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_3"] atlas = ExtResource("atlas") -region = Rect2(384, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_4"] atlas = ExtResource("atlas") -region = Rect2(448, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_5"] atlas = ExtResource("atlas") -region = Rect2(0, 256, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_end_0"] atlas = ExtResource("atlas") -region = Rect2(64, 256, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_end_1"] atlas = ExtResource("atlas") -region = Rect2(128, 256, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(192, 256, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_1"] atlas = ExtResource("atlas") -region = Rect2(256, 256, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_0"] atlas = ExtResource("atlas") -region = Rect2(320, 256, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_1"] atlas = ExtResource("atlas") -region = Rect2(384, 256, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_2"] atlas = ExtResource("atlas") -region = Rect2(448, 256, 64, 64) +region = Rect2(0, 0, 192, 192) +filter_clip = true + +[sub_resource type="AtlasTexture" id="death_0"] +atlas = ExtResource("atlas") +region = Rect2(768, 576, 192, 192) +filter_clip = true + +[sub_resource type="AtlasTexture" id="death_1"] +atlas = ExtResource("atlas") +region = Rect2(960, 576, 192, 192) filter_clip = true [resource] @@ -263,4 +273,9 @@ animations = [{ "loop": false, "name": &"pound_land", "speed": 12.0 +}, { +"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 2.0, "texture": SubResource("death_1")}], +"loop": false, +"name": &"death", +"speed": 6.0 }] diff --git a/player/characters/animations/guitarist_frames.tres b/player/characters/animations/guitarist_frames.tres index 26b2bf8..584e8d8 100644 --- a/player/characters/animations/guitarist_frames.tres +++ b/player/characters/animations/guitarist_frames.tres @@ -1,205 +1,215 @@ -[gd_resource type="SpriteFrames" load_steps=42 format=3] +[gd_resource type="SpriteFrames" load_steps=44 format=3] -[ext_resource type="Texture2D" path="res://assets/characters/band/guitarist.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/characters/guitarist.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_2"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_3"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(256, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(320, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(384, 0, 64, 64) +region = Rect2(768, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(448, 0, 64, 64) +region = Rect2(960, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="fall_0"] atlas = ExtResource("atlas") -region = Rect2(256, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="fall_1"] atlas = ExtResource("atlas") -region = Rect2(320, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_0"] atlas = ExtResource("atlas") -region = Rect2(384, 64, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_1"] atlas = ExtResource("atlas") -region = Rect2(448, 64, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_2"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_3"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_4"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="ground_pound_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(960, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="ground_pound_1"] atlas = ExtResource("atlas") -region = Rect2(256, 128, 64, 64) +region = Rect2(960, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_0"] atlas = ExtResource("atlas") -region = Rect2(320, 128, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_1"] atlas = ExtResource("atlas") -region = Rect2(384, 128, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_2"] atlas = ExtResource("atlas") -region = Rect2(448, 128, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_0"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_1"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_2"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(960, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_0"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(960, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_1"] atlas = ExtResource("atlas") -region = Rect2(256, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_2"] atlas = ExtResource("atlas") -region = Rect2(320, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_3"] atlas = ExtResource("atlas") -region = Rect2(384, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_4"] atlas = ExtResource("atlas") -region = Rect2(448, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_5"] atlas = ExtResource("atlas") -region = Rect2(0, 256, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_end_0"] atlas = ExtResource("atlas") -region = Rect2(64, 256, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_end_1"] atlas = ExtResource("atlas") -region = Rect2(128, 256, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(192, 256, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_1"] atlas = ExtResource("atlas") -region = Rect2(256, 256, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_0"] atlas = ExtResource("atlas") -region = Rect2(320, 256, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_1"] atlas = ExtResource("atlas") -region = Rect2(384, 256, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_2"] atlas = ExtResource("atlas") -region = Rect2(448, 256, 64, 64) +region = Rect2(0, 0, 192, 192) +filter_clip = true + +[sub_resource type="AtlasTexture" id="death_0"] +atlas = ExtResource("atlas") +region = Rect2(768, 576, 192, 192) +filter_clip = true + +[sub_resource type="AtlasTexture" id="death_1"] +atlas = ExtResource("atlas") +region = Rect2(960, 576, 192, 192) filter_clip = true [resource] @@ -263,4 +273,9 @@ animations = [{ "loop": false, "name": &"pound_land", "speed": 12.0 +}, { +"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 2.0, "texture": SubResource("death_1")}], +"loop": false, +"name": &"death", +"speed": 6.0 }] diff --git a/player/characters/animations/singer_frames.tres b/player/characters/animations/singer_frames.tres index 06418df..12741ee 100644 --- a/player/characters/animations/singer_frames.tres +++ b/player/characters/animations/singer_frames.tres @@ -1,205 +1,215 @@ -[gd_resource type="SpriteFrames" load_steps=42 format=3] +[gd_resource type="SpriteFrames" load_steps=44 format=3] -[ext_resource type="Texture2D" path="res://assets/characters/band/singer.svg" id="atlas"] +[ext_resource type="Texture2D" path="res://assets/ashen/characters/singer.png" id="atlas"] [sub_resource type="AtlasTexture" id="idle_0"] atlas = ExtResource("atlas") -region = Rect2(0, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_1"] atlas = ExtResource("atlas") -region = Rect2(64, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_2"] atlas = ExtResource("atlas") -region = Rect2(128, 0, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="idle_3"] atlas = ExtResource("atlas") -region = Rect2(192, 0, 64, 64) +region = Rect2(192, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_0"] atlas = ExtResource("atlas") -region = Rect2(256, 0, 64, 64) +region = Rect2(384, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_1"] atlas = ExtResource("atlas") -region = Rect2(320, 0, 64, 64) +region = Rect2(576, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_2"] atlas = ExtResource("atlas") -region = Rect2(384, 0, 64, 64) +region = Rect2(768, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_3"] atlas = ExtResource("atlas") -region = Rect2(448, 0, 64, 64) +region = Rect2(960, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_4"] atlas = ExtResource("atlas") -region = Rect2(0, 64, 64, 64) +region = Rect2(0, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="walk_5"] atlas = ExtResource("atlas") -region = Rect2(64, 64, 64, 64) +region = Rect2(192, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_0"] atlas = ExtResource("atlas") -region = Rect2(128, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="jump_1"] atlas = ExtResource("atlas") -region = Rect2(192, 64, 64, 64) +region = Rect2(384, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="fall_0"] atlas = ExtResource("atlas") -region = Rect2(256, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="fall_1"] atlas = ExtResource("atlas") -region = Rect2(320, 64, 64, 64) +region = Rect2(576, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_0"] atlas = ExtResource("atlas") -region = Rect2(384, 64, 64, 64) +region = Rect2(0, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_1"] atlas = ExtResource("atlas") -region = Rect2(448, 64, 64, 64) +region = Rect2(192, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_2"] atlas = ExtResource("atlas") -region = Rect2(0, 128, 64, 64) +region = Rect2(384, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_3"] atlas = ExtResource("atlas") -region = Rect2(64, 128, 64, 64) +region = Rect2(576, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="punch_4"] atlas = ExtResource("atlas") -region = Rect2(128, 128, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="ground_pound_0"] atlas = ExtResource("atlas") -region = Rect2(192, 128, 64, 64) +region = Rect2(960, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="ground_pound_1"] atlas = ExtResource("atlas") -region = Rect2(256, 128, 64, 64) +region = Rect2(960, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_0"] atlas = ExtResource("atlas") -region = Rect2(320, 128, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_1"] atlas = ExtResource("atlas") -region = Rect2(384, 128, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="land_2"] atlas = ExtResource("atlas") -region = Rect2(448, 128, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_0"] atlas = ExtResource("atlas") -region = Rect2(0, 192, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_1"] atlas = ExtResource("atlas") -region = Rect2(64, 192, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_start_2"] atlas = ExtResource("atlas") -region = Rect2(128, 192, 64, 64) +region = Rect2(960, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_0"] atlas = ExtResource("atlas") -region = Rect2(192, 192, 64, 64) +region = Rect2(960, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_1"] atlas = ExtResource("atlas") -region = Rect2(256, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_2"] atlas = ExtResource("atlas") -region = Rect2(320, 192, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_3"] atlas = ExtResource("atlas") -region = Rect2(384, 192, 64, 64) +region = Rect2(384, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_4"] atlas = ExtResource("atlas") -region = Rect2(448, 192, 64, 64) +region = Rect2(0, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_5"] atlas = ExtResource("atlas") -region = Rect2(0, 256, 64, 64) +region = Rect2(192, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_end_0"] atlas = ExtResource("atlas") -region = Rect2(64, 256, 64, 64) +region = Rect2(768, 384, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="special_end_1"] atlas = ExtResource("atlas") -region = Rect2(128, 256, 64, 64) +region = Rect2(0, 0, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_0"] atlas = ExtResource("atlas") -region = Rect2(192, 256, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="hurt_1"] atlas = ExtResource("atlas") -region = Rect2(256, 256, 64, 64) +region = Rect2(576, 576, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_0"] atlas = ExtResource("atlas") -region = Rect2(320, 256, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_1"] atlas = ExtResource("atlas") -region = Rect2(384, 256, 64, 64) +region = Rect2(768, 192, 192, 192) filter_clip = true [sub_resource type="AtlasTexture" id="pound_land_2"] atlas = ExtResource("atlas") -region = Rect2(448, 256, 64, 64) +region = Rect2(0, 0, 192, 192) +filter_clip = true + +[sub_resource type="AtlasTexture" id="death_0"] +atlas = ExtResource("atlas") +region = Rect2(768, 576, 192, 192) +filter_clip = true + +[sub_resource type="AtlasTexture" id="death_1"] +atlas = ExtResource("atlas") +region = Rect2(960, 576, 192, 192) filter_clip = true [resource] @@ -263,4 +273,9 @@ animations = [{ "loop": false, "name": &"pound_land", "speed": 12.0 +}, { +"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 2.0, "texture": SubResource("death_1")}], +"loop": false, +"name": &"death", +"speed": 6.0 }] diff --git a/player/player.gd b/player/player.gd index 6bbe2d7..bad1b73 100644 --- a/player/player.gd +++ b/player/player.gd @@ -863,6 +863,12 @@ func _die() -> void: is_dead = true _special_active = false feedback_camera.call("start_solo", 0.0) + if animated_sprite.sprite_frames.has_animation(&"death"): + # El menu de derrota pausa la escena; solo este dibujo termina su caida. + animated_sprite.process_mode = Node.PROCESS_MODE_ALWAYS + animated_sprite.self_modulate = Color.WHITE + animated_sprite.speed_scale = 1.0 + animated_sprite.play(&"death") died.emit() # La pantalla de derrota ofrece reiniciar, selector y titulo. @@ -898,7 +904,9 @@ func _update_timers(delta: float) -> void: ## Selecciona la animacion con prioridad de estados; admite conjuntos de animaciones incompletos. func _update_animation() -> void: var animation_name: StringName = &"idle" - if _special_active: + if is_dead: + animation_name = &"death" + elif _special_active: if _special_elapsed < special_duration * 0.15: animation_name = &"special_start" elif _special_elapsed > special_duration * 0.85: diff --git a/player/player.tscn b/player/player.tscn index 6af283e..cfdc190 100644 --- a/player/player.tscn +++ b/player/player.tscn @@ -43,13 +43,15 @@ monitorable = false [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1502470275] z_index = -1 -texture_filter = 2 +texture_filter = 1 position = Vector2(0, -2) +scale = Vector2(0.5, 0.5) sprite_frames = ExtResource("2_frames") animation = &"idle" speed_scale = 1.0 [node name="Camera2D" type="Camera2D" parent="." unique_id=902833396] +position = Vector2(0, -64) zoom = Vector2(2, 2) limit_left = 0 limit_top = 0 diff --git a/project.godot b/project.godot index 62dd00a..52dcd96 100644 --- a/project.godot +++ b/project.godot @@ -11,8 +11,8 @@ config_version=5 [application] config/name="Mortal Maze: The Game" -config/quit_on_go_back=false run/main_scene="res://game/main.tscn" +config/quit_on_go_back=false config/features=PackedStringArray("4.7", "GL Compatibility") config/icon="res://icon.svg" @@ -23,6 +23,10 @@ RunSession="*res://game/run_session.gd" [display] +window/size/viewport_width=1280 +window/size/viewport_height=720 +window/size/window_width_override=1280 +window/size/window_height_override=720 window/stretch/mode="canvas_items" window/stretch/aspect="expand" @@ -83,6 +87,9 @@ pointing/emulate_mouse_from_touch=true [rendering] +textures/canvas_textures/default_texture_filter=0 +environment/defaults/default_clear_color=Color(0.075, 0.063, 0.105, 1) +2d/snap/snap_2d_transforms_to_pixel=true rendering_device/driver.windows="d3d12" renderer/rendering_method="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility" diff --git a/rare_items/data/lost_pick.tres b/rare_items/data/lost_pick.tres index 1f55f6a..31e0285 100644 --- a/rare_items/data/lost_pick.tres +++ b/rare_items/data/lost_pick.tres @@ -1,13 +1,25 @@ -[gd_resource type="Resource" script_class="RareItemData" load_steps=3 format=3] +[gd_resource type="Resource" script_class="RareItemData" load_steps=4 format=3] [ext_resource type="Script" path="res://rare_items/rare_item_data.gd" id="script"] -[ext_resource type="Texture2D" path="res://assets/rare_items/lost_pick.svg" id="icon"] + +[sub_resource type="Image" id="LostPickImage"] +data = { +"data": PackedByteArray(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 9, 3, 255, 107, 76, 36, 255, 123, 81, 36, 255, 184, 112, 30, 255, 196, 139, 64, 255, 227, 187, 118, 255, 173, 115, 45, 255, 173, 112, 30, 255, 138, 89, 32, 255, 100, 62, 23, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 27, 15, 255, 181, 118, 51, 255, 255, 255, 250, 255, 159, 97, 32, 255, 123, 79, 43, 255, 123, 82, 41, 255, 114, 71, 31, 255, 150, 101, 45, 255, 143, 91, 39, 255, 144, 93, 32, 255, 158, 109, 47, 255, 171, 116, 50, 255, 115, 68, 24, 255, 214, 143, 49, 255, 251, 234, 186, 255, 250, 234, 180, 255, 250, 239, 175, 255, 224, 164, 91, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 58, 23, 255, 234, 219, 192, 255, 214, 157, 70, 255, 93, 51, 22, 255, 126, 78, 33, 255, 119, 75, 38, 255, 136, 93, 46, 255, 157, 110, 49, 255, 187, 136, 63, 255, 176, 124, 50, 255, 197, 143, 70, 255, 197, 144, 66, 255, 38, 19, 5, 255, 129, 78, 35, 255, 163, 107, 42, 255, 184, 121, 52, 255, 242, 181, 99, 255, 251, 234, 168, 255, 253, 210, 114, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 151, 101, 48, 255, 194, 154, 94, 255, 82, 52, 27, 255, 131, 83, 36, 255, 154, 91, 26, 255, 141, 89, 38, 255, 121, 80, 42, 255, 148, 107, 59, 255, 137, 90, 41, 255, 201, 146, 73, 255, 194, 142, 67, 255, 230, 184, 106, 255, 226, 179, 101, 255, 223, 180, 113, 255, 195, 137, 59, 255, 209, 149, 68, 255, 168, 111, 46, 255, 245, 190, 114, 255, 232, 167, 78, 255, 208, 153, 83, 255, 181, 107, 32, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 66, 24, 255, 79, 30, 5, 255, 99, 62, 34, 255, 139, 98, 48, 255, 81, 48, 23, 255, 134, 89, 37, 255, 120, 79, 46, 255, 150, 106, 58, 255, 164, 118, 59, 255, 216, 161, 80, 255, 179, 132, 59, 255, 248, 214, 143, 255, 227, 178, 98, 255, 37, 16, 6, 255, 226, 164, 74, 255, 192, 133, 60, 255, 226, 171, 90, 255, 215, 155, 72, 255, 158, 106, 49, 255, 131, 82, 29, 255, 118, 71, 24, 255, 130, 73, 17, 255, 116, 68, 20, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 216, 153, 255, 122, 76, 41, 255, 124, 78, 41, 255, 118, 81, 46, 255, 164, 120, 61, 255, 128, 75, 25, 255, 151, 104, 45, 255, 182, 127, 59, 255, 158, 114, 54, 255, 162, 112, 50, 255, 208, 155, 70, 255, 251, 232, 172, 255, 35, 10, 4, 255, 58, 36, 16, 255, 222, 163, 79, 255, 208, 149, 69, 255, 170, 115, 50, 255, 194, 129, 48, 255, 168, 113, 54, 255, 152, 102, 44, 255, 136, 87, 32, 255, 116, 68, 23, 255, 185, 131, 57, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 24, 6, 255, 180, 123, 64, 255, 137, 103, 62, 255, 104, 67, 40, 255, 124, 87, 55, 255, 143, 96, 39, 255, 185, 131, 63, 255, 178, 124, 59, 255, 186, 139, 68, 255, 236, 186, 102, 255, 222, 171, 91, 255, 241, 206, 141, 255, 249, 237, 190, 255, 37, 22, 11, 255, 92, 60, 28, 255, 217, 159, 75, 255, 207, 151, 69, 255, 189, 131, 55, 255, 143, 95, 44, 255, 178, 125, 57, 255, 156, 107, 45, 255, 141, 88, 32, 255, 151, 98, 40, 255, 142, 94, 41, 255, 35, 19, 5, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87, 53, 20, 255, 108, 67, 30, 255, 114, 68, 30, 255, 101, 67, 33, 255, 130, 87, 41, 255, 138, 88, 37, 255, 178, 122, 50, 255, 173, 120, 51, 255, 224, 167, 85, 255, 219, 163, 82, 255, 232, 184, 102, 255, 241, 193, 111, 255, 16, 6, 1, 255, 59, 41, 24, 255, 236, 194, 115, 255, 199, 137, 56, 255, 205, 151, 76, 255, 205, 157, 91, 255, 197, 145, 79, 255, 147, 99, 42, 255, 173, 124, 61, 255, 148, 103, 48, 255, 114, 74, 31, 255, 97, 55, 16, 255, 79, 48, 13, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 51, 24, 255, 116, 70, 29, 255, 129, 87, 44, 255, 138, 90, 36, 255, 140, 94, 46, 255, 161, 113, 52, 255, 179, 128, 59, 255, 218, 165, 86, 255, 198, 137, 66, 255, 197, 135, 65, 255, 235, 184, 105, 255, 218, 167, 94, 255, 31, 21, 14, 255, 32, 21, 8, 255, 228, 161, 66, 255, 227, 171, 85, 255, 210, 154, 74, 255, 190, 134, 56, 255, 167, 119, 57, 255, 101, 56, 18, 255, 171, 120, 56, 255, 188, 137, 78, 255, 122, 80, 36, 255, 128, 83, 33, 255, 64, 41, 14, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 76, 48, 18, 255, 152, 101, 45, 255, 149, 95, 41, 255, 209, 154, 78, 255, 99, 53, 20, 255, 140, 93, 41, 255, 189, 136, 65, 255, 213, 156, 79, 255, 221, 168, 94, 255, 224, 168, 92, 255, 239, 203, 131, 255, 21, 10, 3, 255, 55, 39, 29, 255, 125, 64, 19, 255, 233, 175, 80, 255, 255, 240, 180, 255, 59, 40, 19, 255, 178, 120, 42, 255, 131, 83, 37, 255, 134, 87, 41, 255, 124, 76, 35, 255, 125, 81, 41, 255, 124, 85, 40, 255, 116, 76, 26, 255, 79, 51, 16, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 7, 0, 255, 235, 178, 94, 255, 79, 50, 19, 255, 132, 89, 38, 255, 161, 111, 51, 255, 168, 117, 54, 255, 180, 124, 55, 255, 166, 110, 46, 255, 197, 136, 62, 255, 230, 171, 86, 255, 27, 13, 3, 255, 38, 30, 23, 255, 75, 50, 32, 255, 164, 120, 59, 255, 14, 9, 4, 255, 14, 8, 3, 255, 245, 230, 171, 255, 152, 104, 44, 255, 174, 120, 57, 255, 119, 71, 29, 255, 129, 83, 42, 255, 104, 63, 29, 255, 70, 39, 15, 255, 205, 159, 88, 255, 47, 24, 6, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 249, 200, 103, 255, 116, 69, 27, 255, 142, 98, 47, 255, 138, 91, 41, 255, 156, 110, 51, 255, 194, 139, 67, 255, 193, 136, 63, 255, 196, 137, 65, 255, 219, 161, 77, 255, 42, 31, 21, 255, 69, 44, 28, 255, 128, 75, 36, 255, 48, 36, 27, 255, 42, 32, 25, 255, 73, 48, 26, 255, 198, 135, 64, 255, 145, 94, 40, 255, 153, 105, 48, 255, 146, 100, 46, 255, 120, 78, 34, 255, 88, 50, 20, 255, 99, 58, 22, 255, 250, 206, 124, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 62, 26, 255, 140, 89, 35, 255, 178, 126, 65, 255, 139, 90, 37, 255, 179, 129, 64, 255, 158, 112, 50, 255, 175, 120, 54, 255, 204, 150, 77, 255, 30, 12, 1, 255, 48, 36, 29, 255, 59, 37, 22, 255, 60, 40, 22, 255, 68, 40, 21, 255, 58, 38, 27, 255, 213, 154, 69, 255, 175, 124, 56, 255, 137, 94, 38, 255, 144, 102, 48, 255, 124, 80, 34, 255, 135, 86, 34, 255, 128, 85, 35, 255, 109, 66, 27, 255, 89, 51, 12, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 74, 48, 21, 255, 151, 83, 22, 255, 141, 92, 40, 255, 159, 107, 52, 255, 157, 106, 50, 255, 157, 106, 46, 255, 149, 103, 47, 255, 166, 112, 43, 255, 22, 13, 9, 255, 64, 31, 8, 255, 255, 255, 244, 255, 62, 35, 18, 255, 84, 60, 39, 255, 64, 43, 23, 255, 150, 93, 37, 255, 221, 170, 107, 255, 141, 94, 36, 255, 158, 115, 63, 255, 126, 86, 40, 255, 121, 72, 27, 255, 108, 65, 23, 255, 161, 123, 68, 255, 78, 49, 20, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 110, 49, 255, 125, 79, 32, 255, 138, 90, 39, 255, 138, 91, 43, 255, 135, 89, 37, 255, 185, 123, 49, 255, 231, 198, 135, 255, 195, 128, 44, 255, 209, 143, 57, 255, 147, 97, 36, 255, 54, 38, 27, 255, 67, 45, 30, 255, 211, 150, 65, 255, 146, 91, 32, 255, 139, 83, 32, 255, 135, 88, 34, 255, 126, 80, 32, 255, 118, 74, 32, 255, 107, 66, 24, 255, 92, 48, 14, 255, 131, 83, 38, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 71, 44, 17, 255, 114, 69, 22, 255, 105, 73, 39, 255, 144, 102, 47, 255, 142, 93, 41, 255, 152, 104, 45, 255, 139, 95, 40, 255, 165, 109, 42, 255, 207, 147, 63, 255, 11, 7, 2, 255, 50, 33, 23, 255, 244, 214, 155, 255, 189, 125, 47, 255, 103, 60, 20, 255, 143, 96, 41, 255, 105, 65, 24, 255, 99, 61, 26, 255, 104, 67, 30, 255, 89, 48, 16, 255, 120, 76, 26, 255, 65, 37, 11, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 20, 3, 255, 253, 216, 150, 255, 101, 65, 33, 255, 117, 76, 32, 255, 133, 92, 38, 255, 141, 101, 48, 255, 179, 125, 55, 255, 197, 135, 65, 255, 255, 219, 144, 255, 32, 20, 9, 255, 47, 29, 19, 255, 187, 120, 40, 255, 179, 117, 46, 255, 126, 80, 34, 255, 134, 89, 40, 255, 133, 89, 37, 255, 120, 72, 26, 255, 106, 63, 20, 255, 105, 63, 20, 255, 214, 160, 82, 255, 31, 17, 5, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 49, 16, 255, 134, 86, 35, 255, 119, 80, 39, 255, 131, 87, 38, 255, 154, 106, 44, 255, 182, 124, 53, 255, 201, 134, 60, 255, 49, 18, 1, 255, 47, 27, 15, 255, 241, 192, 112, 255, 183, 126, 57, 255, 163, 107, 46, 255, 155, 103, 43, 255, 138, 93, 41, 255, 125, 77, 31, 255, 110, 64, 29, 255, 101, 54, 18, 255, 108, 54, 12, 255, 77, 45, 14, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 8, 0, 255, 212, 146, 72, 255, 130, 86, 32, 255, 123, 80, 33, 255, 139, 91, 38, 255, 183, 125, 54, 255, 213, 151, 67, 255, 12, 7, 4, 255, 35, 18, 5, 255, 196, 131, 52, 255, 171, 120, 52, 255, 168, 117, 48, 255, 166, 117, 52, 255, 154, 108, 48, 255, 143, 97, 38, 255, 101, 57, 21, 255, 96, 51, 18, 255, 219, 170, 104, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 43, 16, 255, 154, 95, 36, 255, 123, 78, 29, 255, 150, 100, 40, 255, 207, 146, 67, 255, 230, 174, 83, 255, 34, 19, 8, 255, 243, 213, 136, 255, 164, 109, 47, 255, 176, 120, 49, 255, 167, 112, 42, 255, 174, 124, 58, 255, 144, 96, 34, 255, 127, 83, 31, 255, 93, 51, 16, 255, 186, 139, 79, 255, 73, 43, 12, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 23, 4, 255, 180, 130, 59, 255, 107, 59, 16, 255, 212, 152, 71, 255, 203, 138, 62, 255, 204, 153, 74, 255, 94, 58, 30, 255, 213, 151, 67, 255, 195, 136, 62, 255, 163, 112, 46, 255, 111, 67, 24, 255, 135, 86, 33, 255, 120, 77, 29, 255, 125, 82, 27, 255, 124, 82, 30, 255, 159, 107, 40, 255, 25, 10, 5, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 86, 53, 16, 255, 166, 101, 29, 255, 191, 127, 48, 255, 211, 147, 64, 255, 16, 5, 1, 255, 231, 166, 74, 255, 227, 171, 86, 255, 183, 126, 52, 255, 164, 117, 52, 255, 131, 78, 27, 255, 151, 93, 37, 255, 128, 82, 40, 255, 103, 60, 21, 255, 190, 140, 69, 255, 63, 35, 12, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 36, 8, 255, 196, 128, 45, 255, 210, 148, 68, 255, 138, 96, 58, 255, 202, 138, 59, 255, 175, 122, 52, 255, 212, 154, 79, 255, 181, 126, 54, 255, 148, 101, 40, 255, 186, 135, 67, 255, 93, 54, 18, 255, 155, 98, 32, 255, 85, 53, 16, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 35, 10, 255, 232, 195, 109, 255, 176, 126, 71, 255, 191, 128, 46, 255, 152, 98, 33, 255, 177, 117, 46, 255, 209, 150, 68, 255, 192, 131, 61, 255, 135, 88, 30, 255, 163, 114, 41, 255, 149, 98, 36, 255, 226, 174, 88, 255, 14, 2, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 63, 21, 255, 199, 131, 48, 255, 182, 118, 42, 255, 179, 117, 49, 255, 178, 119, 52, 255, 160, 101, 37, 255, 173, 112, 47, 255, 174, 117, 46, 255, 136, 81, 26, 255, 162, 101, 42, 255, 86, 48, 15, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147, 85, 21, 255, 171, 108, 39, 255, 152, 94, 32, 255, 176, 120, 53, 255, 217, 154, 72, 255, 199, 134, 49, 255, 146, 89, 25, 255, 206, 155, 93, 255, 104, 66, 23, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 24, 5, 255, 199, 146, 80, 255, 148, 95, 31, 255, 180, 121, 47, 255, 247, 203, 117, 255, 208, 147, 62, 255, 215, 151, 64, 255, 118, 68, 19, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 74, 39, 11, 255, 197, 135, 66, 255, 202, 137, 55, 255, 245, 214, 139, 255, 248, 200, 104, 255, 203, 148, 68, 255, 35, 20, 7, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 61, 16, 255, 206, 151, 84, 255, 251, 250, 250, 255, 216, 150, 57, 255, 59, 33, 11, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 24, 7, 255, 140, 81, 23, 255, 39, 22, 9, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), +"format": "RGBA8", +"height": 32, +"mipmaps": false, +"width": 32 +} + +[sub_resource type="ImageTexture" id="LostPickTexture"] +resource_name = "LostPickIcon" +image = SubResource("LostPickImage") [resource] script = ExtResource("script") id = &"lost_pick" display_name = "Púa Perdida" description = "La pua que faltaba para llevar el solo un poco mas lejos. Encuentrala y termina el nivel para conservarla." -icon = ExtResource("icon") +icon = SubResource("LostPickTexture") color = Color(1, 0.77, 0.26, 1) special_damage_bonus = 0.2 diff --git a/tests/art_asset_helpers.py b/tests/art_asset_helpers.py new file mode 100644 index 0000000..39a403e --- /dev/null +++ b/tests/art_asset_helpers.py @@ -0,0 +1,93 @@ +"""Small PNG/AtlasTexture readers for art contracts, using only the standard library.""" +from functools import lru_cache +from hashlib import sha256 +from pathlib import Path +import re +import struct +import zlib + + +@lru_cache(maxsize=12) +def rgba_png(path: Path) -> tuple[int, int, bytes]: + """Decode an ordinary non-interlaced RGBA8 PNG; reject another export format.""" + data = path.read_bytes() + assert data[:8] == b"\x89PNG\r\n\x1a\n", f"Not a PNG: {path}" + offset = 8 + payload = bytearray() + width = height = 0 + while offset < len(data): + length = struct.unpack_from(">I", data, offset)[0] + kind = data[offset + 4:offset + 8] + chunk = data[offset + 8:offset + 8 + length] + if kind == b"IHDR": + width, height, depth, color_type, compression, filtering, interlace = struct.unpack(">IIBBBBB", chunk) + assert (depth, color_type, compression, filtering, interlace) == (8, 6, 0, 0, 0), path + elif kind == b"IDAT": + payload.extend(chunk) + elif kind == b"IEND": + break + offset += length + 12 + stride = width * 4 + raw = zlib.decompress(payload) + assert width > 0 and height > 0 and len(raw) == (stride + 1) * height, path + result = bytearray(stride * height) + for y in range(height): + start = y * (stride + 1) + mode = raw[start] + row = bytearray(raw[start + 1:start + 1 + stride]) + previous = result[(y - 1) * stride:y * stride] if y else bytes(stride) + if mode: + for x in range(stride): + left = row[x - 4] if x >= 4 else 0 + up = previous[x] + upper_left = previous[x - 4] if x >= 4 else 0 + if mode == 1: + prediction = left + elif mode == 2: + prediction = up + elif mode == 3: + prediction = (left + up) // 2 + elif mode == 4: + base = left + up - upper_left + distances = (abs(base - left), abs(base - up), abs(base - upper_left)) + prediction = (left, up, upper_left)[distances.index(min(distances))] + else: + raise AssertionError(f"Unknown PNG filter {mode}: {path}") + row[x] = (row[x] + prediction) & 255 + result[y * stride:(y + 1) * stride] = row + return width, height, bytes(result) + + +def atlas_path(root: Path, frames_source: str) -> Path: + paths = re.findall(r'\[ext_resource type="Texture2D"[^\n]*path="res://([^\"]+)"', frames_source) + assert len(paths) == 1, paths + return root / paths[0] + + +def atlas_regions(frames_source: str) -> dict[str, tuple[int, int, int, int]]: + regions = {} + for name, body in re.findall(r'\[sub_resource type="AtlasTexture" id="([^\"]+)"\]([^\[]+)', frames_source): + match = re.search(r'region = Rect2\(([\d.]+), ([\d.]+), ([\d.]+), ([\d.]+)\)', body) + assert match, name + regions[name] = tuple(int(float(value)) for value in match.groups()) + return regions + + +def animation_frames(frames_source: str, name: str) -> list[str]: + for frame_block, animation in re.findall( + r'"frames":\s*\[(.*?)\],\s*"loop":\s*(?:true|false),\s*"name":\s*&"([^\"]+)"', + frames_source, re.S, + ): + if animation == name: + return re.findall(r'SubResource\("([^\"]+)"\)', frame_block) + raise AssertionError(f"Missing animation: {name}") + + +def region_hash(image: tuple[int, int, bytes], region: tuple[int, int, int, int]) -> str: + width, height, rgba = image + x, y, w, h = region + assert x >= 0 and y >= 0 and x + w <= width and y + h <= height + digest = sha256() + for row in range(y, y + h): + digest.update(rgba[(row * width + x) * 4:(row * width + x + w) * 4]) + return digest.hexdigest() diff --git a/tests/runtime_test_profile.gd b/tests/runtime_test_profile.gd index 4b96044..f1dc6bb 100644 --- a/tests/runtime_test_profile.gd +++ b/tests/runtime_test_profile.gd @@ -6,7 +6,10 @@ static func prepare(tree: SceneTree) -> PlayerProgressStore: var path: String = "user://__test_progress_%d_%d.json" % [OS.get_process_id(), Time.get_ticks_usec()] var profile: PlayerProgressStore = tree.root.get_node_or_null("PlayerProgress") as PlayerProgressStore if profile == null: - profile = preload("res://game/player_progress.tscn").instantiate() as PlayerProgressStore + # La carga diferida evita precargar el mismo PackedScene antes de que Godot + # inicialice su autoload cuando la suite arranca mediante --script. + var profile_scene: PackedScene = load("res://game/player_progress.tscn") as PackedScene + profile = profile_scene.instantiate() as PlayerProgressStore profile.name = "PlayerProgress" profile.save_path = path tree.root.add_child(profile) diff --git a/tests/test_band_resources.py b/tests/test_band_resources.py index dea8eee..7197330 100644 --- a/tests/test_band_resources.py +++ b/tests/test_band_resources.py @@ -2,22 +2,20 @@ from pathlib import Path import re import unittest -import xml.etree.ElementTree as ET +try: + from .art_asset_helpers import animation_frames, atlas_path, atlas_regions, region_hash, rgba_png +except ImportError: # unittest discover -s tests imports each module at the top level. + from art_asset_helpers import animation_frames, atlas_path, atlas_regions, region_hash, rgba_png ROOT = Path(__file__).resolve().parents[1] ROLES = ('guitarist', 'drummer', 'bassist', 'singer') NAMES = ('Diego', 'Ivan', 'Fer', 'Hector') -SVG_NS = '{http://www.w3.org/2000/svg}' def source(path): return (ROOT / path).read_text(encoding='utf-8') -def cell_groups(path): - return {group.attrib['id']: group for group in ET.parse(ROOT / path).getroot().findall(SVG_NS + 'g')} - - class BandResourceTests(unittest.TestCase): def test_named_profiles_have_independent_frames(self): for role, name in zip(ROLES, NAMES): @@ -82,63 +80,51 @@ class BandResourceTests(unittest.TestCase): expected_names = {'idle', 'walk', 'jump', 'fall', 'punch', 'ground_pound', 'land', 'pound_land', 'special_start', 'special', 'special_end', 'hurt'} for role in ROLES: - atlas = ET.parse(ROOT / f'assets/characters/band/{role}.svg').getroot() - self.assertEqual((atlas.attrib['width'], atlas.attrib['height']), ('512', '320')) - self.assertEqual(atlas.attrib['shape-rendering'], 'geometricPrecision') - self.assertFalse(list(atlas.iter(SVG_NS + 'image'))) - self.assertFalse(list(atlas.iter(SVG_NS + 'text'))) text = source(f'player/characters/animations/{role}_frames.tres') - self.assertEqual(set(re.findall(r'"name": &"([^"]+)"', text)), expected_names) + atlas_file = atlas_path(ROOT, text) + self.assertEqual(atlas_file.suffix, '.png') + width, height, rgba = rgba_png(atlas_file) + self.assertEqual((width, height), (1152, 768)) + alpha = rgba[3::4] + self.assertEqual(min(alpha), 0, 'El fondo del atlas debe ser transparente') + self.assertGreaterEqual(max(alpha), 250, 'Los cuerpos deben contener pixeles opacos') + self.assertTrue(expected_names <= set(re.findall(r'"name": &"([^"]+)"', text))) declared = re.findall(r'\[sub_resource type="AtlasTexture" id="([^"]+)"\]', text) - self.assertEqual(len(declared), 40) + self.assertGreaterEqual(len(declared), 40) self.assertEqual(set(declared), set(re.findall(r'SubResource\("([^"]+)"\)', text))) - self.assertEqual(set(declared), set(cell_groups(f'assets/characters/band/{role}.svg'))) - for x, y, w, h in re.findall(r'region = Rect2\((\d+), (\d+), (\d+), (\d+)\)', text): - x, y, w, h = map(int, (x, y, w, h)) - self.assertEqual((w, h), (64, 64)) - self.assertLessEqual(x+w, 512) - self.assertLessEqual(y+h, 320) + regions = atlas_regions(text) + self.assertEqual(set(declared), set(regions)) + for x, y, w, h in regions.values(): + self.assertEqual((w, h), (192, 192)) + self.assertEqual((x % 192, y % 192), (0, 0)) + self.assertLessEqual(x+w, width) + self.assertLessEqual(y+h, height) self.assertEqual(int(re.search(r'load_steps=(\d+)', text)[1]), 1+len(re.findall(r'^\[(?:ext|sub)_resource ', text, re.M))) def test_playable_art_has_distinct_identity_and_correct_instruments(self): - generator = source('tools/generate_vector_character_art.py') - # Rasgos visibles y paletas propias, no solo cambios de nombre en los SVG. - for token in ('Barba abundante', 'Chaleco vaquero oscuro', - 'Camiseta negra', 'Rizo pequeño', 'Chaqueta negra con solapas', - 'count = 4 if is_bass else 6'): - self.assertIn(token, generator) - guitarist = source('assets/characters/band/guitarist.svg') - bassist = source('assets/characters/band/bassist.svg') - drummer = source('assets/characters/band/drummer.svg') - singer = source('assets/characters/band/singer.svg') - self.assertIn('Diego', guitarist) - self.assertIn('Fer', bassist) - self.assertIn('Iván', drummer) - self.assertIn('Héctor', singer) - # El instrumento aparece en las poses especiales, no en el idle. + identities = set() for role in ROLES: - groups = cell_groups(f'assets/characters/band/{role}.svg') - idle_paths = list(groups['idle_0'].iter(SVG_NS + 'path')) - special_paths = list(groups['special_0'].iter(SVG_NS + 'path')) - self.assertGreater(len(special_paths), len(idle_paths), role) - self.assertIn('Dos baquetas cruzadas', generator) - self.assertIn('nunca aparecen en Fer', generator) - self.assertIn('verde de cuatro cuerdas', source('assets/characters/band/README.md')) + frames = source(f'player/characters/animations/{role}_frames.tres') + regions = atlas_regions(frames) + image = rgba_png(atlas_path(ROOT, frames)) + idle = region_hash(image, regions[animation_frames(frames, 'idle')[0]]) + special = {region_hash(image, regions[name]) for name in animation_frames(frames, 'special')} + self.assertTrue(any(pose != idle for pose in special), role) + identities.add(idle) + # Los instrumentos y siluetas se inspeccionan ademas en la captura real. + portrait = ROOT / f'assets/ashen/portraits/{role}.png' + self.assertTrue(portrait.is_file(), role) + self.assertEqual(len(identities), 4, 'Cada integrante conserva un sprite propio') - def test_vector_walk_uses_six_distinct_leg_contacts(self): - # Ninguna celda conserva los rectangulos originales; pasos con tobillo y rodilla. + def test_pixel_walk_uses_distinct_animation_cells(self): for role in ROLES: - groups = cell_groups(f'assets/characters/band/{role}.svg') - paths = [] - for i in range(6): - group = groups[f'walk_{i}'] - paths.append(group.find(SVG_NS+'path').attrib['d']) - self.assertTrue(any('url(#jacket)' in str(node.attrib) - for node in group.iter(SVG_NS+'path')), role) - self.assertGreaterEqual(len(set(paths)), 5, role) - self.assertIn('def draw_shoe(', source('tools/generate_vector_character_art.py')) - self.assertIn('def pose_parameters(', source('tools/generate_vector_character_art.py')) + frames = source(f'player/characters/animations/{role}_frames.tres') + walk = animation_frames(frames, 'walk') + regions = atlas_regions(frames) + image = rgba_png(atlas_path(ROOT, frames)) + self.assertEqual(len(walk), 6) + self.assertGreaterEqual(len({region_hash(image, regions[name]) for name in walk}), 5, role) def test_punch_uses_identical_timing_in_every_profile(self): expected = [('1.0', 'punch_0'), ('0.75', 'punch_1'), ('1.15', 'punch_2'), @@ -162,7 +148,8 @@ class BandResourceTests(unittest.TestCase): self.assertNotIn(identifier, fx) for kind in ('electric_pound', 'vocal_dome', 'bass_cracks', 'vocal_wave', 'drum_cymbals', 'bass_pulse'): self.assertIn(f'func _draw_{kind}(', fx) - self.assertIn('draw_colored_polygon(dome', fx) + self.assertIn('draw_texture_rect_region(FX_ATLAS', fx) + self.assertIn('CanvasItem.TEXTURE_FILTER_NEAREST', fx) self.assertIn('draw_set_transform(Vector2.ZERO, 0.0, Vector2.ONE)', fx) def test_bass_notes_and_camera_share_the_combat_pulse(self): diff --git a/tests/test_enemy_ai_runtime.gd b/tests/test_enemy_ai_runtime.gd index 1b01b7f..01b4cfd 100644 --- a/tests/test_enemy_ai_runtime.gd +++ b/tests/test_enemy_ai_runtime.gd @@ -67,16 +67,18 @@ func _test_chasing_and_return() -> void: func _test_jumping() -> void: var flat: Array[Rect2] = [Rect2(-500, 300, 1500, 200)] - if not await _arena("pogo_fan", flat, Vector2(100, 270), Vector2(430, 274)): + var step: Array[Rect2] = [Rect2(-500, 300, 700, 200), Rect2(200, 250, 800, 250)] + # La IA salta para salvar un obstaculo/desnivel; no salta sin motivo en suelo plano. + if not await _arena("pogo_fan", step, Vector2(100, 270), Vector2(430, 224)): return - var pogo_result: Dictionary = await _advance(55) - _check(bool(pogo_result["jump_seen"]), "Pogo must hop while pursuing on flat ground") + var pogo_result: Dictionary = await _advance(40) + _check(bool(pogo_result["jump_seen"]), "Pogo must jump towards a reachable elevated target") _check(float(pogo_result["minimum_y"]) < 210.0, "Pogo must physically leave the floor") _check(_enemy.position.x > 200.0, "Pogo jump must advance towards the target") + _check(not _enemy.is_on_floor(), "The sweep check must run while Pogo is airborne") _player.position = _enemy.position + Vector2(40, 0) _check(not bool(_enemy.call("_is_target_in_attack_trigger")), "Do not start ground sweeps in mid-air") - var step: Array[Rect2] = [Rect2(-500, 300, 700, 200), Rect2(200, 250, 800, 250)] if not await _arena("rival_guitarist", step, Vector2(120, 270), Vector2(400, 224)): return await _advance(125) diff --git a/tests/test_level_00_resources.py b/tests/test_level_00_resources.py index 8d8f6bf..2dbce6e 100644 --- a/tests/test_level_00_resources.py +++ b/tests/test_level_00_resources.py @@ -21,18 +21,23 @@ class Level00ResourceTests(unittest.TestCase): for asset in re.findall(r'preload\("res://([^"]+)"\)', SCRIPT): self.assertTrue((ROOT / asset).is_file(), asset) - def test_pixel_art_is_real_rgba_png_and_parallax_is_repeated(self): - graphics = list((ROOT / "assets/city").glob("*.png")) - self.assertEqual(len(graphics), 15) + def test_pixel_art_uses_png_depth_layers_and_repeated_parallax(self): + graphics = [ROOT / path for path in re.findall( + r'\[ext_resource type="Texture2D" path="res://([^\"]+)"', BACKGROUND)] + self.assertEqual(len(graphics), 3) for png in graphics: content = png.read_bytes() self.assertTrue(content.startswith(b"\x89PNG\r\n\x1a\n"), png.name) width, height = struct.unpack(">II", content[16:24]) - self.assertGreater(width, 15) - self.assertGreater(height, 15) - self.assertEqual(BACKGROUND.count('type="Parallax2D"'), 4) - self.assertEqual(BACKGROUND.count('repeat_size = Vector2(1024, 0)'), 4) - self.assertIn('autoscroll = Vector2(3, 0)', BACKGROUND) + self.assertGreater(width, 512) + self.assertGreater(height, 256) + self.assertEqual(BACKGROUND.count('type="Parallax2D"'), 3) + for name in ('Distant', 'Middle', 'Near'): + self.assertIn(f'[node name="{name}" type="Parallax2D"', BACKGROUND) + vista = (ROOT / 'world/backgrounds/ashen_vista.gd').read_text() + self.assertIn('layer.repeat_size = Vector2(width * 2.0, 0.0)', vista) + self.assertIn('panel.flip_h = index == 1', vista) + self.assertNotIn('HighClouds', BACKGROUND) self.assertIn('texture_repeat = 2', LEVEL) def test_road_is_continuous_and_has_end_walls(self): diff --git a/tests/test_level_00_runtime.gd b/tests/test_level_00_runtime.gd index 483043b..8bd73d3 100644 --- a/tests/test_level_00_runtime.gd +++ b/tests/test_level_00_runtime.gd @@ -53,14 +53,24 @@ func _run() -> void: _fail("Pickup sin datos/icono: " + node.name) return - for name: String in ["Sky", "HighClouds", "FarBuildings", "NearBuildings"]: + var previous_speed: float = 0.0 + for name: String in ["Distant", "Middle", "Near"]: var layer: Parallax2D = level.get_node("CityBackground/" + name) as Parallax2D - if layer == null or layer.repeat_size.x != 1024: + if layer == null or layer.repeat_size.x <= 0.0: _fail("Falta la capa de parallax repetible: " + name) return - if (layer.get_node("Strip") as Sprite2D).texture == null: + var normal: Sprite2D = layer.get_node("Normal") as Sprite2D + var mirrored: Sprite2D = layer.get_node("Mirrored") as Sprite2D + if normal.texture == null or mirrored.texture != normal.texture or not mirrored.flip_h: _fail("Falta la textura de la capa: " + name) return + if not is_equal_approx(layer.repeat_size.x, normal.texture.get_width() * normal.scale.x * 2.0): + _fail("La repeticion no coincide con el ancho dibujado: " + name) + return + if layer.scroll_scale.x <= previous_speed or layer.scroll_scale.x >= 1.0: + _fail("Las capas necesitan velocidades de profundidad distintas: " + name) + return + previous_speed = layer.scroll_scale.x if level.get_node("World/Ground").get_child_count() != 8: _fail("Numero incorrecto de calles") @@ -75,7 +85,7 @@ func _run() -> void: _fail("Faltan las barreras de inicio y final") return - print("OK LEVEL00: escena, 30 HP, pound 7-12, 29 enemigos, 14 pickups, 4 parallax, calles, plataformas y barreras") + print("OK LEVEL00: escena, 30 HP, pound 7-12, 29 enemigos, 14 pickups, 3 planos parallax, calles, plataformas y barreras") quit(0) diff --git a/tests/test_level_02_visual_resources.py b/tests/test_level_02_visual_resources.py index 486c929..7aac1ea 100644 --- a/tests/test_level_02_visual_resources.py +++ b/tests/test_level_02_visual_resources.py @@ -5,7 +5,10 @@ Verifica recursos sin sustituir la inspeccion visual ni las pruebas del motor. from pathlib import Path import re import unittest -from xml.etree import ElementTree +try: + from .art_asset_helpers import atlas_path, atlas_regions, region_hash, rgba_png +except ImportError: + from art_asset_helpers import atlas_path, atlas_regions, region_hash, rgba_png ROOT = Path(__file__).resolve().parents[1] LEVEL = (ROOT / "levels/level_02.tscn").read_text(encoding="utf-8") @@ -21,13 +24,24 @@ class Level02VisualResourceTests(unittest.TestCase): self.assertTrue((ROOT / resource).is_file(), resource) def test_reaper_has_real_animation_frames_and_separate_weapon(self): - atlas = ROOT / "assets/bosses/muerte/muerte_body_atlas.svg" - scythe = ROOT / "assets/bosses/muerte/spectral_scythe.svg" - for path in (atlas, scythe): - root = ElementTree.parse(path).getroot() - self.assertIn("viewBox", root.attrib) - self.assertGreater(int(root.attrib["width"]), 90) frames = (ROOT / "assets/bosses/muerte/muerte_frames.tres").read_text() + atlas = atlas_path(ROOT, frames) + self.assertEqual(atlas.suffix, ".png") + image = rgba_png(atlas) + self.assertEqual(image[:2], (1536, 1536)) + self.assertEqual(min(image[2][3::4]), 0) + self.assertGreaterEqual(max(image[2][3::4]), 250) + regions = atlas_regions(frames) + self.assertEqual(len(regions), 16) + self.assertEqual(len({region_hash(image, region) for region in regions.values()}), 16) + for x, y, width, height in regions.values(): + self.assertEqual((width, height), (384, 384)) + self.assertEqual((x % 384, y % 384), (0, 0)) + scythe = ROOT / "assets/ashen/bosses/spectral_scythe.png" + weapon = rgba_png(scythe) + self.assertEqual(weapon[:2], (192, 288)) + self.assertEqual(min(weapon[2][3::4]), 0) + self.assertIn('path="res://assets/ashen/bosses/spectral_scythe.png"', BOSS) for animation in ("idle", "approach", "telegraph", "slash", "cast", "dash", "phase", "hurt", "death"): self.assertIn(f'"name": &"{animation}"', frames) self.assertIn('name="WeaponPivot"', BOSS) @@ -44,6 +58,7 @@ class Level02VisualResourceTests(unittest.TestCase): def test_gate_uses_reusable_scene_and_opens_visibly(self): gate_scene = (ROOT / "world/triggers/kill_gate.tscn").read_text() + gate_visual = (ROOT / "world/triggers/ossuary_gate_visual.tscn").read_text() gate_code = (ROOT / "world/triggers/kill_gate.gd").read_text() victory_code = (ROOT / "world/triggers/boss_victory.gd").read_text() self.assertIn('instance=ExtResource("gate")', LEVEL) @@ -55,9 +70,15 @@ class Level02VisualResourceTests(unittest.TestCase): self.assertIn('gate_visual.fully_open.connect(', gate_code) self.assertIn('gate_visual.set_unlocked(_open)', gate_code) self.assertIn('fully_open.emit()', GATE_CODE) - self.assertIn('func _draw_skull(', GATE_CODE) - self.assertIn('func _draw_leaf(', GATE_CODE) - self.assertIn('name="Visual" type="Node2D"', gate_scene) + self.assertIn('name="Visual" parent="." instance=ExtResource("visual")', gate_scene) + for name in ("LeftLeaf", "RightLeaf", "Arch", "Seal"): + self.assertIn(f'name="{name}" type="Sprite2D"', gate_visual) + textures = re.findall(r'\[ext_resource type="Texture2D" path="res://([^\"]+)"', gate_visual) + self.assertGreaterEqual(len(textures), 5) + for path in textures: + self.assertTrue((ROOT / path).is_file(), path) + self.assertEqual(Path(path).suffix, ".png") + self.assertIn('texture_filter = 1', gate_visual) self.assertIn('level.complete_level()', victory_code) self.assertNotIn('res://levels/level_02.gd', LEVEL) diff --git a/tests/test_level_components_runtime.gd b/tests/test_level_components_runtime.gd index 79cbd06..072cf45 100644 --- a/tests/test_level_components_runtime.gd +++ b/tests/test_level_components_runtime.gd @@ -37,14 +37,33 @@ func _test_gate() -> void: gate.set("enemies_root_path", NodePath("../Enemies")) world.add_child(gate) await process_frame + var visual: Node2D = gate.get_node("Visual") as Node2D + var left_leaf: Sprite2D = visual.get_node("LeftLeaf") as Sprite2D + var right_leaf: Sprite2D = visual.get_node("RightLeaf") as Sprite2D + visual.set_process(false) + var closed_left: float = left_leaf.position.x + var closed_right: float = right_leaf.position.x _check(int(gate.get("remaining")) == 1, "Gate counts configured enemies") + _check(not (gate.get_node("CollisionShape2D") as CollisionShape2D).disabled, + "A locked gate still blocks the route") foe.died.emit() _check(int(gate.get("remaining")) == 0, "Gate tracks enemy death") - gate.get_node("Visual").call("_process", 1.3) + visual.set_process(false) + visual.call("_process", 0.3) + await process_frame + _check(left_leaf.position.x < closed_left and right_leaf.position.x > closed_right, + "The two painted iron leaves visibly move apart during opening") + _check(not (gate.get_node("CollisionShape2D") as CollisionShape2D).disabled, + "Partial visual opening retains the blocking collision") + visual.call("_process", 1.3) await process_frame await physics_frame _check((gate.get_node("CollisionShape2D") as CollisionShape2D).disabled, "Gate collision is removed after full visual opening") + _check((visual.get_node("Seal") as Sprite2D).modulate.a == 0.0, + "The broken seal disappears once the route is open") + _check(left_leaf.position.x < -100.0 and right_leaf.position.x > 100.0, + "Open leaves clear the full passage instead of only changing tint") world.queue_free() await process_frame diff --git a/tests/test_level_kit_runtime.gd b/tests/test_level_kit_runtime.gd index 44f527f..6de91a1 100644 --- a/tests/test_level_kit_runtime.gd +++ b/tests/test_level_kit_runtime.gd @@ -132,12 +132,27 @@ func _verify_presets() -> void: if packed == null: continue var instance: Node = packed.instantiate() - root.add_child(instance) + # Los componentes vinculados se prueban con sus objetivos obligatorios. + # Instanciarlos sueltos solo produciria el error de configuracion esperado. + var fixture := Node.new() + if path.ends_with("/boss_victory.tscn"): + var boss := Node.new() + boss.name = "Boss" + boss.add_user_signal("died") + fixture.add_child(boss) + instance.set("boss_path", NodePath("../Boss")) + elif path.ends_with("/kill_gate.tscn"): + var enemies := Node.new() + enemies.name = "Enemies" + fixture.add_child(enemies) + instance.set("enemies_root_path", NodePath("../Enemies")) + fixture.add_child(instance) + root.add_child(fixture) await process_frame if instance is Pickup: _check((instance as Pickup).pickup_data != null, "Objeto sin datos: " + path) _check((instance.get_node("Sprite2D") as Sprite2D).texture != null, "Objeto sin icono: " + path) - instance.queue_free() + fixture.queue_free() await process_frame @@ -148,6 +163,7 @@ func _verify_levels() -> void: "res://levels/examples/scenery_catalog.tscn", "res://levels/level_01.tscn", "res://levels/level_00.tscn", + "res://levels/level_02.tscn", ]: var packed: PackedScene = load(path) as PackedScene _check(packed != null, "No se pudo cargar el nivel " + path) diff --git a/tests/test_pause_result_runtime.gd b/tests/test_pause_result_runtime.gd index c326b06..b108a43 100644 --- a/tests/test_pause_result_runtime.gd +++ b/tests/test_pause_result_runtime.gd @@ -4,6 +4,7 @@ extends SceneTree ## Ejecutar con: godot --headless --path . --script res://tests/test_pause_result_runtime.gd const BETA: String = "res://levels/level_00.tscn" const NEXT: String = "res://levels/level_01.tscn" +const LAST: String = "res://levels/level_02.tscn" const MENU: String = "res://ui/menu/main_menu.tscn" const DIEGO: CharacterData = preload("res://player/characters/guitarist.tres") var _failures: int = 0 @@ -60,6 +61,16 @@ func _run() -> void: _check(level.get_node("Player").get("character_data") == DIEGO, "Avanzar conserva personaje") _check(level.call("complete_level"), "Level01 tiene salida de victoria") controls = level.get_node("LevelNavigation/Overlay/Dialog/Panel/Margin/Options") + _check(not (controls.get_node("Next") as Button).disabled, "Level01 conduce a Level02") + (controls.get_node("Next") as Button).pressed.emit() + level = await _wait_for_scene(LAST) + if level == null: + quit(1) + return + _check(not paused, "Entrar al tercer nivel reanuda") + _check(level.get_node("Player").get("character_data") == DIEGO, "El tercer nivel conserva personaje") + _check(level.call("complete_level"), "Level02 tiene salida de victoria") + controls = level.get_node("LevelNavigation/Overlay/Dialog/Panel/Margin/Options") _check((controls.get_node("Next") as Button).disabled, "En el ultimo nivel no hay siguiente") (controls.get_node("Levels") as Button).pressed.emit() var menu: Node = await _wait_for_scene(MENU) diff --git a/tests/test_pixel_combat_resources.py b/tests/test_pixel_combat_resources.py index 5a14de9..4c25525 100644 --- a/tests/test_pixel_combat_resources.py +++ b/tests/test_pixel_combat_resources.py @@ -3,43 +3,43 @@ from pathlib import Path import math import re import unittest -import xml.etree.ElementTree as ET +try: + from .art_asset_helpers import atlas_path, atlas_regions, rgba_png +except ImportError: # unittest discover -s tests imports each module at the top level. + from art_asset_helpers import atlas_path, atlas_regions, rgba_png ROOT = Path(__file__).resolve().parents[1] -FRAMES = ROOT / "player/characters/shared/prototype_sprite_frames.tres" +FRAMES = ROOT / "player/characters/animations/guitarist_frames.tres" class PixelCombatResourceTests(unittest.TestCase): def test_all_animation_cells_exist_and_fit_atlas(self): text = FRAMES.read_text(encoding="utf-8") - atlas = ET.parse(ROOT / "assets/characters/ankarde/player_pixel.svg").getroot() - width, height = int(atlas.attrib["width"]), int(atlas.attrib["height"]) + width, height, _ = rgba_png(atlas_path(ROOT, text)) declared = re.findall(r'\[sub_resource type="AtlasTexture" id="([^"]+)"\]', text) used = re.findall(r'SubResource\("([^"]+)"\)', text) - self.assertEqual(len(declared), 37) + self.assertGreaterEqual(len(declared), 40) self.assertEqual(set(declared), set(used)) self.assertEqual(len(declared), len(set(declared))) - for x, y, w, h in re.findall(r'region = Rect2\((\d+), (\d+), (\d+), (\d+)\)', text): - x, y, w, h = map(int, (x, y, w, h)) - self.assertEqual((w, h), (64, 64)) + for x, y, w, h in atlas_regions(text).values(): + self.assertEqual((w, h), (192, 192)) self.assertLessEqual(x + w, width) self.assertLessEqual(y + h, height) - def test_player_poses_and_vector_scale(self): + def test_player_poses_and_pixel_scale(self): names = set(re.findall(r'"name": &"([^"]+)"', FRAMES.read_text())) - self.assertEqual(names, {"idle", "walk", "jump", "fall", "punch", "ground_pound", - "land", "special_start", "special", "special_end", "hurt"}) + self.assertTrue({"idle", "walk", "jump", "fall", "punch", "ground_pound", + "land", "pound_land", "special_start", "special", "special_end", "hurt"} <= names) scene = (ROOT / "player/player.tscn").read_text() self.assertIn("size = Vector2(26, 52)", scene) - self.assertIn("texture_filter = 2", scene) - self.assertNotIn("scale = Vector2(0.56, 0.56)", scene) + self.assertIn("texture_filter = 1", scene) + self.assertIn("scale = Vector2(0.5, 0.5)", scene) self.assertIn("speed_scale = 1.0", scene) def test_new_asset_has_no_external_dependencies(self): - atlas = ET.parse(ROOT / "assets/characters/ankarde/player_pixel.svg").getroot() - self.assertEqual(atlas.attrib["shape-rendering"], "crispEdges") - self.assertFalse(list(atlas.iter("{http://www.w3.org/2000/svg}image"))) - self.assertFalse(list(atlas.iter("{http://www.w3.org/2000/svg}text"))) + frames = FRAMES.read_text(encoding="utf-8") + self.assertEqual(atlas_path(ROOT, frames).suffix, ".png") + self.assertNotIn('.svg', frames) for rel in ("player/player.gd", "enemies/walker/walker.gd", str(FRAMES.relative_to(ROOT))): for path in re.findall(r'res://([^"\s]+)', (ROOT / rel).read_text()): self.assertTrue((ROOT / path).is_file(), path) diff --git a/tests/test_pixel_combat_runtime.gd b/tests/test_pixel_combat_runtime.gd index 5799a59..b327797 100644 --- a/tests/test_pixel_combat_runtime.gd +++ b/tests/test_pixel_combat_runtime.gd @@ -95,7 +95,9 @@ func _run() -> void: "Death must grant special charge exactly once") enemy.call("_update_death_animation", 0.20) var enemy_visual: AnimatedSprite2D = enemy.get_node("Visual") as AnimatedSprite2D - _check(enemy.visible and not is_zero_approx(enemy_visual.rotation), "Missing collapse animation") + _check(enemy.visible and enemy_visual.animation == &"death" + and enemy_visual.sprite_frames.get_frame_count(&"death") >= 2, + "The visible enemy must play its drawn collapse poses before disappearing") enemy.call("_update_death_animation", 1.0) _check(not enemy.visible, "Enemy must hide after the death animation") _check(is_instance_valid(enemy), "Keep the dead node for level KO/total tracking") diff --git a/tests/test_rare_items_runtime.gd b/tests/test_rare_items_runtime.gd index 0e3bc1f..ceb361f 100644 --- a/tests/test_rare_items_runtime.gd +++ b/tests/test_rare_items_runtime.gd @@ -4,7 +4,7 @@ extends SceneTree ## La existencia de este script no implica que se haya ejecutado. const PLAYER_SCENE: PackedScene = preload("res://player/player.tscn") const RARE_SCENE: PackedScene = preload("res://rare_items/variants/lost_pick.tscn") -const PROGRESS_SCENE: PackedScene = preload("res://game/player_progress.tscn") +const PROGRESS_PATH: String = "res://game/player_progress.tscn" var _failures: int = 0 var _profile: PlayerProgressStore var _level: LevelRoot @@ -79,7 +79,7 @@ func _run() -> void: _close_level() # Reabrir el archivo demuestra el contrato de carga, no solo el estado de la misma instancia. - var loaded: PlayerProgressStore = PROGRESS_SCENE.instantiate() as PlayerProgressStore + var loaded: PlayerProgressStore = (load(PROGRESS_PATH) as PackedScene).instantiate() as PlayerProgressStore loaded.save_path = _profile.save_path loaded.rare_items.append(reward) root.add_child(loaded) @@ -118,7 +118,7 @@ func _test_backup_and_bad_data() -> void: var file: FileAccess = FileAccess.open(_profile.save_path, FileAccess.WRITE) file.store_string("not valid JSON") file.close() - var loaded: PlayerProgressStore = PROGRESS_SCENE.instantiate() as PlayerProgressStore + var loaded: PlayerProgressStore = (load(PROGRESS_PATH) as PackedScene).instantiate() as PlayerProgressStore loaded.save_path = _profile.save_path root.add_child(loaded) _check(loaded.has_item(&"lost_pick"), "Recupera los objetos de la copia valida") @@ -128,7 +128,7 @@ func _test_backup_and_bad_data() -> void: file = FileAccess.open(_profile.save_path, FileAccess.WRITE) file.store_string('{"version":999,"rare_items":[]}') file.close() - loaded = PROGRESS_SCENE.instantiate() as PlayerProgressStore + loaded = (load(PROGRESS_PATH) as PackedScene).instantiate() as PlayerProgressStore loaded.save_path = _profile.save_path root.add_child(loaded) var ids: Array[StringName] = [&"lost_pick"] diff --git a/tests/test_thrash_hud_runtime.gd b/tests/test_thrash_hud_runtime.gd index 1de3cf5..43c7942 100644 --- a/tests/test_thrash_hud_runtime.gd +++ b/tests/test_thrash_hud_runtime.gd @@ -17,6 +17,10 @@ func _run() -> void: root.size = Vector2i(1152, 648) var arena := Node2D.new() var player: CharacterBody2D = load("res://player/player.tscn").instantiate() as CharacterBody2D + # El escenario de la barra usa 50 HP sin imponer ese balance al recurso real. + var health_test_data: CharacterData = (player.get("character_data") as CharacterData).duplicate() as CharacterData + health_test_data.max_health = 50 + player.set("character_data", health_test_data) var enemy: CharacterBody2D = load("res://enemies/walker/walker.tscn").instantiate() as CharacterBody2D player.position = Vector2(200, 200) enemy.position = Vector2(250, 200) diff --git a/tools/capture_art.gd b/tools/capture_art.gd new file mode 100644 index 0000000..c5d1e0f --- /dev/null +++ b/tools/capture_art.gd @@ -0,0 +1,226 @@ +extends Node + +## Capturas del viewport real, con un perfil de progreso aislado. +## Abrir capture_art.tscn y pulsar F6; no funciona con el renderer --headless. +## Opcional: -- --capture-plan=/ruta/plan.json o res://.godot/art_capture_plan.json. +## Cada captura acepta scene, name, character, player_position, camera_position, +## camera_zoom, animation, frame, mobile, pause y menu (home/levels/characters/inventory). +## gate_open anima KillGate; boss_hud admite phase/health/animation/frame. + +const PROFILE_FIXTURE = preload("res://tests/runtime_test_profile.gd") +const DEFAULT_PLAN: Dictionary = { + "output_dir": "user://art_captures", + "captures": [ + {"name": "menu", "scene": "res://ui/menu/main_menu.tscn"}, + {"name": "characters", "scene": "res://ui/menu/main_menu.tscn", "menu": "characters"}, + {"name": "level_00", "scene": "res://levels/level_00.tscn"}, + {"name": "level_01", "scene": "res://levels/level_01.tscn"}, + {"name": "level_02", "scene": "res://levels/level_02.tscn"}, + ] +} + +var _output_dir: String +var _results: Array[Dictionary] = [] +var _failures: int = 0 + + +func _ready() -> void: + process_mode = Node.PROCESS_MODE_ALWAYS + call_deferred("_run") + + +func _run() -> void: + if DisplayServer.get_name() == "headless": + push_error("CAPTURE: se necesita un renderer grafico; --headless no dibuja el viewport.") + get_tree().quit(2) + return + PROFILE_FIXTURE.prepare(get_tree()) + var plan: Dictionary = _load_plan() + _output_dir = ProjectSettings.globalize_path(String(plan.get("output_dir", "user://art_captures"))) + if DirAccess.make_dir_recursive_absolute(_output_dir) != OK: + push_error("CAPTURE: no se pudo crear " + _output_dir) + get_tree().quit(2) + return + get_tree().root.size = Vector2i(1280, 720) + for raw_capture: Variant in plan.get("captures", []): + if not raw_capture is Dictionary: + _failures += 1 + continue + await _capture(raw_capture as Dictionary) + var report: Dictionary = { + "engine": Engine.get_version_info(), + "display": DisplayServer.get_name(), + "rendering_method": RenderingServer.get_current_rendering_method(), + "adapter": RenderingServer.get_video_adapter_name(), + "profile_isolated": true, + "failures": _failures, + "captures": _results, + } + var file: FileAccess = FileAccess.open(_output_dir.path_join("capture_report.json"), FileAccess.WRITE) + if file != null: + file.store_string(JSON.stringify(report, "\t")) + else: + _failures += 1 + push_error("CAPTURE: no se pudo escribir el informe.") + print("CAPTURE COMPLETE: %d capturas, %d fallos, %s" % [_results.size(), _failures, _output_dir]) + get_tree().quit(0 if _failures == 0 else 1) + + +func _load_plan() -> Dictionary: + var path: String = "res://.godot/art_capture_plan.json" + for argument: String in OS.get_cmdline_user_args(): + if argument.begins_with("--capture-plan="): + path = argument.trim_prefix("--capture-plan=") + if not FileAccess.file_exists(path): + return DEFAULT_PLAN.duplicate(true) + var parsed: Variant = JSON.parse_string(FileAccess.get_file_as_string(path)) + if parsed is Dictionary and (parsed as Dictionary).get("captures") is Array: + return parsed as Dictionary + push_error("CAPTURE: plan JSON invalido: " + path) + _failures += 1 + return {"captures": []} + + +func _capture(spec: Dictionary) -> void: + var scene_path: String = String(spec.get("scene", "")) + var capture_name: String = String(spec.get("name", scene_path.get_file().get_basename())).validate_filename() + var packed: PackedScene = load(scene_path) as PackedScene + if packed == null: + _failures += 1 + push_error("CAPTURE: escena no encontrada: " + scene_path) + return + seed(1731) + var scene: Node = packed.instantiate() + var player: Node2D = scene.get_node_or_null("Player") as Node2D + var character_path: String = String(spec.get("character", "")) + var session: RunSessionState = get_node_or_null("/root/RunSession") as RunSessionState + if session != null: + session.clear() + if player != null and not character_path.is_empty(): + player.set("character_data", load(character_path)) + get_tree().root.add_child(scene) + get_tree().current_scene = scene + await get_tree().process_frame + if player != null: + # Los actores nacen unos pixeles sobre su plataforma. Deja que la fisica + # los asiente antes de inmovilizar la escena para la captura. + for index: int in range(int(spec.get("settle_frames", 30))): + await get_tree().physics_frame + _setup_player(scene, player, spec) + _setup_effects(scene, player, spec) + if bool(spec.get("gate_open", false)): + var gate: Node = scene.get_node_or_null("Gate") + if gate != null: + while int(gate.get("remaining")) > 0: + gate.call("_on_enemy_died") + gate.get_node("Visual").call("_process", 2.0) + if spec.has("boss_hud"): + var boss: Node = scene.get_node_or_null("Boss") + if boss != null: + var boss_spec: Dictionary = spec["boss_hud"] as Dictionary + boss.set("phase", int(boss_spec.get("phase", 0))) + boss.set("current_health", int(boss_spec.get("health", 40))) + boss.call("_update_hud") + (boss.get_node("BossHUD") as CanvasLayer).show() + var boss_body: AnimatedSprite2D = boss.get_node("Body") as AnimatedSprite2D + boss_body.play(StringName(String(boss_spec.get("animation", "idle")))) + boss_body.set_frame_and_progress(int(boss_spec.get("frame", 0)), 0.0) + boss_body.pause() + if bool(spec.get("mobile", false)): + var controls: Control = scene.get_node_or_null("MobileControls/Controls") as Control + if controls != null: + controls.show() + if bool(spec.get("pause", false)): + scene.get_node("LevelNavigation").call("pause_game") + else: + _setup_menu(scene, spec) + # Deja resolver contenedores, textura importada, parallax y Camera2D. + for index: int in range(12): + await get_tree().process_frame + await RenderingServer.frame_post_draw + var viewport_image: Image = get_viewport().get_texture().get_image() + var destination: String = _output_dir.path_join(capture_name + ".png") + var success: bool = viewport_image != null and not viewport_image.is_empty() + if success: + success = viewport_image.save_png(destination) == OK + if not success: + _failures += 1 + push_error("CAPTURE: no se pudo guardar " + destination) + var entry: Dictionary = {"name": capture_name, "scene": scene_path, "path": destination, "ok": success} + if viewport_image != null: + entry["size"] = [viewport_image.get_width(), viewport_image.get_height()] + if player != null: + entry["player_position"] = [player.global_position.x, player.global_position.y] + entry["character"] = String((player.get("character_data") as CharacterData).id) + var sprite: AnimatedSprite2D = player.get_node("AnimatedSprite2D") as AnimatedSprite2D + entry["animation"] = String(sprite.animation) + entry["frame"] = sprite.frame + _results.append(entry) + print("CAPTURE: ", JSON.stringify(entry)) + get_tree().paused = false + get_tree().current_scene = self + scene.queue_free() + await get_tree().process_frame + + +func _setup_player(scene: Node, player: Node2D, spec: Dictionary) -> void: + # Detiene IA y fisica solo en esta instancia de QA; no cambia recursos ni escenas. + for actor: Node in get_tree().get_nodes_in_group("enemy"): + actor.set_physics_process(false) + actor.set_process(false) + player.set_physics_process(false) + player.set_process_unhandled_input(false) + player.set_process_input(false) + if scene is LevelRoot: + (scene as LevelRoot).reset_after_fall = false + if spec.has("player_position"): + player.global_position = _vector(spec["player_position"]) + var camera: Camera2D = player.get_node("Camera2D") as Camera2D + camera.set_process(false) + camera.position_smoothing_enabled = false + camera.offset = Vector2.ZERO + if spec.has("camera_zoom"): + camera.zoom = Vector2.ONE * float(spec["camera_zoom"]) + if spec.has("camera_position"): + camera.global_position = _vector(spec["camera_position"]) + camera.reset_smoothing() + camera.force_update_scroll() + var sprite: AnimatedSprite2D = player.get_node("AnimatedSprite2D") as AnimatedSprite2D + var animation: StringName = StringName(String(spec.get("animation", "idle"))) + if not sprite.sprite_frames.has_animation(animation): + _failures += 1 + push_error("CAPTURE: animacion no encontrada: " + animation) + else: + sprite.play(animation) + sprite.set_frame_and_progress(int(spec.get("frame", 0)), 0.0) + sprite.pause() + + +func _setup_menu(scene: Node, spec: Dictionary) -> void: + match String(spec.get("menu", "home")): + "levels": + scene.call("_show_levels") + "characters": + scene.call("_show_characters", String(spec.get("level", "res://levels/level_00.tscn"))) + "inventory": + scene.call("_show_inventory") + + +func _setup_effects(scene: Node, player: Node2D, spec: Dictionary) -> void: + for raw_effect: Variant in spec.get("effects", []): + var settings: Dictionary = raw_effect as Dictionary + var effect: Node2D = load("res://effects/combat_fx.gd").new() as Node2D + effect.set("kind", StringName(String(settings.get("kind", "hit")))) + effect.set("radius", float(settings.get("radius", 54.0))) + effect.set("direction", float(settings.get("direction", 1.0))) + scene.add_child(effect) + effect.global_position = player.global_position + _vector(settings.get("offset", [0, 0])) + effect.set_process(false) + effect.set("_age", float(effect.get("_lifetime")) * float(settings.get("progress", 0.18))) + effect.queue_redraw() + + +func _vector(value: Variant) -> Vector2: + if value is Array and (value as Array).size() == 2: + return Vector2(float(value[0]), float(value[1])) + return Vector2.ZERO diff --git a/tools/capture_art.tscn b/tools/capture_art.tscn new file mode 100644 index 0000000..9c13f8c --- /dev/null +++ b/tools/capture_art.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3] + +[ext_resource type="Script" path="res://tools/capture_art.gd" id="capture"] + +[node name="ArtCapture" type="Node"] +script = ExtResource("capture") diff --git a/tools/generate_band_art.py b/tools/generate_band_art.py index d0654be..f6db70a 100644 --- a/tools/generate_band_art.py +++ b/tools/generate_band_art.py @@ -1,9 +1,9 @@ -"""Compatibilidad con el comando historico: ahora genera el nuevo arte vectorial. +"""Generador historico de SVG, anterior al arte raster gotico. - python tools/generate_band_art.py + python tools/generate_band_art.py --allow-legacy-overwrite -Los SpriteFrames de la banda mantienen las mismas 40 regiones; los atlas -pueden regenerarse tambien mediante generate_vector_character_art.py. +No se necesita para jugar. La opcion explicita permite restaurar arte antiguo; +puede sobrescribir referencias de enemigos. Consulta ART_GOTHIC.md. """ from generate_vector_character_art import main diff --git a/tools/generate_city_art.py b/tools/generate_city_art.py index f304596..4bf8a96 100644 --- a/tools/generate_city_art.py +++ b/tools/generate_city_art.py @@ -7,9 +7,14 @@ Se dibuja sobre una cuadricula de baja resolucion y se amplia con NEAREST.""" from __future__ import annotations import random +import sys from pathlib import Path from PIL import Image, ImageDraw, ImageFont +if (Path(__file__).resolve().parents[1] / 'assets/ashen').is_dir() and '--allow-legacy-overwrite' not in sys.argv: + raise SystemExit('Generador de ciudad historico. Los escenarios activos usan assets/ashen. ' + 'Usa --allow-legacy-overwrite solo para regenerar el material antiguo.') + ROOT = Path(__file__).resolve().parents[1] / 'assets' / 'city' ROOT.mkdir(parents=True, exist_ok=True) SCALE = 2 diff --git a/tools/generate_vector_character_art.py b/tools/generate_vector_character_art.py index c2c1271..0d5f58d 100644 --- a/tools/generate_vector_character_art.py +++ b/tools/generate_vector_character_art.py @@ -12,6 +12,7 @@ from __future__ import annotations from dataclasses import dataclass from math import cos, sin, pi from pathlib import Path +import sys from xml.sax.saxutils import escape ROOT = Path(__file__).resolve().parents[1] @@ -503,6 +504,9 @@ def enemy_spriteframes(name: str) -> str: def main() -> None: + if (ROOT / 'assets/ashen').is_dir() and '--allow-legacy-overwrite' not in sys.argv: + raise SystemExit('Generador SVG historico: el arte actual ya viene en assets/ashen. ' + 'Usa --allow-legacy-overwrite solo para restaurar los recursos antiguos.') for name in PLAYER_NAMES: dest = ROOT / f'assets/characters/band/{name}.svg' dest.write_text(svg_atlas(name, PLAYER_POSES, 8), encoding='utf-8') diff --git a/tools/pack_ashen_atlas.py b/tools/pack_ashen_atlas.py new file mode 100644 index 0000000..02fd3f7 --- /dev/null +++ b/tools/pack_ashen_atlas.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python3 +"""Package an already drawn, transparent sprite sheet for Godot. + +This is a technical crop/nearest-neighbour packing tool, not an art generator. +The game ships with the finished PNGs; Pillow is only needed to repack sources. +Every frame uses one common scale, preserving crouches and adult proportions. +Example: python tools/pack_ashen_atlas.py source.png output.png --columns 6 --rows 4 +""" +import argparse +import json +from pathlib import Path + +from PIL import Image + + +def pack(source, destination, columns=6, rows=4, cell=192, height=128, baseline=152): + image = Image.open(source).convert("RGBA") + width, source_height = image.size + frames = [] + boxes = [] + for index in range(columns * rows): + x, y = index % columns, index // columns + bounds = (round(x * width / columns), round(y * source_height / rows), + round((x + 1) * width / columns), round((y + 1) * source_height / rows)) + frame = image.crop(bounds) + # Ignore faint alpha fringe only when measuring the anchor; keep the + # source RGBA pixels untouched in the packed image. + box = frame.getchannel("A").point(lambda value: 255 if value >= 64 else 0).getbbox() + if not box: + raise ValueError(f"Empty cell {index} in {source}") + frames.append(frame) + boxes.append(box) + scale = height / (boxes[0][3] - boxes[0][1]) + atlas = Image.new("RGBA", (columns * cell, rows * cell)) + records = [] + for index, (frame, box) in enumerate(zip(frames, boxes)): + resized = frame.resize((round(frame.width * scale), round(frame.height * scale)), + Image.Resampling.NEAREST) + offset = (round(cell / 2 - frame.width * scale / 2), + round(baseline - box[3] * scale)) + target = Image.new("RGBA", (cell, cell)) + target.alpha_composite(resized, offset) + atlas.alpha_composite(target, (index % columns * cell, index // columns * cell)) + records.append({"frame": index, "source_bounds": list(box), "offset": list(offset)}) + destination = Path(destination) + destination.parent.mkdir(parents=True, exist_ok=True) + atlas.save(destination, optimize=True) + return {"file": destination.name, "size": list(atlas.size), "columns": columns, + "rows": rows, "cell": cell, "standing_height": height, "baseline": baseline, + "source_size": list(image.size), "scale": scale, "frames": records} + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("source", type=Path) + parser.add_argument("destination", type=Path) + parser.add_argument("--columns", type=int, default=6) + parser.add_argument("--rows", type=int, default=4) + parser.add_argument("--cell", type=int, default=192) + parser.add_argument("--height", type=int, default=128) + parser.add_argument("--baseline", type=int, default=152) + args = parser.parse_args() + print(json.dumps(pack(**vars(args)), indent=2)) diff --git a/ui/hud/boss_hud_layout.gd b/ui/hud/boss_hud_layout.gd new file mode 100644 index 0000000..06b6553 --- /dev/null +++ b/ui/hud/boss_hud_layout.gd @@ -0,0 +1,16 @@ +extends Control + +## Mantiene las esquinas del marco a su proporcion original y despeja los controles. +## Solo adapta la presentacion; las tres fracciones de vida siguen en el jefe. +func _ready() -> void: + get_viewport().size_changed.connect(_layout_frame) + _layout_frame() + + +func _layout_frame() -> void: + var viewport_size: Vector2 = get_viewport_rect().size + var factor: float = minf(1.0, maxf(0.2, (viewport_size.x - 48.0) / 880.0)) + size = Vector2(880.0, 140.0) + scale = Vector2.ONE * factor + position = Vector2(roundf((viewport_size.x - 880.0 * factor) * 0.5), + roundf(viewport_size.y - 30.0 - 140.0 * factor)) diff --git a/ui/hud/player_health_hud.gd b/ui/hud/player_health_hud.gd index de65570..6db0c5b 100644 --- a/ui/hud/player_health_hud.gd +++ b/ui/hud/player_health_hud.gd @@ -11,6 +11,8 @@ extends CanvasLayer @onready var health_label: Label = $HUD/HealthBar/HealthLabel @onready var effects_label: Label = $HUD/EffectsLabel @onready var warning_label: Label = $HUD/WarningLabel +@onready var portrait: TextureRect = $HUD/Emblem +@onready var identity_label: Label = $HUD/Title var player_ref: Node var _received_health: bool = false @@ -27,6 +29,7 @@ func _ready() -> void: return # Los hijos ejecutan _ready antes que Player; su senal inicial llegara despues de esta conexion. player_ref.connect(&"health_changed", _on_health_changed) + call_deferred("_update_identity") effects_label.visible = false # Tambien funciona si el HUD se instancia despues de _ready del jugador. if player_ref.is_node_ready(): @@ -67,7 +70,7 @@ func _process(delta: float) -> void: ]: var bonus: float = float(player_ref.get(effect[1])) if bonus > 0.0: - active.append("%s +%d%% | HASTA GOLPE" % [effect[0], roundi(bonus * 100.0)]) + active.append("%s +%d%% HASTA GOLPE" % [effect[0], roundi(bonus * 100.0)]) var shield_hits: int = int(player_ref.get("_shield_hits")) if shield_hits > 0: @@ -88,3 +91,22 @@ func _on_health_changed(current_health: int, max_health: int) -> void: health_bar.highlighted = low_health and amount > 0 warning_label.visible = low_health or amount == 0 warning_label.text = "SIN VIDA" if amount == 0 else "PELIGRO" + + +## Retrato derivado del arte del personaje seleccionado; no modifica su estado. +func _update_identity() -> void: + if not is_instance_valid(player_ref): + return + var data: CharacterData = player_ref.get("character_data") as CharacterData + if data == null: + return + identity_label.text = data.display_name.to_upper() + var portrait_path: String = "res://assets/ashen/portraits/%s.png" % data.id + if ResourceLoader.exists(portrait_path, "Texture2D"): + var source: Texture2D = load(portrait_path) as Texture2D + var bust := AtlasTexture.new() + bust.atlas = source + bust.region = Rect2(20, 0, 88, 88) + portrait.texture = bust + elif data.sprite_frames != null and data.sprite_frames.has_animation(&"idle"): + portrait.texture = data.sprite_frames.get_frame_texture(&"idle", 0) diff --git a/ui/hud/player_health_hud.tscn b/ui/hud/player_health_hud.tscn index dc78cc0..0af03ed 100644 --- a/ui/hud/player_health_hud.tscn +++ b/ui/hud/player_health_hud.tscn @@ -1,11 +1,28 @@ -[gd_scene load_steps=7 format=3] +[gd_scene load_steps=8 format=3] [ext_resource type="Script" path="res://ui/hud/player_health_hud.gd" id="1_hud"] [ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"] [ext_resource type="Script" path="res://ui/hud/thrash_meter.gd" id="meter"] [ext_resource type="Theme" path="res://ui/hud/thrash_hud_theme.tres" id="theme"] -[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_plate.svg" id="plate"] -[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_skull.svg" id="skull"] +[ext_resource type="Texture2D" path="res://assets/ashen/ui/hud_frame.png" id="frame"] + +[sub_resource type="Shader" id="PortraitMask"] +code = "shader_type canvas_item; +render_mode unshaded; +varying vec2 portrait_uv; +void vertex() { + portrait_uv = VERTEX / vec2(78.0,78.0); +} +void fragment() { + vec2 p = portrait_uv * 2.0 - 1.0; + if (dot(p,p) > 1.0) discard; + vec4 source = texture(TEXTURE, UV); + COLOR = vec4(mix(vec3(0.045,0.036,0.039), source.rgb, source.a), 1.0); +} +" + +[sub_resource type="ShaderMaterial" id="PortraitMaterial"] +shader = SubResource("PortraitMask") [node name="PlayerHealthHUD" type="CanvasLayer"] layer = 90 @@ -24,84 +41,90 @@ grow_vertical = 2 mouse_filter = 2 theme = ExtResource("theme") +[node name="Emblem" type="TextureRect" parent="HUD"] +material = SubResource("PortraitMaterial") +layout_mode = 0 +offset_left = 43.0 +offset_top = 44.0 +offset_right = 121.0 +offset_bottom = 122.0 +mouse_filter = 2 +texture_filter = 1 +expand_mode = 1 +stretch_mode = 0 + +[node name="HealthBar" type="ProgressBar" parent="HUD"] +layout_mode = 0 +offset_left = 137.0 +offset_top = 68.0 +offset_right = 409.0 +offset_bottom = 88.0 +mouse_filter = 2 +max_value = 30.0 +value = 30.0 +show_percentage = false +script = ExtResource("meter") +fill_color = Color(0.62, 0.09, 0.16, 1) +segment_count = 12 + +[node name="HealthLabel" type="Label" parent="HUD/HealthBar"] +layout_mode = 0 +offset_left = 162.0 +offset_top = -32.0 +offset_right = 266.0 +offset_bottom = -10.0 +mouse_filter = 2 +theme_override_font_sizes/font_size = 16 +text = "30 / 30" +horizontal_alignment = 2 +vertical_alignment = 1 + [node name="Frame" type="TextureRect" parent="HUD"] layout_mode = 0 offset_left = 18.0 -offset_top = 18.0 -offset_right = 362.0 -offset_bottom = 82.0 +offset_top = 16.0 +offset_right = 450.0 +offset_bottom = 160.0 mouse_filter = 2 -texture = ExtResource("plate") -expand_mode = 1 - -[node name="Emblem" type="TextureRect" parent="HUD"] -layout_mode = 0 -offset_left = 29.0 -offset_top = 26.0 -offset_right = 69.0 -offset_bottom = 66.0 -mouse_filter = 2 -texture = ExtResource("skull") +texture_filter = 1 +texture = ExtResource("frame") expand_mode = 1 [node name="Title" type="Label" parent="HUD"] layout_mode = 0 -offset_left = 84.0 -offset_top = 25.0 -offset_right = 152.0 -offset_bottom = 45.0 +offset_left = 139.0 +offset_top = 36.0 +offset_right = 221.0 +offset_bottom = 54.0 mouse_filter = 2 +theme_override_font_sizes/font_size = 16 text = "VIDA" +horizontal_alignment = 1 vertical_alignment = 1 [node name="WarningLabel" type="Label" parent="HUD"] visible = false layout_mode = 0 -offset_left = 154.0 -offset_top = 25.0 -offset_right = 212.0 -offset_bottom = 45.0 +offset_left = 249.0 +offset_top = 38.0 +offset_right = 313.0 +offset_bottom = 54.0 mouse_filter = 2 -theme_override_colors/font_color = Color(1, 0.52, 0.42, 1) +theme_override_colors/font_color = Color(0.98, 0.44, 0.36, 1) theme_override_font_sizes/font_size = 8 text = "PELIGRO" horizontal_alignment = 1 vertical_alignment = 1 -[node name="HealthBar" type="ProgressBar" parent="HUD"] -layout_mode = 0 -offset_left = 84.0 -offset_top = 48.0 -offset_right = 346.0 -offset_bottom = 68.0 -mouse_filter = 2 -max_value = 50.0 -value = 50.0 -show_percentage = false -script = ExtResource("meter") -fill_color = Color(0.84, 0.18, 0.25, 1) -segment_count = 12 - -[node name="HealthLabel" type="Label" parent="HUD/HealthBar"] -layout_mode = 0 -offset_left = 132.0 -offset_top = -23.0 -offset_right = 262.0 -offset_bottom = -3.0 -mouse_filter = 2 -text = "50 / 50" -horizontal_alignment = 2 -vertical_alignment = 1 - [node name="EffectsLabel" type="Label" parent="HUD"] visible = false layout_mode = 0 -offset_left = 22.0 -offset_top = 160.0 -offset_right = 362.0 -offset_bottom = 300.0 +offset_left = 34.0 +offset_top = 169.0 +offset_right = 420.0 +offset_bottom = 281.0 mouse_filter = 2 -theme_override_colors/font_color = Color(0.85, 0.9, 0.64, 1) +theme_override_colors/font_color = Color(0.79, 0.72, 0.57, 1) theme_override_font_sizes/font_size = 16 text = "" horizontal_alignment = 0 diff --git a/ui/hud/special_charge_hud.gd b/ui/hud/special_charge_hud.gd index b529bb0..f236ee1 100644 --- a/ui/hud/special_charge_hud.gd +++ b/ui/hud/special_charge_hud.gd @@ -48,4 +48,5 @@ func _on_special_charge_changed(current_charge: int, max_charge: int) -> void: status_label.text = "LISTO" else: status_label.text = "CARGANDO" - status_label.add_theme_color_override("font_color", Color("e4f39a") if charged else Color("93a3a0")) + status_label.visible = charged or not available + status_label.add_theme_color_override("font_color", Color("c6ae78") if charged else Color("829795")) diff --git a/ui/hud/special_charge_hud.tscn b/ui/hud/special_charge_hud.tscn index bde404c..251453c 100644 --- a/ui/hud/special_charge_hud.tscn +++ b/ui/hud/special_charge_hud.tscn @@ -1,11 +1,9 @@ -[gd_scene load_steps=7 format=3] +[gd_scene load_steps=5 format=3] [ext_resource type="Script" path="res://ui/hud/special_charge_hud.gd" id="1_hud"] [ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"] [ext_resource type="Script" path="res://ui/hud/thrash_meter.gd" id="meter"] [ext_resource type="Theme" path="res://ui/hud/thrash_hud_theme.tres" id="theme"] -[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_plate.svg" id="plate"] -[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_bolt.svg" id="bolt"] [node name="SpecialChargeHUD" type="CanvasLayer"] layer = 95 @@ -24,83 +22,67 @@ grow_vertical = 2 mouse_filter = 2 theme = ExtResource("theme") -[node name="Frame" type="TextureRect" parent="HUD"] -layout_mode = 0 -offset_left = 18.0 -offset_top = 86.0 -offset_right = 362.0 -offset_bottom = 150.0 -mouse_filter = 2 -texture = ExtResource("plate") -expand_mode = 1 - -[node name="Emblem" type="TextureRect" parent="HUD"] -layout_mode = 0 -offset_left = 29.0 -offset_top = 94.0 -offset_right = 69.0 -offset_bottom = 134.0 -mouse_filter = 2 -texture = ExtResource("bolt") -expand_mode = 1 - [node name="Title" type="Label" parent="HUD"] layout_mode = 0 -offset_left = 84.0 -offset_top = 93.0 -offset_right = 155.0 -offset_bottom = 113.0 +offset_left = 139.0 +offset_top = 118.0 +offset_right = 193.0 +offset_bottom = 136.0 mouse_filter = 2 +theme_override_font_sizes/font_size = 16 +theme_override_colors/font_color = Color(0.72, 0.69, 0.55, 1) text = "SOLO" vertical_alignment = 1 [node name="StatusLabel" type="Label" parent="HUD"] +visible = false layout_mode = 0 -offset_left = 158.0 -offset_top = 93.0 -offset_right = 270.0 -offset_bottom = 113.0 +offset_left = 222.0 +offset_top = 120.0 +offset_right = 321.0 +offset_bottom = 134.0 mouse_filter = 2 -theme_override_colors/font_color = Color(0.57, 0.64, 0.63, 1) +theme_override_colors/font_color = Color(0.52, 0.6, 0.59, 1) theme_override_font_sizes/font_size = 8 text = "CARGANDO" -horizontal_alignment = 1 +horizontal_alignment = 0 vertical_alignment = 1 [node name="SpecialBar" type="ProgressBar" parent="HUD"] layout_mode = 0 -offset_left = 84.0 -offset_top = 116.0 -offset_right = 346.0 -offset_bottom = 134.0 +offset_left = 139.0 +offset_top = 102.0 +offset_right = 373.0 +offset_bottom = 112.0 mouse_filter = 2 max_value = 100.0 value = 0.0 show_percentage = false script = ExtResource("meter") -fill_color = Color(0.74, 0.89, 0.27, 1) +fill_color = Color(0.25, 0.54, 0.57, 1) segment_count = 16 activation_ratio = 0.25 show_damage_trail = false [node name="SpecialLabel" type="Label" parent="HUD/SpecialBar"] layout_mode = 0 -offset_left = 192.0 -offset_top = -23.0 -offset_right = 262.0 -offset_bottom = -3.0 +offset_left = 182.0 +offset_top = 16.0 +offset_right = 234.0 +offset_bottom = 34.0 mouse_filter = 2 +theme_override_font_sizes/font_size = 16 text = "0%" horizontal_alignment = 2 vertical_alignment = 1 [node name="ThresholdLabel" type="Label" parent="HUD"] +visible = false layout_mode = 0 -offset_left = 84.0 -offset_top = 136.0 -offset_right = 244.0 -offset_bottom = 146.0 +offset_left = 139.0 +offset_top = 138.0 +offset_right = 373.0 +offset_bottom = 150.0 mouse_filter = 2 -theme_override_colors/font_color = Color(0.66, 0.71, 0.64, 1) theme_override_font_sizes/font_size = 8 text = "MIN 25 PT" diff --git a/ui/hud/thrash_hud_theme.tres b/ui/hud/thrash_hud_theme.tres index bdf95b4..dcb2cf3 100644 --- a/ui/hud/thrash_hud_theme.tres +++ b/ui/hud/thrash_hud_theme.tres @@ -7,9 +7,9 @@ [resource] default_font = ExtResource("pixel_font") default_font_size = 16 -Label/colors/font_color = Color(0.91, 0.91, 0.82, 1) +Label/colors/font_color = Color(0.86, 0.81, 0.68, 1) Label/colors/font_shadow_color = Color(0.02, 0.03, 0.04, 1) -Label/constants/shadow_offset_x = 1 -Label/constants/shadow_offset_y = 1 +Label/constants/shadow_offset_x = 2 +Label/constants/shadow_offset_y = 2 ProgressBar/styles/background = SubResource("EmptyBar") ProgressBar/styles/fill = SubResource("EmptyBar") diff --git a/ui/hud/thrash_meter.gd b/ui/hud/thrash_meter.gd index 882521f..3d62eb0 100644 --- a/ui/hud/thrash_meter.gd +++ b/ui/hud/thrash_meter.gd @@ -3,11 +3,11 @@ class_name ThrashMeter extends ProgressBar ## Medidor visual compartido por vida y especial; no conoce al jugador ni modifica el combate. -## Conserva el contrato de ProgressBar (value/max_value) y dibuja segmentos de amplificador. +## Conserva el contrato de ProgressBar (value/max_value) y dibuja un deposito continuo de sangre o luz espectral. ## Solo este componente visual se ejecuta en el editor; los controladores del HUD no son @tool. @export_group("Thrash Appearance") -## Color de los segmentos llenos. La escena de vida usa rojo y la de especial, verde acido. +## Color de los segmentos llenos. La escena de vida usa carmesi y la de especial, turquesa espectral. @export var fill_color: Color = Color("d73949"): set(new_value): fill_color = new_value @@ -145,49 +145,28 @@ func _draw() -> void: if size.x < 8.0 or size.y < 6.0: return var shown: float = clampf(value / maxf(max_value, 1.0), 0.0, 1.0) if Engine.is_editor_hint() else _display_ratio - var inner := Rect2(Vector2(2, 2), size - Vector2(4, 4)) - var count: int = maxi(segment_count, 1) - var step_width: float = inner.size.x / float(count) - var cell_width: float = maxf(step_width - 2.0, 1.0) - draw_rect(Rect2(Vector2.ZERO, size), Color("05090b")) - draw_rect(Rect2(Vector2.ZERO, size), Color("3b464b"), false, 1.0) - for index: int in range(count): - var cell := Rect2(inner.position + Vector2(float(index) * step_width, 0), Vector2(cell_width, inner.size.y)) - _draw_segment(cell, 1.0, Color("202b30")) - if show_damage_trail and not Engine.is_editor_hint(): - _draw_segment(cell, clampf(_trail_ratio * count - index, 0.0, 1.0), Color("a99774")) - var fraction: float = clampf(shown * count - index, 0.0, 1.0) - _draw_segment(cell, fraction, fill_color) - if fraction > 0.0: - # Bisel iluminado y una linea de sombra dentro de cada segmento. - var bevel: float = minf(3.0, cell.size.x * 0.25) - var length: float = (cell.size.x - bevel) * fraction - draw_line(cell.position + Vector2(bevel, 1), cell.position + Vector2(bevel + length, 1), fill_color.lightened(0.45), 1.0) - draw_line(cell.position + Vector2(0, cell.size.y - 1), cell.position + Vector2(length, cell.size.y - 1), fill_color.darkened(0.4), 1.0) - + var inner := Rect2(Vector2(1, 1), size - Vector2(2, 2)) + draw_rect(Rect2(Vector2.ZERO, size), Color("100e13")) + draw_rect(inner, Color("21181e")) + if show_damage_trail and not Engine.is_editor_hint() and _trail_ratio > shown: + draw_rect(Rect2(inner.position, Vector2(floorf(inner.size.x * _trail_ratio), inner.size.y)), Color("b99874")) + var filled_width: float = floorf(inner.size.x * shown) + if filled_width > 0.0: + var fill := Rect2(inner.position, Vector2(filled_width, inner.size.y)) + draw_rect(fill, fill_color.darkened(0.3)) + draw_rect(Rect2(fill.position, Vector2(filled_width, maxf(1.0, floorf(fill.size.y * 0.55)))), fill_color) + draw_line(fill.position, fill.position + Vector2(filled_width, 0), fill_color.lightened(0.45), 1.0) + draw_line(fill.position + Vector2(0, 2), fill.position + Vector2(filled_width, 2), fill_color.lightened(0.15), 1.0) + # Pequenias incisiones de metal reflejan luz; el nivel de carga sigue continuo. + for x: int in range(11, int(filled_width), 37): + draw_rect(Rect2(Vector2(x, maxf(2.0, size.y - 4.0)), Vector2(2, 1)), fill_color.lightened(0.2)) if activation_ratio >= 0.0: - var marker_x: float = inner.position.x + inner.size.x * clampf(activation_ratio, 0.0, 1.0) - draw_line(Vector2(marker_x, 1), Vector2(marker_x, size.y - 1), Color(0.94, 0.94, 0.79, 0.65), 1.0) - draw_colored_polygon(PackedVector2Array([ - Vector2(marker_x, size.y), Vector2(marker_x - 3, size.y + 4), Vector2(marker_x + 3, size.y + 4) - ]), Color("e7e7ca")) + var marker_x: float = floorf(inner.position.x + inner.size.x * clampf(activation_ratio, 0.0, 1.0)) + draw_line(Vector2(marker_x, 1), Vector2(marker_x, size.y - 1), Color(0.85, 0.77, 0.56, 0.7), 1.0) if highlighted: - var strength: float = 0.7 + var strength: float = 0.4 if animations_enabled and not Engine.is_editor_hint(): - strength = 0.65 + sin(_pulse_phase) * 0.2 - draw_rect(Rect2(Vector2(-1, -1), size + Vector2(2, 2)), Color(fill_color, strength), false, 1.0) + strength = 0.35 + sin(_pulse_phase) * 0.13 + draw_line(Vector2(1, 0), Vector2(maxf(filled_width, 1.0), 0), Color(fill_color.lightened(0.7), strength), 1.0) if _damage_flash > 0.0 and animations_enabled and not Engine.is_editor_hint(): draw_rect(Rect2(Vector2.ZERO, size), Color(1.0, 0.87, 0.76, _damage_flash * 1.5)) - - -## Recorta cada segmento en diagonal sin texturas adicionales ni shaders. -func _draw_segment(rect: Rect2, fraction: float, color: Color) -> void: - if fraction <= 0.0: - return - var bevel: float = minf(3.0, rect.size.x * 0.25) - var length: float = (rect.size.x - bevel) * fraction - var origin: Vector2 = rect.position - draw_colored_polygon(PackedVector2Array([ - origin + Vector2(bevel, 0), origin + Vector2(bevel + length, 0), - origin + Vector2(length, rect.size.y), origin + Vector2(0, rect.size.y) - ]), color) diff --git a/ui/menu/ashen_backdrop.tscn b/ui/menu/ashen_backdrop.tscn new file mode 100644 index 0000000..680a6ad --- /dev/null +++ b/ui/menu/ashen_backdrop.tscn @@ -0,0 +1,29 @@ +[gd_scene load_steps=4 format=3] + +[ext_resource type="Texture2D" path="res://assets/ashen/environment/abbey_back.png" id="background"] + +[sub_resource type="Shader" id="Vignette"] +code = "shader_type canvas_item; +render_mode unshaded; +void fragment() { + vec4 art = texture(TEXTURE, UV); + vec2 p = SCREEN_UV * 2.0 - 1.0; + float vignette = 1.0 - smoothstep(0.3, 1.45, length(p)); + float shade = 0.26 + 0.50 * vignette; + COLOR = vec4(art.rgb * shade * vec3(0.90,0.90,1.0), art.a); +} +" + +[sub_resource type="ShaderMaterial" id="VignetteMaterial"] +shader = SubResource("Vignette") + +[node name="AshenBackdrop" type="TextureRect"] +material = SubResource("VignetteMaterial") +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +mouse_filter = 2 +texture_filter = 1 +texture = ExtResource("background") +expand_mode = 1 +stretch_mode = 6 diff --git a/ui/menu/character_card.gd b/ui/menu/character_card.gd index cd2f4e7..f765773 100644 --- a/ui/menu/character_card.gd +++ b/ui/menu/character_card.gd @@ -2,7 +2,7 @@ class_name CharacterCard extends Button ## Una tarjeta es un boton completo: imagen y etiquetas no interceptan el tacto. -## Su retrato usa el primer idle del mismo SpriteFrames que se vera durante la partida. +## Retrato derivado del primer idle; el SpriteFrames sigue siendo el fallback del editor. signal character_chosen(character: CharacterData) @export var character_data: CharacterData @@ -11,11 +11,14 @@ func _ready() -> void: if character_data == null: disabled = true return - $Content/Layout/Name.text = character_data.display_name + $Content/Layout/Name.text = character_data.display_name.to_upper() $Content/Layout/Role.text = character_data.role_name var frames: SpriteFrames = character_data.sprite_frames if frames != null and frames.has_animation(&"idle") and frames.get_frame_count(&"idle") > 0: $Content/Layout/Portrait.texture = frames.get_frame_texture(&"idle", 0) + var portrait_path: String = "res://assets/ashen/portraits/%s.png" % character_data.id + if ResourceLoader.exists(portrait_path, "Texture2D"): + $Content/Layout/Portrait.texture = load(portrait_path) as Texture2D tooltip_text = character_data.display_name + " - " + character_data.role_name pressed.connect(_choose) diff --git a/ui/menu/character_card.tscn b/ui/menu/character_card.tscn index 085c56d..bf28ba1 100644 --- a/ui/menu/character_card.tscn +++ b/ui/menu/character_card.tscn @@ -3,7 +3,7 @@ [ext_resource type="Script" path="res://ui/menu/character_card.gd" id="script"] [node name="CharacterCard" type="Button"] -custom_minimum_size = Vector2(140, 184) +custom_minimum_size = Vector2(220, 216) size_flags_horizontal = 3 script = ExtResource("script") @@ -13,10 +13,10 @@ anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 2 -theme_override_constants/margin_left = 12 -theme_override_constants/margin_top = 8 -theme_override_constants/margin_right = 12 -theme_override_constants/margin_bottom = 10 +theme_override_constants/margin_left = 24 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 24 +theme_override_constants/margin_bottom = 16 [node name="Layout" type="VBoxContainer" parent="Content"] layout_mode = 2 @@ -24,7 +24,7 @@ mouse_filter = 2 theme_override_constants/separation = 4 [node name="Portrait" type="TextureRect" parent="Content/Layout"] -custom_minimum_size = Vector2(0, 112) +custom_minimum_size = Vector2(0, 128) layout_mode = 2 size_flags_vertical = 3 mouse_filter = 2 @@ -35,13 +35,14 @@ stretch_mode = 5 [node name="Name" type="Label" parent="Content/Layout"] layout_mode = 2 mouse_filter = 2 -theme_override_font_sizes/font_size = 22 +theme_override_font_sizes/font_size = 24 text = "PERSONAJE" horizontal_alignment = 1 [node name="Role" type="Label" parent="Content/Layout"] layout_mode = 2 mouse_filter = 2 -theme_override_font_sizes/font_size = 14 +theme_override_font_sizes/font_size = 16 +theme_override_colors/font_color = Color(0.60, 0.57, 0.48, 1) text = "INTEGRANTE" horizontal_alignment = 1 diff --git a/ui/menu/character_select.tscn b/ui/menu/character_select.tscn index 6d984b2..85dd4d3 100644 --- a/ui/menu/character_select.tscn +++ b/ui/menu/character_select.tscn @@ -15,6 +15,7 @@ script = ExtResource("script") [node name="LevelName" type="Label" parent="."] layout_mode = 2 theme_override_font_sizes/font_size = 16 +theme_override_colors/font_color = Color(0.64, 0.60, 0.51, 1) text = "Elige quien entra en el nivel" horizontal_alignment = 1 autowrap_mode = 3 diff --git a/ui/menu/level_navigation.gd b/ui/menu/level_navigation.gd index a518495..e4ba8b2 100644 --- a/ui/menu/level_navigation.gd +++ b/ui/menu/level_navigation.gd @@ -149,7 +149,7 @@ func _update_screen() -> void: cancel_button.visible = _screen == Screen.CONFIRM_EXIT match _screen: Screen.PAUSED: - heading.add_theme_color_override("font_color", Color(0.9, 0.96, 0.61)) + heading.add_theme_color_override("font_color", Color(0.88, 0.79, 0.60)) heading.text = "PAUSA" description.text = "Partida en pausa. Puedes continuar o abandonar el intento." Screen.CONFIRM_EXIT: @@ -158,11 +158,11 @@ func _update_screen() -> void: description.text = "Perderás el avance de esta pantalla y los objetos raros aún no confirmados." confirm_button.text = "SI, IR AL SELECTOR" if _exit_to_levels else "SI, IR AL TITULO" Screen.DEFEAT: - heading.add_theme_color_override("font_color", Color(1.0, 0.52, 0.49)) + heading.add_theme_color_override("font_color", Color(0.83, 0.34, 0.32)) heading.text = "HAS MUERTO..." description.text = "El intento ha terminado. Puedes volver a empezar o elegir otro nivel." Screen.VICTORY: - heading.add_theme_color_override("font_color", Color(0.82, 0.97, 0.57)) + heading.add_theme_color_override("font_color", Color(0.88, 0.78, 0.52)) heading.text = "¡VICTORIA!" if _next_level_path.is_empty(): description.text = "¡Nivel completado! No quedan mas niveles disponibles por ahora." diff --git a/ui/menu/level_navigation.tscn b/ui/menu/level_navigation.tscn index d69a32d..1caed61 100644 --- a/ui/menu/level_navigation.tscn +++ b/ui/menu/level_navigation.tscn @@ -1,26 +1,34 @@ -[gd_scene load_steps=5 format=3] +[gd_scene load_steps=7 format=3] [ext_resource type="Script" path="res://ui/menu/level_navigation.gd" id="script"] [ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"] [ext_resource type="Theme" path="res://ui/menu/menu_theme.tres" id="theme"] -[sub_resource type="StyleBoxFlat" id="ResultPanel"] -content_margin_left = 0.0 -content_margin_top = 0.0 -content_margin_right = 0.0 -content_margin_bottom = 0.0 -bg_color = Color(0.095, 0.115, 0.145, 0.98) -border_width_left = 3 -border_width_top = 3 -border_width_right = 3 -border_width_bottom = 3 -border_color = Color(0.56, 0.67, 0.49, 1) -corner_radius_top_left = 12 -corner_radius_top_right = 12 -corner_radius_bottom_left = 12 -corner_radius_bottom_right = 12 -shadow_color = Color(0, 0, 0, 0.55) -shadow_size = 12 +[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"] + +[sub_resource type="StyleBoxTexture" id="ResultPanel"] +texture = ExtResource("plate") +texture_margin_left = 36.0 +texture_margin_top = 18.0 +texture_margin_right = 36.0 +texture_margin_bottom = 16.0 +content_margin_left = 12.0 +content_margin_top = 10.0 +content_margin_right = 12.0 +content_margin_bottom = 10.0 +modulate_color = Color(0.86, 0.76, 0.58, 1) + +[sub_resource type="StyleBoxTexture" id="PausePlate"] +texture = ExtResource("plate") +texture_margin_left = 24.0 +texture_margin_top = 18.0 +texture_margin_right = 36.0 +texture_margin_bottom = 16.0 +content_margin_left = 10.0 +content_margin_top = 8.0 +content_margin_right = 10.0 +content_margin_bottom = 8.0 +modulate_color = Color(0.67, 0.62, 0.52, 0.9) [node name="LevelNavigation" type="CanvasLayer"] process_mode = 3 @@ -39,16 +47,21 @@ mouse_filter = 2 theme = ExtResource("theme") [node name="Pause" type="Button" parent="Overlay"] -custom_minimum_size = Vector2(148, 60) +custom_minimum_size = Vector2(72, 48) layout_mode = 1 anchor_left = 1.0 anchor_right = 1.0 -offset_left = -164.0 -offset_top = 16.0 -offset_right = -16.0 -offset_bottom = 76.0 +offset_left = -90.0 +offset_top = 18.0 +offset_right = -18.0 +offset_bottom = 66.0 grow_horizontal = 0 -text = "II PAUSA" +theme_override_styles/normal = SubResource("PausePlate") +theme_override_styles/hover = SubResource("PausePlate") +theme_override_styles/pressed = SubResource("PausePlate") +theme_override_font_sizes/font_size = 16 +text = "II" +tooltip_text = "Pausa (Esc)" [node name="Pending" type="Label" parent="Overlay"] visible = false @@ -61,7 +74,7 @@ offset_right = -16.0 offset_bottom = 150.0 grow_horizontal = 0 mouse_filter = 2 -theme_override_colors/font_color = Color(1, 0.8, 0.35, 1) +theme_override_colors/font_color = Color(0.86, 0.70, 0.44, 1) theme_override_colors/font_shadow_color = Color(0, 0, 0, 1) theme_override_constants/shadow_offset_x = 2 theme_override_constants/shadow_offset_y = 2 @@ -79,7 +92,7 @@ anchor_bottom = 0.5 offset_top = -32.0 offset_bottom = 48.0 mouse_filter = 2 -theme_override_colors/font_color = Color(1, 0.9, 0.55, 1) +theme_override_colors/font_color = Color(0.91, 0.81, 0.62, 1) theme_override_colors/font_shadow_color = Color(0, 0, 0, 1) theme_override_constants/shadow_offset_x = 2 theme_override_constants/shadow_offset_y = 2 @@ -94,7 +107,7 @@ anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 0 -color = Color(0.015, 0.02, 0.028, 0.85) +color = Color(0.018, 0.013, 0.022, 0.83) [node name="Dialog" type="CenterContainer" parent="Overlay"] visible = false @@ -109,7 +122,7 @@ offset_bottom = -12.0 mouse_filter = 2 [node name="Panel" type="PanelContainer" parent="Overlay/Dialog"] -custom_minimum_size = Vector2(540, 0) +custom_minimum_size = Vector2(580, 0) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 @@ -117,9 +130,9 @@ theme_override_styles/panel = SubResource("ResultPanel") [node name="Margin" type="MarginContainer" parent="Overlay/Dialog/Panel"] layout_mode = 2 -theme_override_constants/margin_left = 28 +theme_override_constants/margin_left = 36 theme_override_constants/margin_top = 24 -theme_override_constants/margin_right = 28 +theme_override_constants/margin_right = 36 theme_override_constants/margin_bottom = 24 [node name="Options" type="VBoxContainer" parent="Overlay/Dialog/Panel/Margin"] @@ -128,8 +141,8 @@ theme_override_constants/separation = 10 [node name="Heading" type="Label" parent="Overlay/Dialog/Panel/Margin/Options"] layout_mode = 2 -theme_override_font_sizes/font_size = 34 -theme_override_colors/font_color = Color(0.9, 0.96, 0.61, 1) +theme_override_font_sizes/font_size = 32 +theme_override_colors/font_color = Color(0.88, 0.79, 0.60, 1) horizontal_alignment = 1 autowrap_mode = 3 text = "PAUSA" diff --git a/ui/menu/main_menu.gd b/ui/menu/main_menu.gd index 7352cef..459910f 100644 --- a/ui/menu/main_menu.gd +++ b/ui/menu/main_menu.gd @@ -1,11 +1,12 @@ extends Control -## Menu provisional, coleccion persistente y selector de niveles sin lista manual. +## Menu de la abadia, coleccion persistente y selector de niveles sin lista manual. ## Solo descubre escenas directamente dentro de levels, nunca sus subcarpetas. const LEVEL_DIRECTORY: String = "res://levels" @onready var characters_panel: VBoxContainer = $Margin/Layout/Characters @onready var title_label: Label = $Margin/Layout/Title +@onready var brand: TextureRect = $Margin/Layout/Brand @onready var home_panel: VBoxContainer = $Margin/Layout/Home @onready var levels_panel: VBoxContainer = $Margin/Layout/Levels @onready var level_list: VBoxContainer = $Margin/Layout/Levels/Scroll/LevelList @@ -26,6 +27,7 @@ var _selected_level_path: String = "" func _ready() -> void: set_process(false) + $KeyboardHint.visible = not DisplayServer.is_touchscreen_available() # Volver desde una meta o abandonar exige una nueva eleccion, no un guardado de personaje. var session: RunSessionState = get_node_or_null("/root/RunSession") as RunSessionState var open_levels: bool = session != null and session.show_levels_on_menu_entry @@ -78,6 +80,8 @@ func _show_home() -> void: loading_panel.hide() error_label.hide() title_label.text = "INICIO" + title_label.hide() + brand.show() play_button.grab_focus() @@ -95,7 +99,7 @@ func _show_levels() -> void: var button := Button.new() button.text = level_label(path) button.tooltip_text = path.get_file() - button.custom_minimum_size.y = 64.0 + button.custom_minimum_size.y = 72.0 button.size_flags_horizontal = Control.SIZE_EXPAND_FILL # El texto no fuerza el ancho: sigue cabiendo en pantallas estrechas. button.clip_text = true @@ -107,6 +111,8 @@ func _show_levels() -> void: levels_panel.show() error_label.hide() title_label.text = "ELEGIR NIVEL" + title_label.show() + brand.hide() if level_list.get_child_count() > 0: (level_list.get_child(0) as Button).grab_focus() else: @@ -121,6 +127,8 @@ func _show_inventory() -> void: characters_panel.hide() error_label.hide() title_label.text = "OBJETOS RAROS" + title_label.show() + brand.hide() inventory_panel.call("show_collection") @@ -134,6 +142,8 @@ func _show_characters(path: String) -> void: inventory_panel.hide() error_label.hide() title_label.text = "ELEGIR PERSONAJE" + title_label.show() + brand.hide() characters_panel.call("show_roster", level_label(path)) diff --git a/ui/menu/main_menu.tscn b/ui/menu/main_menu.tscn index b23f1cf..38a763f 100644 --- a/ui/menu/main_menu.tscn +++ b/ui/menu/main_menu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=5 format=3] +[gd_scene load_steps=7 format=3] [ext_resource type="Script" path="res://ui/menu/main_menu.gd" id="script"] [ext_resource type="Theme" path="res://ui/menu/menu_theme.tres" id="theme"] @@ -6,6 +6,9 @@ [ext_resource type="PackedScene" path="res://ui/menu/rare_inventory.tscn" id="inventory"] [ext_resource type="PackedScene" path="res://ui/menu/character_select.tscn" id="characters"] +[ext_resource type="PackedScene" path="res://ui/menu/ashen_backdrop.tscn" id="backdrop"] +[ext_resource type="Texture2D" path="res://assets/ashen/ui/title.png" id="brand"] + [node name="MainMenu" type="Control"] layout_mode = 3 anchors_preset = 15 @@ -16,43 +19,52 @@ grow_vertical = 2 theme = ExtResource("theme") script = ExtResource("script") -[node name="Background" type="ColorRect" parent="."] +[node name="Background" parent="." instance=ExtResource("backdrop")] layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -mouse_filter = 2 -color = Color(0.035, 0.045, 0.055, 1) [node name="Margin" type="MarginContainer" parent="."] layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -theme_override_constants/margin_left = 32 -theme_override_constants/margin_top = 24 -theme_override_constants/margin_right = 32 -theme_override_constants/margin_bottom = 24 +anchor_left = 0.17 +anchor_top = 0.05 +anchor_right = 0.83 +anchor_bottom = 0.93 +theme_override_constants/margin_left = 8 +theme_override_constants/margin_top = 8 +theme_override_constants/margin_right = 8 +theme_override_constants/margin_bottom = 8 [node name="Layout" type="VBoxContainer" parent="Margin"] layout_mode = 2 theme_override_constants/separation = 16 +[node name="Brand" type="TextureRect" parent="Margin/Layout"] +custom_minimum_size = Vector2(0, 235) +layout_mode = 2 +mouse_filter = 2 +texture_filter = 1 +texture = ExtResource("brand") +expand_mode = 1 +stretch_mode = 5 + [node name="Title" type="Label" parent="Margin/Layout"] layout_mode = 2 -theme_override_font_sizes/font_size = 30 +theme_override_font_sizes/font_size = 32 text = "INICIO" horizontal_alignment = 1 [node name="Home" type="VBoxContainer" parent="Margin/Layout"] +custom_minimum_size = Vector2(440, 0) layout_mode = 2 +size_flags_horizontal = 4 size_flags_vertical = 3 -theme_override_constants/separation = 18 +theme_override_constants/separation = 12 alignment = 1 [node name="Hint" type="Label" parent="Margin/Layout/Home"] layout_mode = 2 -text = "Elige un escenario y entra a probar." +theme_override_colors/font_color = Color(0.66, 0.62, 0.51, 1) +theme_override_font_sizes/font_size = 16 +text = "DONDE CALLAN LAS CAMPANAS" horizontal_alignment = 1 autowrap_mode = 3 @@ -64,7 +76,7 @@ text = "JUGAR" [node name="RareItems" type="Button" parent="Margin/Layout/Home"] custom_minimum_size = Vector2(0, 64) layout_mode = 2 -text = "OBJETOS RAROS" +text = "RELICARIO" [node name="Quit" type="Button" parent="Margin/Layout/Home"] custom_minimum_size = Vector2(0, 64) @@ -121,17 +133,18 @@ layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -color = Color(0.035, 0.045, 0.055, 1) +color = Color(0.025, 0.02, 0.03, 0.96) [node name="Content" type="VBoxContainer" parent="Loading"] layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = 32.0 -offset_top = 24.0 -offset_right = -32.0 -offset_bottom = -24.0 +anchor_left = 0.2 +anchor_top = 0.4 +anchor_right = 0.8 +anchor_bottom = 0.6 +offset_left = 0.0 +offset_top = 0.0 +offset_right = 0.0 +offset_bottom = 0.0 theme_override_constants/separation = 24 alignment = 1 @@ -142,6 +155,20 @@ horizontal_alignment = 1 autowrap_mode = 3 [node name="Progress" type="ProgressBar" parent="Loading/Content"] -custom_minimum_size = Vector2(0, 24) +custom_minimum_size = Vector2(0, 8) layout_mode = 2 show_percentage = false + +[node name="KeyboardHint" type="Label" parent="."] +layout_mode = 1 +anchor_left = 0.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_top = -32.0 +offset_bottom = -12.0 +mouse_filter = 2 +theme_override_colors/font_color = Color(0.54, 0.51, 0.45, 1) +theme_override_font_sizes/font_size = 16 +text = "A / D MOVER W SALTAR J ATAQUE K CAER L SOLO" +horizontal_alignment = 1 diff --git a/ui/menu/menu_theme.tres b/ui/menu/menu_theme.tres index 5711235..e2ede5b 100644 --- a/ui/menu/menu_theme.tres +++ b/ui/menu/menu_theme.tres @@ -1,54 +1,75 @@ -[gd_resource type="Theme" load_steps=6 format=3] +[gd_resource type="Theme" load_steps=10 format=3] [ext_resource type="FontFile" path="res://assets/fonts/PixelOperator8.ttf" id="font"] +[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"] -[sub_resource type="StyleBoxFlat" id="Normal"] -content_margin_left = 22.0 -content_margin_top = 16.0 -content_margin_right = 22.0 -content_margin_bottom = 16.0 -bg_color = Color(0.12, 0.15, 0.18, 1) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0.35, 0.4, 0.43, 1) -corner_radius_top_left = 4 -corner_radius_top_right = 4 -corner_radius_bottom_left = 4 -corner_radius_bottom_right = 4 +[sub_resource type="StyleBoxTexture" id="Normal"] +texture = ExtResource("plate") +texture_margin_left = 28.0 +texture_margin_top = 18.0 +texture_margin_right = 36.0 +texture_margin_bottom = 16.0 +content_margin_left = 36.0 +content_margin_top = 14.0 +content_margin_right = 36.0 +content_margin_bottom = 14.0 +modulate_color = Color(0.72, 0.65, 0.54, 1) -[sub_resource type="StyleBoxFlat" id="Hover"] -content_margin_left = 22.0 -content_margin_top = 16.0 -content_margin_right = 22.0 -content_margin_bottom = 16.0 -bg_color = Color(0.20, 0.25, 0.26, 1) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0.7, 0.83, 0.32, 1) +[sub_resource type="StyleBoxTexture" id="Hover"] +texture = ExtResource("plate") +texture_margin_left = 28.0 +texture_margin_top = 18.0 +texture_margin_right = 36.0 +texture_margin_bottom = 16.0 +content_margin_left = 36.0 +content_margin_top = 14.0 +content_margin_right = 36.0 +content_margin_bottom = 14.0 +modulate_color = Color(1, 0.92, 0.74, 1) -[sub_resource type="StyleBoxFlat" id="Pressed"] -content_margin_left = 22.0 +[sub_resource type="StyleBoxTexture" id="Pressed"] +texture = ExtResource("plate") +texture_margin_left = 28.0 +texture_margin_top = 18.0 +texture_margin_right = 36.0 +texture_margin_bottom = 16.0 +content_margin_left = 36.0 content_margin_top = 16.0 -content_margin_right = 22.0 -content_margin_bottom = 16.0 -bg_color = Color(0.25, 0.32, 0.15, 1) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0.8, 0.94, 0.4, 1) +content_margin_right = 36.0 +content_margin_bottom = 12.0 +modulate_color = Color(0.72, 0.40, 0.31, 1) [sub_resource type="StyleBoxFlat" id="Focus"] +content_margin_left = 3.0 +content_margin_top = 3.0 +content_margin_right = 3.0 +content_margin_bottom = 3.0 bg_color = Color(0, 0, 0, 0) border_width_left = 2 -border_width_top = 2 border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0.85, 0.95, 0.55, 1) +border_color = Color(0.87, 0.68, 0.37, 0.9) +expand_margin_left = -10.0 +expand_margin_top = -15.0 +expand_margin_right = -17.0 +expand_margin_bottom = -11.0 + +[sub_resource type="StyleBoxFlat" id="EmptyBar"] +bg_color = Color(0.075, 0.063, 0.075, 1) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color(0.33, 0.26, 0.19, 1) + +[sub_resource type="StyleBoxFlat" id="FillBar"] +bg_color = Color(0.47, 0.32, 0.16, 1) +border_width_top = 1 +border_color = Color(0.80, 0.63, 0.38, 1) + +[sub_resource type="StyleBoxFlat" id="Track"] +bg_color = Color(0.07, 0.055, 0.065, 1) +content_margin_left = 6.0 +content_margin_right = 6.0 [resource] default_font = ExtResource("font") @@ -58,6 +79,20 @@ Button/styles/hover = SubResource("Hover") Button/styles/pressed = SubResource("Pressed") Button/styles/focus = SubResource("Focus") Button/styles/disabled = SubResource("Normal") -Button/colors/font_color = Color(0.94, 0.95, 0.90, 1) -Button/colors/font_disabled_color = Color(0.48, 0.52, 0.54, 1) -Label/colors/font_color = Color(0.88, 0.91, 0.88, 1) +Button/colors/font_color = Color(0.86, 0.81, 0.67, 1) +Button/colors/font_hover_color = Color(1, 0.93, 0.75, 1) +Button/colors/font_pressed_color = Color(0.96, 0.77, 0.59, 1) +Button/colors/font_disabled_color = Color(0.42, 0.39, 0.34, 1) +Button/colors/font_shadow_color = Color(0.02, 0.015, 0.02, 1) +Button/constants/shadow_offset_x = 2 +Button/constants/shadow_offset_y = 2 +Label/colors/font_color = Color(0.82, 0.79, 0.69, 1) +Label/colors/font_shadow_color = Color(0.02, 0.015, 0.02, 1) +Label/constants/shadow_offset_x = 2 +Label/constants/shadow_offset_y = 2 +ProgressBar/styles/background = SubResource("EmptyBar") +ProgressBar/styles/fill = SubResource("FillBar") +VScrollBar/styles/scroll = SubResource("Track") +VScrollBar/styles/grabber = SubResource("FillBar") +VScrollBar/styles/grabber_highlight = SubResource("FillBar") +VScrollBar/styles/grabber_pressed = SubResource("FillBar") diff --git a/ui/menu/rare_inventory.tscn b/ui/menu/rare_inventory.tscn index 119300e..4104ebc 100644 --- a/ui/menu/rare_inventory.tscn +++ b/ui/menu/rare_inventory.tscn @@ -14,7 +14,8 @@ horizontal_alignment = 1 [node name="Hint" type="Label" parent="."] layout_mode = 2 -text = "Encuentra el objeto y completa el nivel para conservarlo.\nSus mejoras son permanentes, automaticas y compartidas por todos los personajes." +theme_override_font_sizes/font_size = 16 +text = "Conserva una reliquia al completar el nivel.\nSus mejoras permanentes protegen a toda la banda." horizontal_alignment = 1 autowrap_mode = 3 diff --git a/ui/menu/rare_item_card.tscn b/ui/menu/rare_item_card.tscn index fa38b51..9f2f283 100644 --- a/ui/menu/rare_item_card.tscn +++ b/ui/menu/rare_item_card.tscn @@ -1,12 +1,14 @@ -[gd_scene load_steps=2 format=3] +[gd_scene load_steps=3 format=3] -[sub_resource type="StyleBoxFlat" id="panel"] -bg_color = Color(0.085, 0.095, 0.12, 1) -border_width_left = 3 -border_width_top = 1 -border_width_right = 1 -border_width_bottom = 1 -border_color = Color(0.65, 0.48, 0.18, 1) +[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"] + +[sub_resource type="StyleBoxTexture" id="panel"] +texture = ExtResource("plate") +texture_margin_left = 28.0 +texture_margin_top = 18.0 +texture_margin_right = 36.0 +texture_margin_bottom = 24.0 +modulate_color = Color(0.65, 0.57, 0.45, 1) [node name="RareItemCard" type="PanelContainer"] size_flags_horizontal = 3 @@ -14,17 +16,17 @@ theme_override_styles/panel = SubResource("panel") [node name="Margin" type="MarginContainer" parent="."] layout_mode = 2 -theme_override_constants/margin_left = 16 -theme_override_constants/margin_top = 16 -theme_override_constants/margin_right = 16 -theme_override_constants/margin_bottom = 16 +theme_override_constants/margin_left = 28 +theme_override_constants/margin_top = 24 +theme_override_constants/margin_right = 28 +theme_override_constants/margin_bottom = 24 [node name="Row" type="HBoxContainer" parent="Margin"] layout_mode = 2 theme_override_constants/separation = 16 [node name="Icon" type="TextureRect" parent="Margin/Row"] -custom_minimum_size = Vector2(64, 64) +custom_minimum_size = Vector2(96, 96) layout_mode = 2 size_flags_vertical = 4 texture_filter = 1 @@ -44,12 +46,12 @@ text = "Objeto raro" [node name="State" type="Label" parent="Margin/Row/Text"] layout_mode = 2 -theme_override_colors/font_color = Color(1, 0.77, 0.26, 1) +theme_override_colors/font_color = Color(0.83, 0.66, 0.38, 1) autowrap_mode = 3 [node name="Bonus" type="Label" parent="Margin/Row/Text"] layout_mode = 2 -theme_override_colors/font_color = Color(0.7, 1, 0.55, 1) +theme_override_colors/font_color = Color(0.56, 0.73, 0.72, 1) autowrap_mode = 3 [node name="Description" type="Label" parent="Margin/Row/Text"] diff --git a/ui/mobile_controls/mobile_controls.gd b/ui/mobile_controls/mobile_controls.gd index 5e323ea..50b3b63 100644 --- a/ui/mobile_controls/mobile_controls.gd +++ b/ui/mobile_controls/mobile_controls.gd @@ -1,18 +1,9 @@ extends CanvasLayer -## Controles táctiles provisionales para jugar en móvil. -## -## Los botones no llaman directamente al Player. En su lugar pulsan y liberan -## las mismas acciones del InputMap que ya usa el teclado. De esta forma la -## lógica de movimiento/combate sigue teniendo una única fuente de entrada: -## -## teclado -> InputMap <- controles táctiles -## | -## Player -## -## Cuando llegue el arte definitivo, esta escena puede cambiar por completo sin -## tocar player.gd mientras conserve estas seis acciones. +## La misma entrada del teclado, presentada como placas de metal tactiles. +## Se muestran en pantallas tactiles; el Inspector permite probarlas en escritorio. +@export var show_on_desktop: bool = false @onready var move_left_button: Button = $Controls/MoveLeft @onready var move_right_button: Button = $Controls/MoveRight @@ -27,6 +18,7 @@ var _player: Node ## Asocia botones con las mismas acciones utilizadas por el teclado. func _ready() -> void: + $Controls.visible = show_on_desktop or DisplayServer.is_touchscreen_available() or OS.has_feature("mobile") _bind_button(jump_button, &"jump") _bind_button(attack_button, &"attack") _bind_button(ground_pound_button, &"ground_pound") @@ -38,17 +30,18 @@ func _process(_delta: float) -> void: if not is_instance_valid(_player): _player = get_tree().get_first_node_in_group(&"player") if not is_instance_valid(_player): - ground_pound_button.text = "GP" + ground_pound_button.text = "CAER" ground_pound_button.modulate = Color.WHITE return var remaining: float = float(_player.get("ground_pound_cooldown_timer")) - ground_pound_button.text = "GP\n%ds" % ceili(remaining) if remaining > 0.0 else "GP" + ground_pound_button.text = "CAER\n%ds" % ceili(remaining) if remaining > 0.0 else "CAER" ground_pound_button.modulate = Color(0.55, 0.55, 0.55, 0.85) if remaining > 0.0 else Color.WHITE ## Mantiene un unico dedo para direccion y permite deslizarlo entre ambos lados. func _input(event: InputEvent) -> void: if event is InputEventScreenTouch: + $Controls.show() var touch := event as InputEventScreenTouch if touch.pressed and direction_touch_index == -1: var action := _direction_at(touch.position) diff --git a/ui/mobile_controls/mobile_controls.tscn b/ui/mobile_controls/mobile_controls.tscn index db4bba9..55dfb26 100644 --- a/ui/mobile_controls/mobile_controls.tscn +++ b/ui/mobile_controls/mobile_controls.tscn @@ -1,45 +1,42 @@ -[gd_scene format=3 uid="uid://g7h185yageqr"] +[gd_scene load_steps=7 format=3 uid="uid://g7h185yageqr"] [ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"] +[ext_resource type="Script" path="res://ui/mobile_controls/mobile_controls.gd" id="1_controls"] +[ext_resource type="Theme" path="res://ui/menu/menu_theme.tres" id="theme"] +[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"] -[ext_resource type="Script" uid="uid://2kbajcohyem7" path="res://ui/mobile_controls/mobile_controls.gd" id="1_controls"] -[ext_resource type="Texture2D" uid="uid://cj6wl2l43nao2" path="res://assets/ui/mobile_controls/left-arrow.png" id="2_left"] -[ext_resource type="Texture2D" uid="uid://y0tsuhk4moj3" path="res://assets/ui/mobile_controls/right-arrow.png" id="3_right"] -[ext_resource type="Texture2D" uid="uid://b832qiumqbdwc" path="res://assets/ui/mobile_controls/top-arrow.png" id="4_jump"] -[ext_resource type="Texture2D" uid="uid://byb0xo2xlcj4f" path="res://assets/ui/mobile_controls/attack.png" id="5_attack"] +[sub_resource type="StyleBoxTexture" id="ButtonNormal"] +texture = ExtResource("plate") +texture_margin_left = 24.0 +texture_margin_top = 18.0 +texture_margin_right = 28.0 +texture_margin_bottom = 16.0 +content_margin_left = 12.0 +content_margin_top = 12.0 +content_margin_right = 12.0 +content_margin_bottom = 12.0 +modulate_color = Color(0.68, 0.61, 0.48, 0.78) -[sub_resource type="StyleBoxFlat" id="ButtonNormal"] -bg_color = Color(0.65, 0.04, 0.04, 0.28) -border_width_left = 3 -border_width_top = 3 -border_width_right = 3 -border_width_bottom = 3 -border_color = Color(1, 0.15, 0.15, 0.72) -corner_radius_top_left = 14 -corner_radius_top_right = 14 -corner_radius_bottom_right = 14 -corner_radius_bottom_left = 14 +[sub_resource type="StyleBoxTexture" id="ButtonPressed"] +texture = ExtResource("plate") +texture_margin_left = 24.0 +texture_margin_top = 18.0 +texture_margin_right = 28.0 +texture_margin_bottom = 16.0 +content_margin_left = 12.0 +content_margin_top = 14.0 +content_margin_right = 12.0 +content_margin_bottom = 10.0 +modulate_color = Color(1, 0.78, 0.51, 1) -[sub_resource type="StyleBoxFlat" id="ButtonPressed"] -bg_color = Color(0.95, 0.05, 0.05, 0.52) -border_width_left = 4 -border_width_top = 4 -border_width_right = 4 -border_width_bottom = 4 -border_color = Color(1, 0.45, 0.45, 0.95) -corner_radius_top_left = 14 -corner_radius_top_right = 14 -corner_radius_bottom_right = 14 -corner_radius_bottom_left = 14 - -[node name="MobileControls" type="CanvasLayer" unique_id=478431491] +[node name="MobileControls" type="CanvasLayer"] layer = 100 script = ExtResource("1_controls") [node name="EditorVisibility" type="Node" parent="."] script = ExtResource("editor_ui_visibility") -[node name="Controls" type="Control" parent="." unique_id=1754744981] +[node name="Controls" type="Control" parent="."] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 @@ -47,139 +44,136 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 +theme = ExtResource("theme") -[node name="MoveLeft" type="Button" parent="Controls" unique_id=981068385] +[node name="MoveLeft" type="Button" parent="Controls"] layout_mode = 1 -anchors_preset = 2 +anchor_left = 0.0 anchor_top = 1.0 +anchor_right = 0.0 anchor_bottom = 1.0 -offset_left = 50.0 -offset_top = -170.0 -offset_right = 188.0 -offset_bottom = -32.0 +offset_left = 24.0 +offset_top = -140.0 +offset_right = 136.0 +offset_bottom = -28.0 +grow_horizontal = 1 grow_vertical = 0 focus_mode = 0 -theme_override_colors/font_color = Color(1, 1, 1, 0.95) -theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) -theme_override_font_sizes/font_size = 42 +theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92) +theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1) +theme_override_font_sizes/font_size = 32 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true -icon = ExtResource("2_left") -expand_icon = true +text = "<<" -[node name="MoveRight" type="Button" parent="Controls" unique_id=561780368] +[node name="MoveRight" type="Button" parent="Controls"] layout_mode = 1 -anchors_preset = 2 +anchor_left = 0.0 anchor_top = 1.0 +anchor_right = 0.0 anchor_bottom = 1.0 -offset_left = 208.0 -offset_top = -170.0 -offset_right = 346.0 -offset_bottom = -32.0 +offset_left = 148.0 +offset_top = -140.0 +offset_right = 260.0 +offset_bottom = -28.0 +grow_horizontal = 1 grow_vertical = 0 focus_mode = 0 -theme_override_colors/font_color = Color(1, 1, 1, 0.95) -theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) -theme_override_font_sizes/font_size = 42 +theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92) +theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1) +theme_override_font_sizes/font_size = 32 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true -icon = ExtResource("3_right") -expand_icon = true +text = ">>" -[node name="Jump" type="Button" parent="Controls" unique_id=1396737393] +[node name="Jump" type="Button" parent="Controls"] layout_mode = 1 -anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = -177.0 -offset_top = -316.0 -offset_right = -34.0 -offset_bottom = -186.0 +offset_left = -140.0 +offset_top = -264.0 +offset_right = -28.0 +offset_bottom = -152.0 grow_horizontal = 0 grow_vertical = 0 focus_mode = 0 -theme_override_colors/font_color = Color(1, 1, 1, 0.95) -theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) -theme_override_font_sizes/font_size = 22 +theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92) +theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1) +theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true -icon = ExtResource("4_jump") -expand_icon = true +text = "SALTO" -[node name="Attack" type="Button" parent="Controls" unique_id=514469811] +[node name="Attack" type="Button" parent="Controls"] layout_mode = 1 -anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = -330.0 -offset_top = -228.0 -offset_right = -220.0 -offset_bottom = -128.0 +offset_left = -264.0 +offset_top = -140.0 +offset_right = -152.0 +offset_bottom = -28.0 grow_horizontal = 0 grow_vertical = 0 focus_mode = 0 -theme_override_colors/font_color = Color(1, 1, 1, 0.95) -theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) -theme_override_font_sizes/font_size = 22 +theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92) +theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1) +theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true -icon = ExtResource("5_attack") -expand_icon = true +text = "ATAQUE" -[node name="GroundPound" type="Button" parent="Controls" unique_id=655126227] +[node name="GroundPound" type="Button" parent="Controls"] layout_mode = 1 -anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = -160.0 -offset_top = -155.0 -offset_right = -50.0 -offset_bottom = -55.0 +offset_left = -140.0 +offset_top = -140.0 +offset_right = -28.0 +offset_bottom = -28.0 grow_horizontal = 0 grow_vertical = 0 focus_mode = 0 -theme_override_colors/font_color = Color(1, 1, 1, 0.95) -theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) -theme_override_font_sizes/font_size = 18 +theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92) +theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1) +theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true -text = "GP" +text = "CAER" -[node name="SpecialAttack" type="Button" parent="Controls" unique_id=2065869646] +[node name="SpecialAttack" type="Button" parent="Controls"] layout_mode = 1 -anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = -163.0 -offset_top = -520.0 -offset_right = -53.0 -offset_bottom = -420.0 +offset_left = -264.0 +offset_top = -264.0 +offset_right = -152.0 +offset_bottom = -152.0 grow_horizontal = 0 grow_vertical = 0 focus_mode = 0 -theme_override_colors/font_color = Color(1, 1, 1, 0.95) -theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) -theme_override_font_sizes/font_size = 18 +theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92) +theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1) +theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true -text = "SP" +text = "SOLO" diff --git a/world/backgrounds/ashen_atmosphere.gd b/world/backgrounds/ashen_atmosphere.gd new file mode 100644 index 0000000..5eb0dab --- /dev/null +++ b/world/backgrounds/ashen_atmosphere.gd @@ -0,0 +1,35 @@ +extends CanvasLayer +class_name AshenAtmosphere + +## Una capa ambiental para toda la ventana; no depende de la longitud del nivel. +## Polvo por CPU y una sola pasada de niebla, sin leer la pantalla ni luces globales. + +@export var mist_strength: float = 0.45 +@export var mist_color: Color = Color(0.40, 0.39, 0.46, 0.14) +@export var dust_color: Color = Color(0.72, 0.60, 0.45, 0.38) + +var _clock: float = 0.0 +var _mist_material: ShaderMaterial + + +func _ready() -> void: + _mist_material = ($Mist as ColorRect).material.duplicate() as ShaderMaterial + ($Mist as ColorRect).material = _mist_material + _mist_material.set_shader_parameter("strength", mist_strength) + _mist_material.set_shader_parameter("mist_color", mist_color) + ($Dust as CPUParticles2D).color = dust_color + get_viewport().size_changed.connect(_resize) + _resize() + + +func _resize() -> void: + var viewport_size: Vector2 = get_viewport().get_visible_rect().size + ($Mist as ColorRect).size = viewport_size + var dust: CPUParticles2D = $Dust + dust.position = viewport_size * 0.5 + dust.emission_rect_extents = viewport_size * 0.55 + + +func _process(delta: float) -> void: + _clock = fmod(_clock + delta, 10000.0) + _mist_material.set_shader_parameter("clock", _clock) diff --git a/world/backgrounds/ashen_atmosphere.gdshader b/world/backgrounds/ashen_atmosphere.gdshader new file mode 100644 index 0000000..7ee6768 --- /dev/null +++ b/world/backgrounds/ashen_atmosphere.gdshader @@ -0,0 +1,27 @@ +shader_type canvas_item; +render_mode unshaded; + +uniform float clock = 0.0; +uniform vec4 mist_color : source_color = vec4(0.40, 0.39, 0.46, 0.14); +uniform float strength : hint_range(0.0, 1.0) = 0.45; + +float soft_noise(vec2 p) { + vec2 i = floor(p); + vec2 f = fract(p); + f = f * f * (3.0 - 2.0 * f); + float a = fract(sin(dot(i, vec2(127.1, 311.7))) * 43758.5453); + float b = fract(sin(dot(i + vec2(1.0, 0.0), vec2(127.1, 311.7))) * 43758.5453); + float c = fract(sin(dot(i + vec2(0.0, 1.0), vec2(127.1, 311.7))) * 43758.5453); + float d = fract(sin(dot(i + vec2(1.0, 1.0), vec2(127.1, 311.7))) * 43758.5453); + return mix(mix(a, b, f.x), mix(c, d, f.x), f.y); +} + +void fragment() { + // Niebla tenue de baja frecuencia: nunca oculta bordes ni siluetas de combate. + vec2 p = floor(UV * vec2(640.0, 360.0)) / vec2(640.0, 360.0); + float bank = soft_noise(vec2(p.x * 4.0 - clock * 0.025, p.y * 2.7)); + float floor_mask = smoothstep(0.50, 0.96, p.y); + float rim = smoothstep(0.38, 0.72, abs(p.x - 0.5)); + float opacity = (floor_mask * (0.26 + bank * 0.65) + rim * 0.12) * strength; + COLOR = vec4(mist_color.rgb, mist_color.a * opacity); +} diff --git a/world/backgrounds/ashen_atmosphere.tscn b/world/backgrounds/ashen_atmosphere.tscn new file mode 100644 index 0000000..5f99e10 --- /dev/null +++ b/world/backgrounds/ashen_atmosphere.tscn @@ -0,0 +1,42 @@ +[gd_scene load_steps=6 format=3] + +[ext_resource type="Script" path="res://world/backgrounds/ashen_atmosphere.gd" id="script"] +[ext_resource type="Shader" path="res://world/backgrounds/ashen_atmosphere.gdshader" id="shader"] +[ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor"] + +[sub_resource type="ShaderMaterial" id="mist"] +resource_local_to_scene = true +shader = ExtResource("shader") + +[sub_resource type="Gradient" id="fade"] +offsets = PackedFloat32Array(0, 0.15, 0.75, 1) +colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 0.8, 1, 1, 1, 0.5, 1, 1, 1, 0) + +[node name="AshenAtmosphere" type="CanvasLayer"] +layer = 70 +script = ExtResource("script") + +[node name="EditorVisibility" type="Node" parent="."] +script = ExtResource("editor") + +[node name="Mist" type="ColorRect" parent="."] +material = SubResource("mist") +mouse_filter = 2 +color = Color(1, 1, 1, 1) + +[node name="Dust" type="CPUParticles2D" parent="."] +amount = 36 +lifetime = 12.0 +preprocess = 12.0 +randomness = 0.65 +emission_shape = 3 +emission_rect_extents = Vector2(704, 396) +direction = Vector2(0.35, -1) +spread = 18.0 +gravity = Vector2(0, 0) +initial_velocity_min = 3.0 +initial_velocity_max = 8.0 +scale_amount_min = 1.0 +scale_amount_max = 2.0 +color = Color(0.72, 0.60, 0.45, 0.38) +color_ramp = SubResource("fade") diff --git a/world/backgrounds/ashen_vista.gd b/world/backgrounds/ashen_vista.gd new file mode 100644 index 0000000..bdc1783 --- /dev/null +++ b/world/backgrounds/ashen_vista.gd @@ -0,0 +1,137 @@ +@tool +extends Node2D +class_name AshenVista + +## Fondos pintados en planos independientes. Solo reconstruye la presentacion +## al editar recursos; Parallax2D se ocupa del desplazamiento durante la partida. +## Cada panorama alterna normal/reflejado para cerrar su union sin estirarlo. + +@export_category("Painted layers") +@export var distant_texture: Texture2D: + set(value): + distant_texture = value + _queue_refresh() +@export var middle_texture: Texture2D: + set(value): + middle_texture = value + _queue_refresh() +@export var near_texture: Texture2D: + set(value): + near_texture = value + _queue_refresh() + +@export_category("Composition") +@export var horizon_y: float = 1008.0: + set(value): + horizon_y = value + _queue_refresh() +## Altura de referencia para componer el panorama tambien en el editor. +@export var camera_anchor_y: float = 760.0: + set(value): + camera_anchor_y = value + _queue_refresh() +@export var composition_x: float = 0.0: + set(value): + composition_x = value + _queue_refresh() +@export_range(0.1, 2.0, 0.05) var distant_scale: float = 0.5: + set(value): + distant_scale = maxf(value, 0.1) + _queue_refresh() +@export_range(0.1, 2.0, 0.05) var middle_scale: float = 0.5: + set(value): + middle_scale = maxf(value, 0.1) + _queue_refresh() +@export_range(0.1, 2.0, 0.05) var near_scale: float = 0.5: + set(value): + near_scale = maxf(value, 0.1) + _queue_refresh() +@export var distant_tint: Color = Color.WHITE: + set(value): + distant_tint = value + _queue_refresh() +@export var middle_tint: Color = Color(0.60, 0.65, 0.74, 1.0): + set(value): + middle_tint = value + _queue_refresh() +@export var near_tint: Color = Color(0.44, 0.42, 0.44, 1.0): + set(value): + near_tint = value + _queue_refresh() + +var _refresh_pending: bool = false +var _last_camera_y: float = INF + + +func _ready() -> void: + _refresh() + set_process(not Engine.is_editor_hint()) + + +func _queue_refresh() -> void: + if not is_inside_tree() or _refresh_pending: + return + _refresh_pending = true + call_deferred("_refresh") + + +func _refresh() -> void: + _refresh_pending = false + if not is_inside_tree() or not has_node("Distant"): + return + _configure_layer($Distant, distant_texture, distant_scale, 0.12, distant_tint, 0.0) + _configure_layer($Middle, middle_texture, middle_scale, 0.34, middle_tint, 24.0) + _configure_layer($Near, near_texture, near_scale, 0.63, near_tint, -120.0) + _last_camera_y = INF + update_configuration_warnings() + + +func _configure_layer(layer: Parallax2D, texture: Texture2D, factor: float, + speed: float, tint: Color, base_offset: float) -> void: + layer.visible = texture != null + if texture == null: + return + var width: float = texture.get_width() * factor + var height: float = texture.get_height() * factor + # La vertical sigue al mundo: los fondos no se separan de los pies al saltar. + layer.scroll_scale = Vector2(speed, 1.0) + layer.repeat_size = Vector2(width * 2.0, 0.0) + layer.repeat_times = 3 + for index: int in range(2): + var panel: Sprite2D = layer.get_child(index) as Sprite2D + panel.texture = texture + panel.scale = Vector2(factor, factor) + panel.position = Vector2(index * width + composition_x, horizon_y - height + base_offset) + panel.modulate = tint + panel.flip_h = index == 1 + + +func _process(_delta: float) -> void: + var camera: Camera2D = get_viewport().get_camera_2d() + if camera == null: + return + var camera_y: float = camera.get_screen_center_position().y + if is_equal_approx(camera_y, _last_camera_y): + return + _last_camera_y = camera_y + # El cielo acompana el ascenso; las siluetas cercanas cambian ligeramente de + # altura. Solo se mueven sprites almacenados, no se reconstruye el dibujo. + _position_vertical($Distant, distant_texture, distant_scale, 0.0, 0.0, camera_y) + _position_vertical($Middle, middle_texture, middle_scale, 24.0, 0.12, camera_y) + _position_vertical($Near, near_texture, near_scale, -120.0, 0.22, camera_y) + + +func _position_vertical(layer: Parallax2D, texture: Texture2D, factor: float, + base_offset: float, ratio: float, camera_y: float) -> void: + if texture == null: + return + var y: float = horizon_y - texture.get_height() * factor + base_offset + y += (camera_y - camera_anchor_y) * (1.0 - ratio) + for panel: Sprite2D in layer.get_children(): + panel.position.y = roundf(y) + + +func _get_configuration_warnings() -> PackedStringArray: + if distant_texture == null: + return PackedStringArray(["Asigna el panorama lejano de la localizacion."]) + return PackedStringArray() diff --git a/world/backgrounds/city_background.tscn b/world/backgrounds/city_background.tscn index bbf08bd..5e7c90a 100644 --- a/world/backgrounds/city_background.tscn +++ b/world/backgrounds/city_background.tscn @@ -1,52 +1,52 @@ [gd_scene load_steps=5 format=3] -[ext_resource type="Texture2D" path="res://assets/city/sky.png" id="art_sky"] -[ext_resource type="Texture2D" path="res://assets/city/clouds.png" id="art_clouds"] -[ext_resource type="Texture2D" path="res://assets/city/skyline_far.png" id="art_skyline_far"] -[ext_resource type="Texture2D" path="res://assets/city/skyline_mid.png" id="art_skyline_mid"] + +[ext_resource type="Script" path="res://world/backgrounds/ashen_vista.gd" id="script"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/city_far.png" id="far"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/city_mid.png" id="mid"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/near_ruins.png" id="near"] [node name="CityBackground" type="Node2D"] - -[node name="Sky" type="Parallax2D" parent="."] -z_index = -18 -scroll_scale = Vector2(0, 1) -repeat_size = Vector2(1024, 0) -repeat_times = 2 - -[node name="Strip" type="Sprite2D" parent="Sky"] -centered = false texture_filter = 1 -texture = ExtResource("art_sky") +script = ExtResource("script") +distant_texture = ExtResource("far") +middle_texture = ExtResource("mid") +near_texture = ExtResource("near") -[node name="HighClouds" type="Parallax2D" parent="."] -z_index = -17 +[node name="SkyTone" type="Polygon2D" parent="."] +z_index = -40 +color = Color(0.14, 0.10, 0.15, 1) +polygon = PackedVector2Array(-20000, -12000, 40000, -12000, 40000, 12000, -20000, 12000) + +[node name="Distant" type="Parallax2D" parent="."] +z_index = -30 scroll_scale = Vector2(0.12, 1) -repeat_size = Vector2(1024, 0) -repeat_times = 2 -autoscroll = Vector2(3, 0) +repeat_size = Vector2(1774, 0) +repeat_times = 3 -[node name="Strip" type="Sprite2D" parent="HighClouds"] +[node name="Normal" type="Sprite2D" parent="Distant"] centered = false -texture_filter = 1 -texture = ExtResource("art_clouds") -[node name="FarBuildings" type="Parallax2D" parent="."] -z_index = -16 -scroll_scale = Vector2(0.23, 1) -repeat_size = Vector2(1024, 0) -repeat_times = 2 - -[node name="Strip" type="Sprite2D" parent="FarBuildings"] +[node name="Mirrored" type="Sprite2D" parent="Distant"] centered = false -texture_filter = 1 -texture = ExtResource("art_skyline_far") -[node name="NearBuildings" type="Parallax2D" parent="."] -z_index = -15 -scroll_scale = Vector2(0.46, 1) -repeat_size = Vector2(1024, 0) -repeat_times = 2 +[node name="Middle" type="Parallax2D" parent="."] +z_index = -24 +scroll_scale = Vector2(0.34, 1) +repeat_times = 3 -[node name="Strip" type="Sprite2D" parent="NearBuildings"] +[node name="Normal" type="Sprite2D" parent="Middle"] +centered = false + +[node name="Mirrored" type="Sprite2D" parent="Middle"] +centered = false + +[node name="Near" type="Parallax2D" parent="."] +z_index = -18 +scroll_scale = Vector2(0.63, 1) +repeat_times = 3 + +[node name="Normal" type="Sprite2D" parent="Near"] +centered = false + +[node name="Mirrored" type="Sprite2D" parent="Near"] centered = false -texture_filter = 1 -texture = ExtResource("art_skyline_mid") diff --git a/world/backgrounds/painted_hall.gd b/world/backgrounds/painted_hall.gd new file mode 100644 index 0000000..4efbc13 --- /dev/null +++ b/world/backgrounds/painted_hall.gd @@ -0,0 +1,58 @@ +@tool +extends TextureRect +class_name PaintedHall + +## Mural con profundidad real dentro de los limites de una sala. La camara +## recorre una pintura grande lentamente; columnas y plataformas siguen al mundo. +## No se estira una ilustracion sobre toda la altura de una torre. +const HALL_SHADER: Shader = preload("res://world/backgrounds/painted_hall.gdshader") + +@export var parallax_ratio: Vector2 = Vector2(0.24, 0.18): + set(value): + parallax_ratio = value + _update_layout() +@export var composition_offset: Vector2 = Vector2(0.0, 160.0): + set(value): + composition_offset = value + _update_layout() +@export_range(0.25, 2.0, 0.05) var art_scale: float = 1.0: + set(value): + art_scale = maxf(value, 0.25) + _update_layout() + +var _hall_material: ShaderMaterial +var _last_camera_local: Vector2 = Vector2.INF + + +func _ready() -> void: + mouse_filter = Control.MOUSE_FILTER_IGNORE + texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST + expand_mode = TextureRect.EXPAND_IGNORE_SIZE + _hall_material = ShaderMaterial.new() + _hall_material.shader = HALL_SHADER + material = _hall_material + resized.connect(_update_layout) + _update_layout() + if Engine.is_editor_hint(): + _hall_material.set_shader_parameter("camera_local", size * 0.5) + set_process(false) + + +func _update_layout() -> void: + if _hall_material == null: + return + _hall_material.set_shader_parameter("panel_size", size) + _hall_material.set_shader_parameter("parallax_ratio", parallax_ratio) + _hall_material.set_shader_parameter("composition_offset", composition_offset) + _hall_material.set_shader_parameter("art_scale", art_scale) + + +func _process(_delta: float) -> void: + var camera: Camera2D = get_viewport().get_camera_2d() + if camera == null: + return + var local_position: Vector2 = get_global_transform().affine_inverse() * camera.get_screen_center_position() + if local_position.is_equal_approx(_last_camera_local): + return + _last_camera_local = local_position + _hall_material.set_shader_parameter("camera_local", local_position) diff --git a/world/backgrounds/painted_hall.gdshader b/world/backgrounds/painted_hall.gdshader new file mode 100644 index 0000000..c6488f5 --- /dev/null +++ b/world/backgrounds/painted_hall.gdshader @@ -0,0 +1,23 @@ +shader_type canvas_item; +render_mode unshaded; + +uniform vec2 panel_size = vec2(1280.0, 720.0); +uniform vec2 camera_local = vec2(640.0, 360.0); +uniform vec2 parallax_ratio = vec2(0.24, 0.18); +uniform vec2 composition_offset = vec2(0.0, 160.0); +uniform float art_scale = 1.0; +varying vec4 vertex_tint; + +void vertex() { + vertex_tint = COLOR; +} + +void fragment() { + vec2 art_size = vec2(textureSize(TEXTURE, 0)) * art_scale; + vec2 p = UV * panel_size + camera_local * (parallax_ratio - vec2(1.0)) + composition_offset; + vec2 uv = p / art_size; + float mirrored = mod(floor(uv.x), 2.0); + uv.x = mix(fract(uv.x), 1.0 - fract(uv.x), mirrored); + uv.y = clamp(uv.y, 0.001, 0.999); + COLOR = texture(TEXTURE, uv) * vertex_tint; +} diff --git a/world/props/altar.tscn b/world/props/altar.tscn new file mode 100644 index 0000000..91745a1 --- /dev/null +++ b/world/props/altar.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/altar.png" id="texture"] + +[node name="Altar" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(160, 148) +draw_layer = -2 +tint = Color(0.78, 0.75, 0.82, 1) +collision_enabled = false diff --git a/world/props/amplifier.tscn b/world/props/amplifier.tscn new file mode 100644 index 0000000..ee95ae7 --- /dev/null +++ b/world/props/amplifier.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/amplifier.png" id="texture"] + +[node name="Amplifier" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(76, 80) +draw_layer = -2 +collision_enabled = false diff --git a/world/props/banner.tscn b/world/props/banner.tscn new file mode 100644 index 0000000..4708f28 --- /dev/null +++ b/world/props/banner.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/banner.png" id="texture"] + +[node name="Banner" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(112, 152) +draw_layer = -2 +tint = Color(0.80, 0.77, 0.82, 1) +collision_enabled = false diff --git a/world/props/barrel.tscn b/world/props/barrel.tscn index 227884b..68685e5 100644 --- a/world/props/barrel.tscn +++ b/world/props/barrel.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/props/barrel.svg" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/barrel.png" id="texture"] [node name="Barrel" instance=ExtResource("base")] texture = ExtResource("texture") display_size = Vector2(64, 80) diff --git a/world/props/bench.tscn b/world/props/bench.tscn index a691fde..de9b877 100644 --- a/world/props/bench.tscn +++ b/world/props/bench.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/props/bench.svg" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/altar.png" id="texture"] [node name="Bench" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(160, 84) +display_size = Vector2(160, 148) draw_layer = -2 collision_enabled = false collision_dimensions = Vector2(152, 60) diff --git a/world/props/column.tscn b/world/props/column.tscn new file mode 100644 index 0000000..77dd2e4 --- /dev/null +++ b/world/props/column.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/column.png" id="texture"] + +[node name="Column" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(96, 244) +draw_layer = -2 +tint = Color(0.77, 0.73, 0.80, 1) +collision_enabled = false diff --git a/world/props/crate.tscn b/world/props/crate.tscn index 0cc18e5..e68c878 100644 --- a/world/props/crate.tscn +++ b/world/props/crate.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/props/crate.svg" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/crate.png" id="texture"] [node name="Crate" instance=ExtResource("base")] texture = ExtResource("texture") display_size = Vector2(64, 64) diff --git a/world/props/facade_01.tscn b/world/props/facade_01.tscn index e828c98..587f0f1 100644 --- a/world/props/facade_01.tscn +++ b/world/props/facade_01.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/facade_01.png" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/column.png" id="texture"] [node name="Facade01" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(216, 490) +display_size = Vector2(160, 406) draw_layer = -8 collision_enabled = false collision_dimensions = Vector2(216, 490) diff --git a/world/props/facade_02.tscn b/world/props/facade_02.tscn index f1e4133..ddc7dca 100644 --- a/world/props/facade_02.tscn +++ b/world/props/facade_02.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/facade_02.png" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/statue.png" id="texture"] [node name="Facade02" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(188, 414) +display_size = Vector2(176, 358) draw_layer = -8 collision_enabled = false collision_dimensions = Vector2(188, 414) diff --git a/world/props/facade_03.tscn b/world/props/facade_03.tscn index 321f653..336947a 100644 --- a/world/props/facade_03.tscn +++ b/world/props/facade_03.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/facade_03.png" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/banner.png" id="texture"] [node name="Facade03" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(264, 544) +display_size = Vector2(180, 244) draw_layer = -8 collision_enabled = false collision_dimensions = Vector2(264, 544) diff --git a/world/props/facade_04.tscn b/world/props/facade_04.tscn index 1751ba0..59f8e1c 100644 --- a/world/props/facade_04.tscn +++ b/world/props/facade_04.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/facade_04.png" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/city_mid.png" id="texture"] [node name="Facade04" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(224, 446) +display_size = Vector2(800, 400) draw_layer = -8 collision_enabled = false collision_dimensions = Vector2(224, 446) diff --git a/world/props/facade_05.tscn b/world/props/facade_05.tscn index 65bcee8..7708fec 100644 --- a/world/props/facade_05.tscn +++ b/world/props/facade_05.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/facade_05.png" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/altar.png" id="texture"] [node name="Facade05" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(278, 590) +display_size = Vector2(240, 222) draw_layer = -8 collision_enabled = false collision_dimensions = Vector2(278, 590) diff --git a/world/props/facade_06.tscn b/world/props/facade_06.tscn index 32a7022..6a89f3f 100644 --- a/world/props/facade_06.tscn +++ b/world/props/facade_06.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/facade_06.png" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/amplifier.png" id="texture"] [node name="Facade06" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(240, 514) +display_size = Vector2(152, 160) draw_layer = -8 collision_enabled = false collision_dimensions = Vector2(240, 514) diff --git a/world/props/fence.tscn b/world/props/fence.tscn new file mode 100644 index 0000000..4dc4208 --- /dev/null +++ b/world/props/fence.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/fence.png" id="texture"] + +[node name="Fence" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(208, 204) +draw_layer = -2 +tint = Color(0.62, 0.63, 0.72, 1) +collision_enabled = false diff --git a/world/props/ivy.tscn b/world/props/ivy.tscn new file mode 100644 index 0000000..1b72da7 --- /dev/null +++ b/world/props/ivy.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/ivy.png" id="texture"] + +[node name="Ivy" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(120, 128) +draw_layer = -2 +collision_enabled = false diff --git a/world/props/rock.tscn b/world/props/rock.tscn index 01a3933..0c8c226 100644 --- a/world/props/rock.tscn +++ b/world/props/rock.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/props/rock.svg" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/rubble.png" id="texture"] [node name="Rock" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(80, 48) +display_size = Vector2(96, 60) draw_layer = -2 collision_enabled = true collision_dimensions = Vector2(64, 40) diff --git a/world/props/rubble.tscn b/world/props/rubble.tscn new file mode 100644 index 0000000..1556645 --- /dev/null +++ b/world/props/rubble.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/rubble.png" id="texture"] + +[node name="Rubble" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(96, 60) +draw_layer = -2 +collision_enabled = false diff --git a/world/props/statue.tscn b/world/props/statue.tscn new file mode 100644 index 0000000..c229fa0 --- /dev/null +++ b/world/props/statue.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/statue.png" id="texture"] + +[node name="Statue" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(120, 244) +draw_layer = -2 +tint = Color(0.70, 0.70, 0.78, 1) +collision_enabled = false diff --git a/world/props/streetlamp.tscn b/world/props/streetlamp.tscn index b75862e..98e25a8 100644 --- a/world/props/streetlamp.tscn +++ b/world/props/streetlamp.tscn @@ -1,10 +1,16 @@ -[gd_scene load_steps=3 format=3] +[gd_scene load_steps=4 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/streetlamp.png" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/candelabra.png" id="texture"] +[ext_resource type="PackedScene" path="res://world/props/votive_glow.tscn" id="glow"] [node name="Streetlamp" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(96, 352) +display_size = Vector2(82, 168) draw_layer = -2 collision_enabled = false collision_dimensions = Vector2(16, 320) collision_offset = Vector2(0, -160) + +[node name="CandleGlow" parent="." instance=ExtResource("glow")] +position = Vector2(0, -142) +texture_scale = 1.7 +base_energy = 0.32 diff --git a/world/props/tombstone.tscn b/world/props/tombstone.tscn new file mode 100644 index 0000000..1fd811a --- /dev/null +++ b/world/props/tombstone.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=3 format=3] +[ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/tombstone.png" id="texture"] + +[node name="Tombstone" instance=ExtResource("base")] +texture = ExtResource("texture") +display_size = Vector2(70, 82) +draw_layer = -2 +collision_enabled = false diff --git a/world/props/traffic_cone.tscn b/world/props/traffic_cone.tscn index b5b5fdd..53c40de 100644 --- a/world/props/traffic_cone.tscn +++ b/world/props/traffic_cone.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/props/traffic_cone.svg" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/tombstone.png" id="texture"] [node name="TrafficCone" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(48, 64) +display_size = Vector2(54, 64) draw_layer = -2 collision_enabled = false collision_dimensions = Vector2(36, 56) diff --git a/world/props/trash_bin.tscn b/world/props/trash_bin.tscn index 60d1852..9a6c898 100644 --- a/world/props/trash_bin.tscn +++ b/world/props/trash_bin.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/props/trash_bin.svg" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/amplifier.png" id="texture"] [node name="TrashBin" instance=ExtResource("base")] texture = ExtResource("texture") -display_size = Vector2(56, 76) +display_size = Vector2(76, 80) draw_layer = -2 collision_enabled = true collision_dimensions = Vector2(42, 72) diff --git a/world/props/votive_glow.gd b/world/props/votive_glow.gd new file mode 100644 index 0000000..3998bed --- /dev/null +++ b/world/props/votive_glow.gd @@ -0,0 +1,15 @@ +extends PointLight2D + +## Halo local del fuego pintado. La leve respiracion se detiene en pausa. +@export var base_energy: float = 0.45 +var _clock: float = 0.0 + + +func _ready() -> void: + _clock = fposmod(global_position.x * 0.017 + global_position.y * 0.009, TAU) + energy = base_energy + + +func _process(delta: float) -> void: + _clock += delta + energy = base_energy * (0.94 + sin(_clock * 2.1) * 0.04 + sin(_clock * 5.3) * 0.02) diff --git a/world/props/votive_glow.tscn b/world/props/votive_glow.tscn new file mode 100644 index 0000000..19553b9 --- /dev/null +++ b/world/props/votive_glow.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=4 format=3] + +[ext_resource type="Script" path="res://world/props/votive_glow.gd" id="script"] + +[sub_resource type="Gradient" id="radial"] +offsets = PackedFloat32Array(0, 0.25, 0.6, 1) +colors = PackedColorArray(1, 1, 1, 0.8, 1, 1, 1, 0.45, 1, 1, 1, 0.1, 1, 1, 1, 0) + +[sub_resource type="GradientTexture2D" id="halo"] +gradient = SubResource("radial") +width = 128 +height = 128 +fill = 1 +fill_from = Vector2(0.5, 0.5) +fill_to = Vector2(0.5, 1) + +[node name="VotiveGlow" type="PointLight2D"] +texture = SubResource("halo") +texture_scale = 1.2 +color = Color(1, 0.62, 0.29, 1) +energy = 0.45 +range_z_min = -10 +range_z_max = 6 +shadow_enabled = false +script = ExtResource("script") diff --git a/world/signs/sign_post.tscn b/world/signs/sign_post.tscn index a8a88c8..7e5c23d 100644 --- a/world/signs/sign_post.tscn +++ b/world/signs/sign_post.tscn @@ -1,12 +1,12 @@ [gd_scene load_steps=5 format=3] [ext_resource type="PackedScene" path="res://world/props/scenery_prop.tscn" id="base"] [ext_resource type="Script" path="res://world/signs/world_sign.gd" id="script"] -[ext_resource type="Texture2D" path="res://assets/props/sign_board.svg" id="texture"] +[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="texture"] [ext_resource type="FontFile" path="res://assets/fonts/PixelOperator8.ttf" id="font"] [node name="SignPost" instance=ExtResource("base")] script = ExtResource("script") texture = ExtResource("texture") -display_size = Vector2(240, 144) +display_size = Vector2(240, 104) collision_dimensions = Vector2(20, 144) collision_offset = Vector2(0, -72) [node name="Text" type="Label" parent="."] diff --git a/world/signs/world_sign.gd b/world/signs/world_sign.gd index 8511852..56b7a67 100644 --- a/world/signs/world_sign.gd +++ b/world/signs/world_sign.gd @@ -29,5 +29,8 @@ func _refresh() -> void: label.text = text label.add_theme_font_size_override("font_size", font_size) label.add_theme_color_override("font_color", text_color) - label.position = Vector2(-display_size.x * 0.5 + 10.0, -display_size.y + 8.0) - label.size = Vector2(maxf(display_size.x - 20.0, 1.0), maxf(display_size.y * 0.60 - 16.0, 1.0)) + label.add_theme_color_override("font_shadow_color", Color(0.025, 0.02, 0.04, 1.0)) + label.add_theme_constant_override("shadow_offset_x", 1) + label.add_theme_constant_override("shadow_offset_y", 1) + label.position = Vector2(-display_size.x * 0.5 + 10.0, -display_size.y + 12.0) + label.size = Vector2(maxf(display_size.x - 20.0, 1.0), maxf(display_size.y - 24.0, 1.0)) diff --git a/world/terrain/ground.tscn b/world/terrain/ground.tscn index 3ceb6c9..dd80fee 100644 --- a/world/terrain/ground.tscn +++ b/world/terrain/ground.tscn @@ -1,8 +1,12 @@ -[gd_scene load_steps=4 format=3] +[gd_scene load_steps=5 format=3] [ext_resource type="PackedScene" path="res://world/terrain/terrain_piece.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/asphalt.png" id="fill"] -[ext_resource type="Texture2D" path="res://assets/city/curb.png" id="top"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/stone_fill.png" id="fill"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/stone_cap.png" id="top"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/platform_skulls.png" id="fascia"] [node name="Ground" instance=ExtResource("base")] dimensions = Vector2(512, 256) fill_texture = ExtResource("fill") top_texture = ExtResource("top") +top_height = 16.0 +fascia_texture = ExtResource("fascia") +fascia_height = 54.0 diff --git a/world/terrain/platform.tscn b/world/terrain/platform.tscn index 2e7e1d6..87d2480 100644 --- a/world/terrain/platform.tscn +++ b/world/terrain/platform.tscn @@ -1,7 +1,9 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/terrain/terrain_piece.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/walkway.png" id="fill"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/platform.png" id="fill"] [node name="Platform" instance=ExtResource("base")] dimensions = Vector2(240, 20) fill_texture = ExtResource("fill") +fascia_texture = ExtResource("fill") +fascia_height = 54.0 one_way = true diff --git a/world/terrain/solid_block.tscn b/world/terrain/solid_block.tscn index 95a44a3..5e69eb4 100644 --- a/world/terrain/solid_block.tscn +++ b/world/terrain/solid_block.tscn @@ -1,5 +1,6 @@ -[gd_scene load_steps=2 format=3] +[gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/terrain/terrain_piece.tscn" id="base"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/stone_fill.png" id="stone"] [node name="SolidBlock" instance=ExtResource("base")] -outline_color = Color(0.93, 0.94, 1, 0.6) +fill_texture = ExtResource("stone") diff --git a/world/terrain/terrain_piece.gd b/world/terrain/terrain_piece.gd index d40e1ba..c8552a3 100644 --- a/world/terrain/terrain_piece.gd +++ b/world/terrain/terrain_piece.gd @@ -40,15 +40,25 @@ extends StaticBody2D set(value): top_texture = value _queue_refresh() +## Friso que cuelga bajo una plataforma. Es decorativo: la linea superior +## y la colision conservan exactamente las medidas de Geometry. +@export var fascia_texture: Texture2D: + set(value): + fascia_texture = value + _queue_refresh() +@export_range(0.0, 128.0, 1.0) var fascia_height: float = 0.0: + set(value): + fascia_height = maxf(value, 0.0) + _queue_refresh() @export_range(1.0, 128.0, 1.0) var top_height: float = 24.0: set(value): top_height = value _queue_refresh() -@export var fill_color: Color = Color(0.32, 0.57, 0.79): +@export var fill_color: Color = Color(0.20, 0.18, 0.23): set(value): fill_color = value _queue_refresh() -@export var outline_color: Color = Color(0.93, 0.94, 1.0, 0.0): +@export var outline_color: Color = Color(0.72, 0.63, 0.47, 0.0): set(value): outline_color = value queue_redraw() @@ -103,6 +113,27 @@ func _refresh() -> void: top.position = -half top.region_rect = Rect2(Vector2.ZERO, Vector2(dimensions.x, minf(top_height, dimensions.y))) top.visible = top_texture != null + var fascia: Sprite2D = get_node_or_null("Fascia") as Sprite2D + if fascia != null: + fascia.texture = fascia_texture + fascia.position = -half + fascia.region_rect = Rect2(Vector2.ZERO, Vector2(dimensions.x, fascia_height)) + fascia.visible = fascia_texture != null and fascia_height > 0.0 + # La luz del canto se pierde hacia el subsuelo. Se calcula una sola vez, + # en la misma geometria que la colision, sin shaders por baldosa. + var shade: Polygon2D = get_node_or_null("DepthShade") as Polygon2D + if shade != null: + var shaded_top: float = -half.y + minf(28.0, dimensions.y) + shade.polygon = PackedVector2Array([ + Vector2(-half.x, shaded_top), Vector2(half.x, shaded_top), + Vector2(half.x, half.y), Vector2(-half.x, half.y), + ]) + var depth: float = minf(0.74, dimensions.y / 600.0) + shade.vertex_colors = PackedColorArray([ + Color(0.06, 0.045, 0.085, 0.0), Color(0.06, 0.045, 0.085, 0.0), + Color(0.06, 0.045, 0.085, depth), Color(0.06, 0.045, 0.085, depth), + ]) + shade.visible = fill_texture != null and dimensions.y > 48.0 queue_redraw() update_configuration_warnings() diff --git a/world/terrain/terrain_piece.tscn b/world/terrain/terrain_piece.tscn index 87fee5e..f5458bc 100644 --- a/world/terrain/terrain_piece.tscn +++ b/world/terrain/terrain_piece.tscn @@ -10,12 +10,17 @@ collision_mask = 0 script = ExtResource("script") [node name="Fill" type="Polygon2D" parent="."] polygon = PackedVector2Array(-128, -32, 128, -32, 128, 32, -128, 32) -color = Color(0.32, 0.57, 0.79, 1) +color = Color(0.20, 0.18, 0.23, 1) [node name="Texture" type="Sprite2D" parent="."] texture_repeat = 2 centered = false region_enabled = true region_rect = Rect2(0, 0, 256, 64) +[node name="Fascia" type="Sprite2D" parent="."] +texture_repeat = 2 +centered = false +region_enabled = true +region_rect = Rect2(0, 0, 256, 54) [node name="Top" type="Sprite2D" parent="."] texture_repeat = 2 centered = false @@ -23,3 +28,7 @@ region_enabled = true region_rect = Rect2(0, 0, 256, 24) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("shape") + +[node name="DepthShade" type="Polygon2D" parent="."] +polygon = PackedVector2Array(-128, -4, 128, -4, 128, 32, -128, 32) +vertex_colors = PackedColorArray(0.06, 0.045, 0.085, 0, 0.06, 0.045, 0.085, 0, 0.06, 0.045, 0.085, 0.1, 0.06, 0.045, 0.085, 0.1) diff --git a/world/terrain/wall.tscn b/world/terrain/wall.tscn index df734cd..0a578f7 100644 --- a/world/terrain/wall.tscn +++ b/world/terrain/wall.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=3 format=3] [ext_resource type="PackedScene" path="res://world/terrain/terrain_piece.tscn" id="base"] -[ext_resource type="Texture2D" path="res://assets/city/barrier.png" id="fill"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/abbey_wall.png" id="fill"] [node name="Wall" instance=ExtResource("base")] dimensions = Vector2(48, 320) fill_texture = ExtResource("fill") diff --git a/world/triggers/kill_gate.tscn b/world/triggers/kill_gate.tscn index f0ac6a5..e76f0e7 100644 --- a/world/triggers/kill_gate.tscn +++ b/world/triggers/kill_gate.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=5 format=3] [ext_resource type="Script" path="res://world/triggers/kill_gate.gd" id="gate"] -[ext_resource type="Script" path="res://world/triggers/ossuary_gate_visual.gd" id="visual"] +[ext_resource type="PackedScene" path="res://world/triggers/ossuary_gate_visual.tscn" id="visual"] [sub_resource type="RectangleShape2D" id="gate_collision"] size = Vector2(44, 220) @@ -17,8 +17,7 @@ script = ExtResource("gate") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("gate_collision") -[node name="Visual" type="Node2D" parent="."] -script = ExtResource("visual") +[node name="Visual" parent="." instance=ExtResource("visual")] [node name="Sensor" type="Area2D" parent="."] position = Vector2(-40, 0) diff --git a/world/triggers/ossuary_gate_visual.gd b/world/triggers/ossuary_gate_visual.gd index 689c230..6d3bcce 100644 --- a/world/triggers/ossuary_gate_visual.gd +++ b/world/triggers/ossuary_gate_visual.gd @@ -1,22 +1,27 @@ @tool extends Node2D class_name OssuaryGateVisual -## Porton de calaveras provisional: hojas de hierro, cadenas, sello y apertura -## lateral animada. No controla las muertes ni las colisiones del nivel. + +## Porton raster: las dos hojas de hierro se repliegan detras de las columnas. +## Solo anima sprites ya cargados. KillGate conserva todo el contrato de combate +## y retira su colision exclusivamente al recibir fully_open. signal fully_open @export_range(0.2, 4.0, 0.1) var open_duration: float = 1.15 var _unlocked: bool = false var _progress: float = 0.0 -var _elapsed: float = 0.0 var _signalled: bool = false -const STONE: Color = Color(0.24, 0.22, 0.29) -const STONE_EDGE: Color = Color(0.53, 0.49, 0.59) -const IRON: Color = Color(0.12, 0.12, 0.19) -const IRON_EDGE: Color = Color(0.53, 0.58, 0.63) -const BONE: Color = Color(0.90, 0.84, 0.71) +@onready var _left_leaf: Sprite2D = $LeftLeaf +@onready var _right_leaf: Sprite2D = $RightLeaf +@onready var _seal: Sprite2D = $Seal +@onready var _glow: PointLight2D = $SealGlow + + +func _ready() -> void: + _update_visuals() + set_process(_unlocked and not Engine.is_editor_hint()) func set_unlocked(value: bool) -> void: @@ -25,135 +30,29 @@ func set_unlocked(value: bool) -> void: _unlocked = value if not value: _signalled = false + if not Engine.is_editor_hint(): + set_process(true) func _process(delta: float) -> void: - if Engine.is_editor_hint(): - # Preview fija en el editor; animacion real solo durante la partida. - queue_redraw() - return - _elapsed += delta - _progress = move_toward(_progress, 1.0 if _unlocked else 0.0, delta / open_duration) + _progress = move_toward(_progress, 1.0 if _unlocked else 0.0, + delta / maxf(open_duration, 0.01)) + _update_visuals() if _unlocked and _progress >= 1.0 and not _signalled: _signalled = true fully_open.emit() - queue_redraw() + if is_equal_approx(_progress, 1.0 if _unlocked else 0.0): + set_process(false) -func _draw() -> void: - var pale: Color = Color(0.45, 1.0, 0.85) if _unlocked else Color(1.0, 0.33, 0.31) - var pulse: float = 0.6 + 0.4 * sin(_elapsed * 4.0) - - # Sombra y vacio de la cripta. El resplandor se vuelve verde al abrir. - draw_colored_polygon(PackedVector2Array([ - Vector2(-96, 116), Vector2(-96, -62), Vector2(-91, -89), - Vector2(-72, -120), Vector2(-40, -142), Vector2(0, -150), - Vector2(40, -142), Vector2(72, -120), Vector2(91, -89), - Vector2(96, -62), Vector2(96, 116) - ]), Color(0.055, 0.05, 0.092)) - draw_rect(Rect2(Vector2(-65, -89), Vector2(130, 198)), Color(0.025, 0.06 + 0.04 * pulse, 0.08)) - draw_circle(Vector2(0, 6), 42.0, Color(pale.r, pale.g, pale.b, 0.10 + 0.08 * pulse)) - - # Las hojas se deslizan a los lados y dejan pasar al personaje. - for side: int in [-1, 1]: - _draw_leaf(side, side * (31.0 + 60.0 * _progress), pale, pulse) - - # Marco principal de bloques de piedra, dibujado por delante de las hojas. - for side: int in [-1, 1]: - var x: float = -91.0 if side < 0 else 65.0 - draw_rect(Rect2(Vector2(x, -93), Vector2(26, 211)), STONE) - draw_rect(Rect2(Vector2(x + (20 if side < 0 else 0), -88), Vector2(6, 204)), STONE_EDGE.darkened(0.25)) - for i: int in range(5): - draw_line(Vector2(x, -69 + i * 39), Vector2(x + 26, -69 + i * 39), Color(0.11, 0.11, 0.17), 2.0) - _draw_skull(Vector2(side * 78.0, -46.0), 0.38, pale) - # Arco de piedra, moldura y remaches. - draw_arc(Vector2(0, -61), 91.0, PI, TAU, 45, STONE, 25.0) - draw_arc(Vector2(0, -61), 91.0, PI, TAU, 45, STONE_EDGE, 5.0) - draw_arc(Vector2(0, -61), 65.0, PI, TAU, 40, Color(0.66, 0.58, 0.76), 4.0) - for i: int in range(9): - var angle: float = PI + float(i) * PI / 8.0 - var point: Vector2 = Vector2(cos(angle), sin(angle)) * 88.0 + Vector2(0, -61) - draw_circle(point, 4.0, Color(0.12, 0.11, 0.18)) - draw_rect(Rect2(Vector2(-105, 109), Vector2(210, 15)), STONE) - draw_line(Vector2(-103, 109), Vector2(103, 109), STONE_EDGE, 4.0) - - # El craneo principal domina el umbral. Cuernos y huesos cruzados. - _draw_bone(Vector2(-31, -149), Vector2(31, -122), 5.0) - _draw_bone(Vector2(31, -149), Vector2(-31, -122), 5.0) - _draw_skull(Vector2(0.0, -131.0), 0.76, pale) - for side: int in [-1, 1]: - draw_line(Vector2(side * 41, -127), Vector2(side * 60, -147), STONE_EDGE, 5.0) - draw_line(Vector2(side * 60, -147), Vector2(side * 52, -116), STONE_EDGE, 4.0) - - if _progress < 0.97: - # Cadenas y cerradura central; desaparecen al romper el sello. - var opacity: float = 1.0 - _progress - for i: int in range(6): - var y: float = -44.0 + i * 23.0 - draw_arc(Vector2(-4 + (i % 2) * 8, y), 10.0, 0, TAU, 18, Color(0.75, 0.72, 0.76, opacity), 4.0) - draw_rect(Rect2(Vector2(-18, 22), Vector2(36, 41)), Color(0.26, 0.16, 0.30, opacity)) - draw_rect(Rect2(Vector2(-14, 27), Vector2(28, 28)), Color(0.63, 0.50, 0.71, opacity), false, 3.0) - draw_circle(Vector2(0, 42), 7.0 + pulse * 2.0, Color(pale.r, pale.g, pale.b, opacity)) - if _progress > 0.0 and _progress < 1.0: - # Chispas del sello mientras se desliza la puerta. - for i: int in range(7): - var a: float = float(i) * TAU / 7.0 + _elapsed * 2.5 - var r: float = 18.0 + _progress * 80.0 - draw_circle(Vector2(cos(a) * r, sin(a) * r * 0.55), 2.0 + i % 3, Color(0.75, 1.0, 0.82, 1.0 - _progress)) - - -func _draw_leaf(side: int, cx: float, glow: Color, pulse: float) -> void: - var x: float = cx - 30.0 - # Acero viejo con barras, remaches y espinas, no un simple rectangulo. - draw_rect(Rect2(Vector2(x, -94), Vector2(60, 205)), IRON) - draw_rect(Rect2(Vector2(x + 4, -90), Vector2(52, 197)), Color(0.20, 0.18, 0.26), false, 4.0) - for j: int in range(4): - var bar_x: float = x + 10 + j * 13 - draw_line(Vector2(bar_x, -86), Vector2(bar_x, 106), IRON_EDGE.darkened(0.30), 5.0) - draw_line(Vector2(bar_x + 1, -86), Vector2(bar_x + 1, 106), Color(0.09, 0.08, 0.14), 2.0) - # Punta de lanza en cada barra. - draw_colored_polygon(PackedVector2Array([ - Vector2(bar_x - 5, -85), Vector2(bar_x, -104), Vector2(bar_x + 5, -85) - ]), IRON_EDGE) - for j: int in range(4): - var y: float = -65 + j * 52 - draw_rect(Rect2(Vector2(x + 4, y), Vector2(52, 8)), Color(0.34, 0.31, 0.40)) - for i: int in range(3): - draw_circle(Vector2(x + 13 + i * 17, y + 4), 2.0, Color(0.70, 0.66, 0.67)) - # Huesos cruzados y craneo tallado sobre cada hoja. - _draw_bone(Vector2(cx - 18, -38), Vector2(cx + 18, 12), 5.0) - _draw_bone(Vector2(cx + 18, -38), Vector2(cx - 18, 12), 5.0) - _draw_skull(Vector2(cx, -12), 0.70, glow) - # Grietas en la madera ennegrecida, pulso espectral. - draw_line(Vector2(cx - 20, 58), Vector2(cx - 6, 69), Color(glow.r, glow.g, glow.b, 0.48 * pulse), 3.0) - draw_line(Vector2(cx - 6, 69), Vector2(cx + 5, 64), Color(glow.r, glow.g, glow.b, 0.48 * pulse), 3.0) - draw_line(Vector2(cx + 5, 64), Vector2(cx + 16, 88), Color(glow.r, glow.g, glow.b, 0.48 * pulse), 3.0) - - -func _draw_bone(a: Vector2, b: Vector2, width: float) -> void: - draw_line(a, b, BONE.darkened(0.18), width) - for end: Vector2 in [a, b]: - draw_circle(end + Vector2(-2, 0), width * 0.56, BONE) - draw_circle(end + Vector2(2, 0), width * 0.56, BONE) - - -func _draw_skull(center: Vector2, scale_value: float, glow: Color) -> void: - var r: float = 26.0 * scale_value - var skull: Color = BONE - # Silueta ancha en la frente y mandibula con dientes individuales. - draw_circle(center + Vector2(0, -4 * scale_value), r, Color(0.28, 0.24, 0.29)) - draw_circle(center + Vector2(0, -5 * scale_value), r - 2.0, skull) - draw_rect(Rect2(center + Vector2(-r * 0.56, r * 0.38), Vector2(r * 1.12, r * 0.72)), skull) - for side: int in [-1, 1]: - var eye: Vector2 = center + Vector2(side * r * 0.43, -r * 0.15) - draw_circle(eye, r * 0.30, Color(0.07, 0.06, 0.13)) - draw_circle(eye, r * 0.12, glow) - draw_colored_polygon(PackedVector2Array([ - center + Vector2(0, r * 0.10), - center + Vector2(-r * 0.20, r * 0.46), - center + Vector2(r * 0.20, r * 0.46) - ]), Color(0.12, 0.08, 0.16)) - for tooth: int in range(4): - var xx: float = center.x - r * 0.42 + tooth * r * 0.28 - draw_line(Vector2(xx, center.y + r * 0.60), Vector2(xx, center.y + r * 1.03), Color(0.35, 0.32, 0.33), maxf(1.0, 2.0 * scale_value)) - draw_line(center + Vector2(-r * 0.55, -r * 0.70), center + Vector2(-r * 0.12, -r * 0.83), Color.WHITE, maxf(1.0, 2.0 * scale_value)) +func _update_visuals() -> void: + if not is_instance_valid(_left_leaf): + return + var eased: float = smoothstep(0.0, 1.0, _progress) + _left_leaf.position.x = roundf(-40.0 - 74.0 * eased) + _right_leaf.position.x = roundf(40.0 + 74.0 * eased) + _left_leaf.scale.x = lerpf(1.0, 0.28, eased) + _right_leaf.scale.x = lerpf(1.0, 0.28, eased) + _seal.modulate.a = 1.0 - minf(eased * 2.0, 1.0) + _glow.color = Color(1.0, 0.39, 0.21).lerp(Color(0.37, 0.84, 0.72), eased) + _glow.set("base_energy", lerpf(0.24, 0.38, eased)) diff --git a/world/triggers/ossuary_gate_visual.tscn b/world/triggers/ossuary_gate_visual.tscn new file mode 100644 index 0000000..9ca4518 --- /dev/null +++ b/world/triggers/ossuary_gate_visual.tscn @@ -0,0 +1,65 @@ +[gd_scene load_steps=10 format=3] + +[ext_resource type="Script" path="res://world/triggers/ossuary_gate_visual.gd" id="script"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/fence.png" id="iron"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/column.png" id="column"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/stone_cap.png" id="stone"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/banner.png" id="seal"] +[ext_resource type="Texture2D" path="res://assets/ashen/environment/gate_arch.png" id="arch"] +[ext_resource type="PackedScene" path="res://world/props/votive_glow.tscn" id="glow"] + +[sub_resource type="AtlasTexture" id="left_iron"] +atlas = ExtResource("iron") +region = Rect2(24, 0, 80, 204) + +[sub_resource type="AtlasTexture" id="right_iron"] +atlas = ExtResource("iron") +region = Rect2(104, 0, 80, 204) + +[node name="OssuaryGateVisual" type="Node2D"] +texture_filter = 1 +script = ExtResource("script") + +[node name="LeftLeaf" type="Sprite2D" parent="."] +position = Vector2(-40, 8) +texture = SubResource("left_iron") + +[node name="RightLeaf" type="Sprite2D" parent="."] +position = Vector2(40, 8) +texture = SubResource("right_iron") + +[node name="Seal" type="Sprite2D" parent="."] +position = Vector2(0, 8) +scale = Vector2(0.375, 0.375) +texture = ExtResource("seal") + +[node name="ColumnLeft" type="Sprite2D" parent="."] +position = Vector2(-96, -12) +scale = Vector2(0.58, 1) +texture = ExtResource("column") +self_modulate = Color(0.8, 0.75, 0.82, 1) + +[node name="ColumnRight" type="Sprite2D" parent="."] +position = Vector2(96, -12) +scale = Vector2(0.58, 1) +texture = ExtResource("column") +flip_h = true +self_modulate = Color(0.8, 0.75, 0.82, 1) + +[node name="Arch" type="Sprite2D" parent="."] +position = Vector2(0, -132) +texture = ExtResource("arch") +self_modulate = Color(0.8, 0.75, 0.82, 1) + +[node name="Threshold" type="Sprite2D" parent="."] +position = Vector2(-134, 110) +texture = ExtResource("stone") +centered = false +region_enabled = true +region_rect = Rect2(0, 0, 268, 16) + +[node name="SealGlow" parent="." instance=ExtResource("glow")] +position = Vector2(0, 8) +color = Color(1, 0.39, 0.21, 1) +texture_scale = 1.5 +base_energy = 0.24