diff --git a/assets/characters/band/README.md b/assets/characters/band/README.md index 1e921bd..5f04c8f 100644 --- a/assets/characters/band/README.md +++ b/assets/characters/band/README.md @@ -1,25 +1,27 @@ -# Arte de la banda — vectorial con ADN pixel-art +# Arte de la banda — atlas vectoriales con identidad por personaje -Los cuatro SVG de esta carpeta contienen **40 fotogramas en celdas de 64 × 64** -(atlas 512 × 320). Se ha abandonado el arte de rectangulos puros en favor de -contornos redondeados, paleta corta, sombras y brillos con planos de color. -Aparecen piernas con rodilla/tobillo, contacto de ambos pies en la marcha, -contrabalanceo de brazos y distintas poses para salto, dano, ataques y solo. +Los cuatro atlas contienen 40 fotogramas en celdas de 64 × 64 (512 × 320). +La silueta conserva la escala del mundo y el origen de los pies. Esta pasada +refuerza los rasgos que permiten reconocer a cada músico incluso a tamaño real: -- Diego: chaqueta granate, melena oscura y guitarra roja. -- Ivan: banda roja, vestuario azul y baquetas. -- Fer: pelo largo, prendas moradas y bajo verde. -- Hector: cresta rubia, verde oscuro y microfono. +- **Diego / guitarra:** melena castaña muy larga, barba abundante y chaleco + vaquero oscuro con costuras y remaches; guitarra eléctrica roja de seis cuerdas. +- **Iván / batería:** pelo negro liso, camiseta negra con insignia roja, vaqueros + y dos baquetas claras en las poses de especial. +- **Fer / bajo:** pelo oscuro rizado, ropa negra/morada, cadena y herrajes; bajo + verde de cuatro cuerdas. No lleva baquetas. +- **Héctor / voz:** melena rubia larga, chaqueta oscura con solapas y hebillas, + botas y micrófono metálico. -No se alteran vida, dano, velocidad, colisiones ni los tiempos del punetazo. -`player/characters/animations/*_frames.tres` contiene los fotogramas existentes; -`player/player.gd` adapta la velocidad visual de marcha a la velocidad real. -El Sprite2D usa filtrado lineal: no son pixels gigantes dibujados con nearest. +Se conserva la cuadrícula 8×5, las 40 regiones, las animaciones registradas y +los tiempos de combate. El generador no cambia colisiones, estadísticas, +velocidades ni ventanas de daño. El acabado usa contorno, sombras y luces +vectoriales controladas para integrarse con los fondos pixel-art del juego. **Fuente para regenerar:** `python tools/generate_vector_character_art.py` -(solo biblioteca estandar). `python tools/generate_band_art.py` es un alias. -Regenerar sobrescribe estos SVG y tambien los atlas/recursos de los enemigos; -si haces retoques manuales, guarda los cambios antes de ejecutar el generador. +(solo biblioteca estándar). `python tools/generate_band_art.py` es un alias. +El generador también vuelve a escribir los atlas y SpriteFrames de enemigos; +si haces retoques manuales, guarda los cambios antes de ejecutarlo. El motor carga los SVG y SpriteFrames versionados, no invoca Python ni depende de archivos o fuentes externos durante la partida. diff --git a/assets/characters/band/bassist.svg b/assets/characters/band/bassist.svg index 6d4d1d8..4678aee 100644 --- a/assets/characters/band/bassist.svg +++ b/assets/characters/band/bassist.svg @@ -2,9 +2,9 @@ Fer · Bajo · ilustración vectorial animada - - - + + + @@ -14,2194 +14,2960 @@ - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + + + + + + + + + + + + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + + + + + + + + + + + + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + + + + + - + - - + + diff --git a/assets/characters/band/drummer.svg b/assets/characters/band/drummer.svg index e17f96c..326b29e 100644 --- a/assets/characters/band/drummer.svg +++ b/assets/characters/band/drummer.svg @@ -2,9 +2,9 @@ Iván · Batería · ilustración vectorial animada - - - + + + @@ -16,37 +16,45 @@ - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -55,48 +63,56 @@ - - + + - + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -105,48 +121,56 @@ - - + + - + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -155,48 +179,56 @@ - - + + - + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -205,47 +237,55 @@ - - + + - + - - + + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -254,47 +294,55 @@ - - + + - + - - + + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -303,47 +351,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -352,47 +408,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -401,47 +465,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -450,47 +522,55 @@ - - + + - + - - + + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -499,46 +579,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -547,46 +635,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -595,46 +691,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -643,46 +747,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -691,47 +803,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -740,47 +860,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -789,47 +917,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -838,47 +974,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -887,47 +1031,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -936,46 +1088,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -984,48 +1144,58 @@ - - + + - - - + + + + + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1034,48 +1204,58 @@ - - + + - - - + + + + + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1084,46 +1264,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1132,46 +1320,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1180,48 +1376,56 @@ - - + + - + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1230,50 +1434,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1282,50 +1496,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1334,50 +1558,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1386,50 +1620,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1438,50 +1682,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1490,50 +1744,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1542,50 +1806,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1594,50 +1868,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1646,50 +1930,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1698,50 +1992,60 @@ - - + + - - - + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1750,49 +2054,59 @@ - - + + - - - + + + + + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1801,47 +2115,55 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1850,46 +2172,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1898,46 +2228,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1946,46 +2284,54 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - - - + + + + + + - + + + + + + - + @@ -1994,11 +2340,11 @@ - - + + - + diff --git a/assets/characters/band/guitarist.svg b/assets/characters/band/guitarist.svg index 796c1e6..4891e1a 100644 --- a/assets/characters/band/guitarist.svg +++ b/assets/characters/band/guitarist.svg @@ -2,9 +2,9 @@ Diego · Guitarra · ilustración vectorial animada - - - + + + @@ -14,1994 +14,2466 @@ - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + + + + + + + + + + + + + + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + + + + + + + + + + + + + + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - + + + + + + + + + + + + - + - - + + - + - - - - + + + + - + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - - - - - - - - - + + + + + + + + + + + + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - + + + + + + - - + + + + + - - + + + + - + - - + + diff --git a/assets/characters/band/singer.svg b/assets/characters/band/singer.svg index be375d5..d9d5f88 100644 --- a/assets/characters/band/singer.svg +++ b/assets/characters/band/singer.svg @@ -2,9 +2,9 @@ Héctor · Voz · ilustración vectorial animada - - - + + + @@ -16,39 +16,47 @@ - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -57,50 +65,58 @@ - - + + - + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -109,50 +125,58 @@ - - + + - + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -161,50 +185,58 @@ - - + + - + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -213,49 +245,57 @@ - - + + - + - - + + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -264,49 +304,57 @@ - - + + - + - - + + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -315,49 +363,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -366,49 +422,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -417,49 +481,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -468,49 +540,57 @@ - - + + - + - - + + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -519,48 +599,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -569,48 +657,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -619,48 +715,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -669,48 +773,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -719,49 +831,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -770,49 +890,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -821,49 +949,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -872,49 +1008,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -923,49 +1067,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -974,48 +1126,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1024,48 +1184,63 @@ - - + + - + + + + + + + + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1074,48 +1249,63 @@ - - + + - + + + + + + + + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1124,48 +1314,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1174,48 +1372,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1224,50 +1430,58 @@ - - + + - + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1276,55 +1490,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1333,55 +1557,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1390,55 +1624,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1447,55 +1691,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1504,55 +1758,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1561,55 +1825,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1618,55 +1892,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1675,55 +1959,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1732,55 +2026,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1789,55 +2093,65 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1846,54 +2160,64 @@ - - + + - - - - - - + + + + + + + + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1902,49 +2226,57 @@ - - + + - + - - + + - + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -1953,48 +2285,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -2003,48 +2343,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -2053,48 +2401,56 @@ - - + + - + - - + + - - - + + + - - + + - + - - + + - + + + + + - + + + + + - - + + @@ -2103,11 +2459,11 @@ - - + + - + diff --git a/assets/enemies/backstage_guard.svg b/assets/enemies/backstage_guard.svg index 74fe208..24717e9 100644 --- a/assets/enemies/backstage_guard.svg +++ b/assets/enemies/backstage_guard.svg @@ -40,6 +40,10 @@ + + + + @@ -89,6 +93,10 @@ + + + + @@ -137,6 +145,10 @@ + + + + @@ -185,6 +197,10 @@ + + + + @@ -233,6 +249,10 @@ + + + + @@ -281,6 +301,10 @@ + + + + @@ -329,6 +353,10 @@ + + + + @@ -377,6 +405,10 @@ + + + + @@ -425,6 +457,10 @@ + + + + @@ -473,6 +509,10 @@ + + + + @@ -521,6 +561,10 @@ + + + + @@ -568,6 +612,10 @@ + + + + @@ -615,6 +663,10 @@ + + + + @@ -663,6 +715,10 @@ + + + + @@ -710,6 +766,10 @@ + + + + @@ -757,6 +817,10 @@ + + + + diff --git a/assets/enemies/feedback_tech.svg b/assets/enemies/feedback_tech.svg index 29d730d..856ac3b 100644 --- a/assets/enemies/feedback_tech.svg +++ b/assets/enemies/feedback_tech.svg @@ -40,6 +40,9 @@ + + + @@ -91,6 +94,9 @@ + + + @@ -141,6 +147,9 @@ + + + @@ -191,6 +200,9 @@ + + + @@ -241,6 +253,9 @@ + + + @@ -291,6 +306,9 @@ + + + @@ -341,6 +359,9 @@ + + + @@ -391,6 +412,9 @@ + + + @@ -441,6 +465,9 @@ + + + @@ -491,6 +518,9 @@ + + + @@ -541,6 +571,9 @@ + + + @@ -590,6 +623,9 @@ + + + @@ -639,6 +675,9 @@ + + + @@ -689,6 +728,9 @@ + + + @@ -738,6 +780,9 @@ + + + @@ -787,6 +832,9 @@ + + + diff --git a/assets/enemies/pogo_fan.svg b/assets/enemies/pogo_fan.svg index 2bdaa6a..59a4ee4 100644 --- a/assets/enemies/pogo_fan.svg +++ b/assets/enemies/pogo_fan.svg @@ -42,6 +42,9 @@ + + + @@ -93,6 +96,9 @@ + + + @@ -143,6 +149,9 @@ + + + @@ -193,6 +202,9 @@ + + + @@ -243,6 +255,9 @@ + + + @@ -293,6 +308,9 @@ + + + @@ -343,6 +361,9 @@ + + + @@ -393,6 +414,9 @@ + + + @@ -443,6 +467,9 @@ + + + @@ -493,6 +520,9 @@ + + + @@ -543,6 +573,9 @@ + + + @@ -592,6 +625,9 @@ + + + @@ -641,6 +677,9 @@ + + + @@ -691,6 +730,9 @@ + + + @@ -740,6 +782,9 @@ + + + @@ -789,6 +834,9 @@ + + + diff --git a/assets/enemies/rival_guitarist.svg b/assets/enemies/rival_guitarist.svg index 34c8257..8d020a1 100644 --- a/assets/enemies/rival_guitarist.svg +++ b/assets/enemies/rival_guitarist.svg @@ -42,6 +42,9 @@ + + + @@ -95,6 +98,9 @@ + + + @@ -147,6 +153,9 @@ + + + @@ -199,6 +208,9 @@ + + + @@ -251,6 +263,9 @@ + + + @@ -303,6 +318,9 @@ + + + @@ -355,6 +373,9 @@ + + + @@ -407,6 +428,9 @@ + + + @@ -459,6 +483,9 @@ + + + @@ -482,14 +509,18 @@ - - - - - - - - + + + + + + + + + + + + @@ -521,6 +552,9 @@ + + + @@ -543,15 +577,19 @@ - - - - - - - - - + + + + + + + + + + + + + @@ -583,6 +621,9 @@ + + + @@ -605,15 +646,19 @@ - - - - - - - - - + + + + + + + + + + + + + @@ -644,6 +689,9 @@ + + + @@ -695,6 +743,9 @@ + + + @@ -747,6 +798,9 @@ + + + @@ -798,6 +852,9 @@ + + + @@ -849,6 +906,9 @@ + + + diff --git a/assets/enemies/roadie.svg b/assets/enemies/roadie.svg index bee8bd4..de36f0f 100644 --- a/assets/enemies/roadie.svg +++ b/assets/enemies/roadie.svg @@ -38,6 +38,9 @@ + + + @@ -88,6 +91,9 @@ + + + @@ -137,6 +143,9 @@ + + + @@ -186,6 +195,9 @@ + + + @@ -235,6 +247,9 @@ + + + @@ -284,6 +299,9 @@ + + + @@ -333,6 +351,9 @@ + + + @@ -382,6 +403,9 @@ + + + @@ -431,6 +455,9 @@ + + + @@ -480,6 +507,9 @@ + + + @@ -529,6 +559,9 @@ + + + @@ -577,6 +610,9 @@ + + + @@ -625,6 +661,9 @@ + + + @@ -674,6 +713,9 @@ + + + @@ -722,6 +764,9 @@ + + + @@ -770,6 +815,9 @@ + + + diff --git a/docs/direccion_arte_referencia_2026.md b/docs/direccion_arte_referencia_2026.md new file mode 100644 index 0000000..07bc746 --- /dev/null +++ b/docs/direccion_arte_referencia_2026.md @@ -0,0 +1,135 @@ +# 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. + +## Los cuatro personajes - orden estricto, de izquierda a derecha + +| Posicion en la referencia | Nombre | Recurso del juego | Papel | Rasgos que conservar | +| --- | --- | --- | --- | --- | +| 1 | Diego | `guitarist` | Guitarra | Melena oscura, barba abundante, chaleco vaquero oscuro, guitarra en ataques | +| 2 | Ivan | `drummer` | Bateria | Melena negra lisa, camiseta negra, vaqueros, baquetas al atacar | +| 3 | Fer | `bassist` | Bajo | Pelo oscuro rizado, ropa y accesorios metaleros, **bajo, no baquetas** | +| 4 | Hector | `singer` | Voz | Melena rubia, chaleco/chaqueta oscuros, botas, microfono al atacar | + +Las baquetas que aparecen en la mano de Fer en la referencia son un error del +boceto. Fer debe llevar bajo; Ivan es el bateria. Diego y Fer deben empunar +instrumentos distintos en poses de ataque y al cargar el especial. + +## Objetivo visual + +- Ilustracion 2D inspirada en pixel art moderno de alta calidad, sin grandes + cuadrados planos ni anatomia achatada tipo Super Mario. +- Proporciones humanas mas naturales: cabeza, hombros, torso, manos y piernas + con estructura. Rostro, pelo, pliegues de ropa, cuero, tela, parches y metal + identificables en pantalla. Contorno oscuro coherente y volumen en tres o + cuatro valores de luz; no texturas fotograficas. +- Los protagonistas son los mas metaleros. Los enemigos mantienen la misma + calidad de pintura y materiales, pero menos extravagantes (sin copiar + peinados, vestuario ni armas de los protagonistas). +- Todo se lee en un escenario oscuro y a velocidad real, no solo en una imagen + aumentada. Evitar detalles tan finos que se pierdan al reducir el sprite. + +## Escala de juego: no agrandar personajes + +La referencia es una guia de estilo, **no una nueva escala de personaje**. +En el proyecto actual, los SpriteFrames de la banda tienen 40 celdas de 64x64; +la silueta vertical ronda 56 px de mundo. Las colisiones son **26x52** en el +Player y **28x52** en los enemigos. La camara habitual tiene zoom 2x. + +Criterio innegociable: con arte nuevo, pies al mismo nivel del suelo, centro, +altura y volumen **en el mundo del juego** comparables a los actuales. El +escenario no debe percibirse encogido ni el jugador mas grande. Si los dibujos +se hacen a mas resolucion, se puede usar una celda de 128x128 a escala 0.5 o +256x256 a escala 0.25, conservando una caja virtual de 64x64 por fotograma y +los mismos nodos de colision. Revisar en Android el coste en memoria y evitar +texturas gigantes horizontales; el atlas actual es una cuadricula de 8x5. + +Las partes del instrumento que sobresalen pueden ocupar espacio dentro de la +celda sin aumentar la colision. No mover el origen visual ni desplazar el suelo +para disimular un dibujo desalineado. + +## Animaciones a producir + +- Reposo vivo sin exageracion: respiracion, pelo y ropa sutiles. +- Caminar/correr: 8-12 dibujos por ciclo si hay material; contacto, descenso, + paso y vuelo bien diferenciados, pies anclados durante el apoyo, rodilla y + tobillo articulados, cadera estable, brazos en contrafase. No reflejar la + misma pierna para simular ambas zancadas. +- Salto/subida, caida y aterrizaje con anticipacion y recuperacion. +- Punetazo, golpe desde el aire, golpe al suelo, dano y muerte. +- Especial con inicio, ejecucion, fin y silueta reconocible del instrumento: + guitarra electrica para Diego, baquetas/platos para Ivan, bajo de cuatro + cuerdas para Fer y microfono para Hector. +- Instrumentos: cuerpo, mastil, afinadores, clavijas, puente, cuerdas, golpes + de luz y sombras propios; no rectangulos de color sin volumen. El bajo de Fer + debe ser evidente en los cuatro pulsos del especial, nunca confundirse con + una guitarra o unas baquetas. +- Mantener las duraciones del combate y su hit timing; animar dentro de las + ventanas actuales antes de modificar gameplay. No prometer 12 fotogramas + efectivos si la animacion no se ha importado y revisado en Godot. + +## Enemigos + +Renovar con la misma direccion pictorica los cinco perfiles existentes: +`roadie`, `pogo_fan`, `backstage_guard`, `rival_guitarist` y `feedback_tech`. +Darles siluetas distintas y ropa creible; menos metaleros que la banda. Seguir +usando su tamaño, colisiones, animaciones logicas, velocidad y ataque actuales. + +## VFX y consistencia con el arte + +Los efectos son parte del mismo juego y no deben parecer pegatinas de estilo +ajeno. Usar borde de tinta oscura, brillos metalicos, degradados muy controlados +y un acento por personaje. Evitar cuadrados gigantes, figuras planas y efectos +que oculten completamente las siluetas a escala 2x. + +- Diego: descarga de guitarra, electricidad cian/azul con nucleo claro y rayos + ramificados; chispa en el punto de impacto. +- Ivan: platos dorados con borde, reflejo y sensacion de giro; trazas de + movimiento que no parezcan nuevos proyectiles daninos. +- Fer: ondas graves purpuras, lineas de vibracion y grietas negras con brillo. +- Hector: grito, ondas doradas/ambar y semicupula translucida. +- Comunes para enemigos/jugadores: impactos cortos, estela de golpe, polvo, + particulas de rotura y muerte con trazo y color coherentes. + +La pasada de arte actualiza los cuatro atlas jugables (`assets/characters/band/*.svg`) +y los cinco atlas de enemigos (`assets/enemies/*.svg`) manteniendo sus celdas, +SpriteFrames y escala de mundo. Refuerza especialmente la identidad de los +protagonistas: barba y melena de Diego, pelo liso y baquetas de Ivan, rizos y +bajo de cuatro cuerdas de Fer, y melena rubia y microfono de Hector. Tambien +actualiza `tools/generate_vector_character_art.py` y su README para que una +regeneracion futura no revierta estos rasgos. Los efectos procedurales de +`effects/combat_fx.gd` siguen siendo de solo presentacion: no hay colisiones, +proyectiles reales, radio adicional ni cambios de dano. + +## Comprobaciones y trabajo visual pendiente + +1. Reconocer a Diego, Ivan, Fer y Hector con la referencia a tamano real. +2. Fer no muestra baquetas: lleva bajo durante los especiales cargados. +3. No se percibe ningun personaje o enemigo mayor respecto a los escenarios; + colisiones, pies y altura mantienen su posicion original. +4. Marcha y carrera no deslizan el pie de apoyo y las rodillas no se invierten. +5. Los cinco enemigos pertenecen al mismo universo visual, pero la banda es + mas metalera que ellos. +6. La marcha actual conserva seis fotogramas por ciclo; ampliar a 8-12 exige + dibujar y registrar fotogramas nuevos, no duplicar celdas. +7. Probar reposo, desplazamiento, salto, punetazo, ground pound, especial, + dano, muerte y transiciones con los cuatro integrantes en Godot. +8. Probar Android en apaisado y escritorio, en pausa y en combate; validar que + instrumentos y VFX no obstruyen los botones tactiles. + +## Integracion + +- Atlas banda: `assets/characters/band/*.svg` y + `player/characters/animations/*_frames.tres`. +- Atlas enemigos: `assets/enemies/*.svg` y + `enemies/animations/*_frames.tres`. +- Material de efectos procedurales: `effects/combat_fx.gd`. +- Seleccion y personaje: `player/characters/*.tres`, `player/player.tscn`. + +Los generadores `tools/generate_vector_character_art.py` y +`tools/generate_band_art.py` **sobrescriben** los atlas ilustrados actuales; +cuando haya arte definitivo se deben retirar, adaptar o impedir que sobrescriban +los nuevos archivos sin intencion expresa. diff --git a/effects/combat_fx.gd b/effects/combat_fx.gd index 09099ce..959530c 100644 --- a/effects/combat_fx.gd +++ b/effects/combat_fx.gd @@ -1,8 +1,18 @@ class_name CombatFX extends Node2D -## Efectos breves en coordenadas del mundo, compartidos por jugador y enemigos. -## Usan figuras geometricas, sin plugins ni recursos externos de efectos. +## 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) var kind: StringName = &"hit" var direction: float = 1.0 @@ -11,7 +21,7 @@ var _age: float = 0.0 var _lifetime: float = 0.28 -## Crea un efecto transitorio en coordenadas globales bajo el padre indicado. +## Creates a transient effect at a fixed world position (not parented to an actor). 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): @@ -24,10 +34,11 @@ static func spawn(parent: Node, origin: Vector2, effect_kind: StringName, effect.global_position = origin -## Selecciona la duracion visual segun el tipo de efecto. func _ready() -> void: z_index = 12 - texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST + # 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 match kind: &"ground_pound", &"electric_pound", &"vocal_dome", &"bass_cracks": _lifetime = 0.60 @@ -39,7 +50,6 @@ func _ready() -> void: _lifetime = 0.32 -## Solicita redibujado hasta agotar la duracion y eliminar el efecto. func _process(delta: float) -> void: _age += delta if _age >= _lifetime: @@ -48,10 +58,9 @@ func _process(delta: float) -> void: queue_redraw() -## Genera el efecto segun su tipo y progreso, sin participar en el calculo de dano. func _draw() -> void: var progress: float = clampf(_age / _lifetime, 0.0, 1.0) - var fade: float = 1.0 - progress + var fade: float = (1.0 - progress) * (1.0 - progress * 0.18) match kind: &"electric_pound": _draw_electric_pound(progress, fade) @@ -66,169 +75,295 @@ func _draw() -> void: &"bass_pulse": _draw_bass_pulse(progress, fade) &"ground_pound": - _draw_ring(lerpf(8.0, radius, progress), 0.24, Color(1.0, 0.72, 0.34, fade), 3.0) - _draw_ring(lerpf(3.0, radius * 0.72, progress), 0.32, Color(1.0, 0.94, 0.68, fade), 2.0) - _draw_debris(progress, 16, Color(0.84, 0.71, 0.56, fade), radius) - # Las grietas permanecen donde ocurrio el impacto, no se desplazan con el jugador. - for side: float in [-1.0, 1.0]: - var crack := PackedVector2Array([ - Vector2(3.0 * side, 0.0), Vector2(14.0 * side, 3.0), - Vector2(22.0 * side, -1.0), Vector2(35.0 * side, 2.0), - Vector2(44.0 * side, 0.0)]) - draw_polyline(crack, Color(1.0, 0.77, 0.4, fade * 0.8), 2.0) + _draw_ground_pound(progress, fade) &"solo": - var wave_radius: float = lerpf(12.0, radius, progress) - _draw_ring(wave_radius, 0.70, Color(0.42, 0.88, 1.0, fade * 0.85), 3.0) - _draw_ring(wave_radius * 0.78, 0.70, Color(0.85, 0.57, 1.0, fade * 0.65), 2.0) - for index: int in range(8): - var angle: float = TAU * float(index) / 8.0 - progress * 0.18 - var point := Vector2(cos(angle), sin(angle) * 0.7) * wave_radius - _draw_note(point.round(), Color(0.95, 0.82, 1.0, fade)) - if progress < 0.35: - _draw_sparks(progress / 0.35, Color(0.75, 0.91, 1.0, fade), 10, 34.0) + _draw_solo(progress, fade) &"dust": - _draw_debris(progress, 7, Color(0.78, 0.76, 0.70, fade * 0.65), 22.0) + _draw_debris(progress, 7, DUST_BROWN, 23.0, fade * 0.7) &"break": - _draw_debris(progress, 14, Color(0.72, 0.5, 0.24, fade), 52.0) - _draw_debris(progress, 6, Color(0.66, 0.68, 0.71, fade), 34.0) + _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_sparks(progress, Color(1.0, 0.73, 0.34, fade), 14, 42.0) - _draw_ring(lerpf(4.0, 27.0, progress), 0.80, Color(1.0, 0.89, 0.66, fade), 2.0) + _draw_death(progress, fade) &"swing": - var arc := PackedVector2Array() - for index: int in range(7): - var angle: float = lerpf(-1.1, 1.1, float(index) / 6.0) - arc.append(Vector2(cos(angle) * 16.0 * direction, sin(angle) * 17.0).round()) - draw_polyline(arc, Color(1.0, 0.91, 0.69, fade * 0.9), 2.0) + _draw_swing(progress, fade) _: - _draw_sparks(progress, Color(1.0, 0.84, 0.49, fade), 8, 27.0) - if progress < 0.45: - draw_rect(Rect2(-3, -8, 6, 16), Color(1.0, 0.98, 0.88, fade)) - draw_rect(Rect2(-8, -3, 16, 6), Color(1.0, 0.98, 0.88, fade)) + _draw_hit(progress, fade) -## Aproxima un anillo eliptico con segmentos de estilo pixelado. -func _draw_ring(ring_radius: float, height_ratio: float, color: Color, width: float) -> void: - var points := PackedVector2Array() - for index: int in range(33): - var angle: float = TAU * float(index) / 32.0 - points.append(Vector2(cos(angle) * ring_radius, sin(angle) * ring_radius * height_ratio).round()) - draw_polyline(points, color, width) +func _alpha(color: Color, opacity: float) -> Color: + return Color(color.r, color.g, color.b, clampf(opacity, 0.0, 1.0)) -func _draw_sparks(progress: float, color: Color, count: int, spread: float) -> void: - for index: int in range(count): - var angle: float = float(index) * TAU / float(count) - var axis := Vector2(cos(angle), sin(angle)) - var distance: float = spread * progress - var point: Vector2 = (axis * distance + Vector2(direction * 5.0 * progress, 0)).round() - var tail: Vector2 = (point - axis * (6.0 * (1.0 - progress))).round() - draw_line(tail, point, color, 2.0) +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) -## Dibuja fragmentos que se separan del punto de impacto. -func _draw_debris(progress: float, count: int, color: Color, spread: float) -> void: +## 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: + 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) + + +## 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.35 + float(index % 5) * 0.16 - var height: float = 10.0 + float(index % 4) * 7.0 - var point := Vector2(side * spread * progress * speed, - -height * sin(progress * PI) - 2.0) - var size: float = 2.0 + float(index % 3) - draw_rect(Rect2(point.round(), Vector2.ONE * size), color) + 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) -## Dibuja una nota musical geometrica sin depender de una fuente. -func _draw_note(point: Vector2, color: Color) -> void: - draw_rect(Rect2(point, Vector2(5, 4)), color) - draw_rect(Rect2(point + Vector2(4, -10), Vector2(2, 13)), color) - draw_rect(Rect2(point + Vector2(6, -10), Vector2(5, 3)), color) +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 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)) -## Diego: descarga al suelo y rayos ramificados, sin nuevas zonas de dano. +## 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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +## 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, Color(0.30, 0.80, 1.0, fade), 3.0) + _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, 6): - var fraction: float = float(step) / 5.0 - var zigzag: float = (-1.0 if (step + index) % 2 == 0 else 1.0) * 5.0 - bolt.append((axis * reach * fraction + normal * zigzag).round()) - draw_polyline(bolt, Color(0.20, 0.65, 1.0, fade * 0.72), 5.0) - draw_polyline(bolt, Color(0.82, 0.98, 1.0, fade), 1.0) - var fork: Vector2 = bolt[3] + normal * (10.0 + progress * 8.0) - draw_line(bolt[2], fork.round(), Color(0.48, 0.88, 1.0, fade), 2.0) + 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) -## Hector: semicupula amarilla transparente que crece desde el punto de aterrizaje. +## 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)) var dome := PackedVector2Array() - for index: int in range(33): - var angle: float = PI + PI * float(index) / 32.0 - var point := Vector2(cos(angle) * reach, sin(angle) * reach * 0.85).round() - # Evita vertices consecutivos iguales al redondear una cupula aun pequena. - if dome.is_empty() or dome[dome.size() - 1] != point: - dome.append(point) - draw_colored_polygon(dome, Color(1.0, 0.83, 0.14, fade * 0.20)) - draw_polyline(dome, Color(1.0, 0.91, 0.40, fade * 0.95), 3.0) - _draw_ring(reach, 0.16, Color(1.0, 0.78, 0.12, fade * 0.8), 2.0) + 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) -## Fer: fracturas cortas que quedan ancladas al punto de impacto y luego desaparecen. -## No se modifica el TileMap, ni la colision, ni se conserva dano visual del escenario. +## 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) 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, 6): - var x: float = side * radius * float(step) / 5.0 * growth - var y: float = float(branch - 1) * float(step) * 2.0 - y += 3.0 if (branch + step) % 2 == 0 else -3.0 - crack.append(Vector2(x, y).round()) - draw_polyline(crack, Color(0.08, 0.06, 0.14, fade), 5.0) - draw_polyline(crack, Color(0.68, 0.50, 0.93, fade * 0.7), 1.0) - var split: Vector2 = crack[3] + Vector2(side * 10.0, -10.0) - draw_line(crack[2], split, Color(0.12, 0.09, 0.20, fade), 3.0) - _draw_debris(progress, 12, Color(0.57, 0.52, 0.64, fade), radius * 0.7) + 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) -## Hector: frentes de sonido concentricos; el grito sigue usando el dano de area comun. +## 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.19 - _draw_ring(reach * ratio, 0.85, Color(1.0, 0.86, 0.25, fade * (0.85 - float(index) * 0.16)), 3.0) + 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) -## Ivan: platos que vuelan y giran en todas direcciones. Son dibujo, no proyectiles. -## El dano lo aplica Player una sola vez por pulso, nunca por contacto con estos platos. +## Ivan: rimmed cymbals with highlights and movement trails. No projectiles. 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 point := Vector2(cos(angle), sin(angle) * 0.78) * travel - var wobble: float = 0.30 + absf(sin(progress * TAU * 2.0 + angle)) * 0.35 - draw_set_transform(point.round(), angle + progress * 5.0, Vector2(1.0, wobble)) - draw_circle(Vector2.ZERO, 12.0, Color(0.34, 0.21, 0.06, fade)) - draw_circle(Vector2.ZERO, 10.0, Color(0.92, 0.65, 0.17, fade)) - _draw_ring(8.0, 1.0, Color(1.0, 0.89, 0.45, fade), 1.0) - draw_circle(Vector2.ZERO, 3.0, Color(1.0, 0.94, 0.65, fade)) - draw_circle(Vector2.ZERO, 1.0, Color(0.20, 0.15, 0.05, fade)) + 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) -## Fer: ondas graves gruesas. La vibracion de camara se sincroniza con estos pulsos. +## 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.65, Color(0.64, 0.42, 0.97, fade * 0.65), 7.0) - _draw_ring(reach * 0.83, 0.65, Color(0.91, 0.76, 1.0, fade * 0.8), 2.0) - for index: int in range(8): - var angle: float = TAU * float(index) / 8.0 - var point := Vector2(cos(angle), sin(angle) * 0.65) * reach - _draw_note(point.round(), Color(0.83, 0.66, 1.0, fade)) + _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) diff --git a/tests/test_band_resources.py b/tests/test_band_resources.py index eb4fde4..e398484 100644 --- a/tests/test_band_resources.py +++ b/tests/test_band_resources.py @@ -101,6 +101,31 @@ class BandResourceTests(unittest.TestCase): 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. + 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')) + def test_vector_walk_uses_six_distinct_leg_contacts(self): # Ninguna celda conserva los rectangulos originales; pasos con tobillo y rodilla. for role in ROLES: diff --git a/tests/test_combat_fx_style_resources.py b/tests/test_combat_fx_style_resources.py new file mode 100644 index 0000000..e6112fa --- /dev/null +++ b/tests/test_combat_fx_style_resources.py @@ -0,0 +1,55 @@ +"""Checks the FX-only art pass without requiring the Godot editor.""" +from pathlib import Path +import re +import unittest + +ROOT = Path(__file__).resolve().parents[1] +FX = ROOT / "effects/combat_fx.gd" +BRIEF = ROOT / "docs/direccion_arte_referencia_2026.md" + + +class CombatFXArtPassTests(unittest.TestCase): + def test_shared_effect_stays_visual_only(self): + source = FX.read_text(encoding="utf-8") + self.assertIn("extends Node2D", source) + self.assertIn("static func spawn", source) + self.assertIn("queue_free()", source) + for disallowed in ("Area2D.new", "CollisionShape2D.new", "apply_damage(", + "take_damage(", "set_collision_layer_value("): + self.assertNotIn(disallowed, source) + for actor in ("player/player.gd", "enemies/walker/walker.gd"): + self.assertIn('res://effects/combat_fx.gd', + (ROOT / actor).read_text(encoding="utf-8")) + + def test_existing_fx_names_and_signature_are_retained(self): + source = FX.read_text(encoding="utf-8") + for effect in ("hit", "swing", "dust", "death", "break", "solo", + "ground_pound", "electric_pound", "vocal_dome", + "bass_cracks", "vocal_wave", "drum_cymbals", "bass_pulse"): + self.assertRegex(source, rf'&"{re.escape(effect)}"') + self.assertIn("effect_radius: float = 54.0", source) + self.assertIn("effect.global_position = origin", source) + + def test_guitar_solo_uses_character_specific_electric_discharge(self): + source = FX.read_text(encoding="utf-8") + solo = source.split("func _draw_solo", 1)[1].split("func _draw_electric_pound", 1)[0] + self.assertIn("ELECTRIC_BLUE", solo) + self.assertIn("ELECTRIC_WHITE", solo) + self.assertIn("_stroke(bolt", solo) + self.assertIn("var fork :=", solo) + self.assertNotIn("_draw_note(", solo) + + def test_reference_mapping_is_documented_without_claiming_new_sprites(self): + brief = BRIEF.read_text(encoding="utf-8") + for name, role in (("Diego", "guitarist"), ("Ivan", "drummer"), + ("Fer", "bassist"), ("Hector", "singer")): + self.assertIn(name, brief) + self.assertIn(f"`{role}`", brief) + self.assertIn("**bajo, no baquetas**", brief) + self.assertIn("actualiza los cuatro atlas jugables", brief) + self.assertIn("**26x52**", brief) + self.assertIn("**28x52**", brief) + + +if __name__ == "__main__": + unittest.main() diff --git a/tools/generate_vector_character_art.py b/tools/generate_vector_character_art.py index 762473d..c2c1271 100644 --- a/tools/generate_vector_character_art.py +++ b/tools/generate_vector_character_art.py @@ -37,10 +37,10 @@ class Look: LOOKS: dict[str, Look] = { - 'guitarist': Look('Diego · Guitarra', '#642c35', '#b14a50', '#311f2c', '#f1bc6a', '#ffe0a1', '#191c2d', '#535167', '#d59a78', '#ffcf9f', '#a36555', '#283044', '#482b34', 'guitar'), - 'drummer': Look('Iván · Batería', '#2f5969', '#65a6ae', '#1d3345', '#f2c879', '#f7e5ae', '#1c202d', '#545565', '#c98c68', '#f0be8e', '#905948', '#293044', '#26333e', 'drums'), - 'bassist': Look('Fer · Bajo', '#493c6b', '#7864a2', '#2a2844', '#92c2af', '#c3ead3', '#161726', '#474057', '#ae7c60', '#e8b58c', '#825044', '#282940', '#433c58', 'bass'), - 'singer': Look('Héctor · Voz', '#304b42', '#597b61', '#202d32', '#ec6251', '#ffa079', '#aa803f', '#ead183', '#d39c75', '#f4c8a0', '#a56f58', '#34333d', '#2d2f37', 'mic'), + 'guitarist': Look('Diego · Guitarra', '#303943', '#687b87', '#171e29', '#bd4d42', '#ffb18a', '#241b20', '#765044', '#d59a78', '#ffcf9f', '#a36555', '#344354', '#242a34', 'guitar'), + 'drummer': Look('Iván · Batería', '#20252d', '#4a5059', '#10151d', '#c44c42', '#f3b18a', '#11151d', '#555866', '#c98c68', '#f0be8e', '#905948', '#293044', '#202630', 'drums'), + 'bassist': Look('Fer · Bajo', '#282633', '#65556d', '#171722', '#5ba889', '#b8e8c7', '#17141c', '#6b5868', '#ae7c60', '#e8b58c', '#825044', '#292a38', '#27232f', 'bass'), + 'singer': Look('Héctor · Voz', '#242b30', '#58636a', '#11191f', '#d39b45', '#ffe0a0', '#b68a43', '#f4d887', '#d39c75', '#f4c8a0', '#a56f58', '#34333d', '#20232a', 'mic'), 'roadie': Look('Roadie', '#385a5d', '#618c88', '#273c4e', '#dca85e', '#ffda91', '#282c36', '#77777b', '#d1a184', '#f3c8a4', '#996a5f', '#3f4655', '#343d4b', 'roadie'), 'pogo_fan': Look('Fan del pogo', '#65436a', '#a66394', '#3b2c53', '#f3a14e', '#ffcf79', '#cb346d', '#f58ca9', '#d1a07f', '#f4caa4', '#996858', '#39415a', '#a84e55', 'punk'), 'backstage_guard': Look('Guarda', '#3b465c', '#74839a', '#252d40', '#e2a851', '#ffe3a1', '#272a34', '#666b7a', '#aa8269', '#d7ae89', '#856455', '#343947', '#303642', 'guard'), @@ -134,13 +134,36 @@ def pose_parameters(name: str, frame: int): def draw_hair_back(ink: Ink, look: Look, h: float) -> None: - if look.kind == 'bass': - ink.path(f'M 22 {10+h:.1f} Q 15 {14+h:.1f} 20 {30+h:.1f} L 24 {34+h:.1f} ' - f'Q 27 {28+h:.1f} 29 {24+h:.1f} L 40 {25+h:.1f} Q 48 {34+h:.1f} 46 {15+h:.1f} ' - f'Q 39 {6+h:.1f} 22 {10+h:.1f} Z', look.hair, '#151925', 1.5) - for x,y in ((20,21),(20.5,28),(44,25),(43,31)): - ink.path(f'M {x} {y+h:.1f} q -2 3 1 5', 'none', look.hair_light, 1.1) - elif look.kind in ('guitar','rival','roadie'): + # Siluetas distintas y legibles: melena de Diego, pelo liso de Iván, + # rizos de Fer y melena rubia de Héctor. + if look.kind == 'guitar': + ink.path(f'M 24 {11+h:.1f} Q 16 {14+h:.1f} 19 {27+h:.1f} L 17 {40+h:.1f} ' + f'Q 22 {43+h:.1f} 25 {34+h:.1f} L 28 {27+h:.1f} L 40 {25+h:.1f} ' + f'Q 47 {34+h:.1f} 46 {14+h:.1f} Q 37 {5+h:.1f} 24 {11+h:.1f} Z', + look.hair, '#11151e', 1.5) + for d in ('M 21 22 q -2 8 1 14','M 25 25 q -2 8 1 13','M 43 23 q 3 8 0 13'): + ink.path(d.replace(' ', ' '), 'none', look.hair_light, 1.1, f'transform="translate(0 {h:.1f})"') + elif look.kind == 'drums': + ink.path(f'M 23 {10+h:.1f} Q 17 {16+h:.1f} 21 {30+h:.1f} L 22 {38+h:.1f} ' + f'L 27 {31+h:.1f} L 28 {18+h:.1f} L 39 {17+h:.1f} L 42 {36+h:.1f} ' + f'L 46 {39+h:.1f} Q 49 {17+h:.1f} 39 {9+h:.1f} Z', look.hair, '#10141c', 1.4) + for x in (22,25,42,45): + ink.path(f'M {x} {23+h:.1f} q -1 7 1 11', 'none', look.hair_light, .8) + elif look.kind == 'bass': + ink.path(f'M 22 {10+h:.1f} Q 15 {14+h:.1f} 19 {27+h:.1f} L 23 {34+h:.1f} ' + f'L 27 {27+h:.1f} L 40 {25+h:.1f} Q 48 {34+h:.1f} 46 {14+h:.1f} ' + f'Q 38 {5+h:.1f} 22 {10+h:.1f} Z', look.hair, '#11151e', 1.5) + for x,y in ((20,17),(23,13),(27,11),(39,11),(44,17),(43,23),(22,24)): + ink.circle(x, y+h, 2.3, look.hair, f'stroke="#11151e" stroke-width=".7"') + ink.circle(x-.6, y-1+h, .65, look.hair_light) + elif look.kind == 'mic': + ink.path(f'M 24 {10+h:.1f} Q 17 {13+h:.1f} 20 {28+h:.1f} L 18 {39+h:.1f} ' + f'Q 24 {43+h:.1f} 27 {31+h:.1f} L 29 {20+h:.1f} L 39 {19+h:.1f} ' + f'Q 45 {31+h:.1f} 46 {39+h:.1f} L 49 {34+h:.1f} Q 48 {14+h:.1f} 39 {8+h:.1f} Z', + look.hair, '#34251d', 1.5) + for d in ('M 22 22 q -1 8 2 13','M 25 23 q -1 8 2 12','M 43 21 q 3 8 3 13'): + ink.path(d, 'none', look.hair_light, 1.0, f'transform="translate(0 {h:.1f})"') + elif look.kind in ('rival','roadie'): ink.path(f'M 25 {11+h:.1f} Q 19 {10+h:.1f} 20 {21+h:.1f} L 23 {32+h:.1f} ' f'L 26 {27+h:.1f} L 40 {24+h:.1f} L 43 {32+h:.1f} ' f'Q 48 {13+h:.1f} 38 {8+h:.1f} Z', look.hair, '#121621', 1.2) @@ -195,6 +218,16 @@ def draw_head(ink: Ink, look: Look, bob: float, tilt: float, pose: str) -> None: ink.path(f'M 26 {16+y:.1f} Q 24 {19+y:.1f} 26 {23+y:.1f}', 'none', look.skin_light, 1.2, 'opacity=".7"') ink.ellipse(24, 20+y, 1.6, 3.0, look.skin_shadow, '#191a26', .8) draw_hair_front(ink, look, y) + if look.kind == 'guitar': + # Barba abundante y bigote: rasgo principal de Diego. + ink.path(f'M 25 {22+y:.1f} Q 27 {26+y:.1f} 29 {26+y:.1f} Q 32 {30+y:.1f} 35 {29+y:.1f} ' + f'Q 40 {29+y:.1f} 41 {23+y:.1f} L 40 {28+y:.1f} Q 38 {34+y:.1f} 32 {34+y:.1f} ' + f'Q 26 {32+y:.1f} 25 {27+y:.1f} Z', '#302329', '#17151d', 1.0) + ink.path(f'M 27 {27+y:.1f} q 3 3 5 2 M 35 {29+y:.1f} q 3 -1 4 -3', 'none', '#795044', .8) + elif look.kind == 'bass': + # Rizo pequeño junto a las sienes para distinguirlo de la melena lisa. + for x in (22,24,42,44): + ink.circle(x, 19+y, 1.6, look.hair, 'stroke="#11151e" stroke-width=".45"') # Ojos ligeramente en perfil y cejas expresivas, sin pixeles cuadrados. ink.path(f'M 29 {19+y:.1f} l 3 -.7 M 36 {19+y:.1f} l 2 .2', 'none', '#312531', 1.3) ink.ellipse(30.6, 20.8+y, .72, 1.0, '#151822') @@ -240,6 +273,54 @@ def draw_torso(ink: Ink, look: Look, bob: float, tilt: float, is_enemy: bool) -> ink.path(f'M 28 {39+y:.1f} l 9 0', 'none', look.accent, 1.0) if look.kind == 'tech': ink.path(f'M 36 {32+y:.1f} l 4 1 -2 5 -4 -1 Z', look.accent_light, '#1a2329', .6) + if look.kind == 'guitar': + # Chaleco vaquero oscuro abierto, costuras, bolsillos y remaches. + ink.path(f'M 25 {30+y:.1f} L 29 {32+y:.1f} L 31 {42+y:.1f} L 27 {43+y:.1f} Z', '#354654', '#151c26', .8) + ink.path(f'M 39 {30+y:.1f} L 35 {32+y:.1f} L 33 {42+y:.1f} L 38 {43+y:.1f} Z', '#253440', '#151c26', .8) + ink.path(f'M 27 {37+y:.1f} l 3 0 M 35 {37+y:.1f} l 3 0', 'none', '#91a0a3', .65) + for x in (28,37): ink.circle(x, 33+y, .65, '#c3a16e') + elif look.kind == 'drums': + # Camiseta negra de banda con estampado rojo y pulsera de batería. + ink.path(f'M 28 {33+y:.1f} l 4 -2 4 2 -2 4 -4 0 Z', '#a33d3b', '#11151d', .7) + ink.path(f'M 30 {35+y:.1f} l 4 0', 'none', '#e5b07d', .6) + ink.path(f'M 39 {39+y:.1f} l 2 1', 'none', '#c44c42', 1.5) + elif look.kind == 'bass': + # Cuero oscuro, cadena y herrajes metálicos. + ink.path(f'M 27 {31+y:.1f} L 31 {34+y:.1f} L 29 {42+y:.1f}', 'none', '#a5a0ad', .8) + ink.path(f'M 36 {31+y:.1f} l -3 5 4 5', 'none', '#b8e8c7', .65) + for x in (27,38): ink.circle(x, 40+y, .7, '#c7c4bf') + elif look.kind == 'mic': + # Chaqueta negra con solapas y hebillas doradas. + ink.path(f'M 27 {30+y:.1f} L 32 {34+y:.1f} L 30 {39+y:.1f} L 26 {34+y:.1f} Z', '#171e25', '#10151c', .8) + ink.path(f'M 37 {30+y:.1f} L 33 {34+y:.1f} L 36 {39+y:.1f} L 39 {34+y:.1f} Z', '#303b40', '#10151c', .8) + ink.path(f'M 28 {40+y:.1f} l 8 0', 'none', '#c69b54', 1.0) + ink.circle(36, 40+y, 1.0, '#e4c276') + if look.kind == 'roadie': + # Chaleco de carga y correas de herramientas: silueta de personal tecnico. + ink.path(f'M 26 {30+y:.1f} L 29 {32+y:.1f} L 30 {43+y:.1f} L 26 {42+y:.1f} Z', '#34494d', '#18252d', .8) + ink.path(f'M 38 {30+y:.1f} L 35 {32+y:.1f} L 34 {43+y:.1f} L 39 {42+y:.1f} Z', '#2b4147', '#18252d', .8) + ink.path(f'M 27 {37+y:.1f} l 4 0 0 4 -4 0 Z M 35 {37+y:.1f} l 3 0 0 4 -3 0 Z', '#dca85e', '#18252d', .7) + elif look.kind == 'punk': + # Camiseta de concierto rota, parche cosido y muñequeras. + ink.path(f'M 27 {33+y:.1f} l 5 2 -2 5 -4 -2 Z', '#4a273f', '#201925', .8) + ink.path(f'M 34 {34+y:.1f} l 4 0 -1 4 -3 0 Z', look.accent, '#201925', .6) + ink.path(f'M 40 {39+y:.1f} l 2 0', 'none', look.accent_light, 1.8) + elif look.kind == 'guard': + # Chaleco acolchado, placa y cinturón de seguridad. + ink.path(f'M 25 {31+y:.1f} L 29 {32+y:.1f} L 30 {43+y:.1f} L 25 {42+y:.1f} Z', '#30394b', '#171d2a', .9) + ink.path(f'M 39 {31+y:.1f} L 35 {32+y:.1f} L 34 {43+y:.1f} L 39 {42+y:.1f} Z', '#252e40', '#171d2a', .9) + ink.path(f'M 29 {34+y:.1f} l 6 0 0 5 -6 0 Z', '#c28f48', '#171d2a', .7) + ink.path(f'M 27 {42+y:.1f} l 10 0', 'none', '#b5a18a', 1.2) + elif look.kind == 'rival': + # Chaqueta de escenario del rival con hombrera y correas cruzadas. + ink.path(f'M 26 {31+y:.1f} L 30 {33+y:.1f} L 32 {42+y:.1f}', 'none', '#9ca7ad', 1.0) + ink.path(f'M 38 {30+y:.1f} l 4 3 -3 4 -4 -3 Z', '#526d80', '#1c2835', .8) + ink.circle(39, 34+y, 1.0, look.accent_light) + elif look.kind == 'tech': + # Arnés de cableado, panel de control y leds de feedback. + ink.path(f'M 26 {31+y:.1f} L 30 {34+y:.1f} L 28 {42+y:.1f} M 38 {31+y:.1f} L 34 {34+y:.1f} L 37 {42+y:.1f}', 'none', '#9ab5ae', .9) + ink.path(f'M 31 {35+y:.1f} l 5 0 0 5 -5 0 Z', '#263d43', look.accent, .7) + ink.circle(33, 37+y, .8, look.accent_light) if is_enemy: ink.path(f'M 28 {40+y:.1f} l 9 0', 'none', look.accent, .75, 'opacity=".65"') @@ -289,33 +370,42 @@ def draw_arms(ink: Ink, look: Look, bob: float, stride: float, pose: str, def draw_instrument(ink: Ink, look: Look, pose: str, frame: int, bob: float) -> None: - # Accesorios con lectura clara y volumen, visibles sin alterar las hitboxes. - if look.kind in ('guitar', 'bass','rival'): - if pose not in ('special','special_start','special_end','attack'): - return - body = '#d84d53' if look.kind == 'guitar' else ('#5daa88' if look.kind == 'bass' else '#9e5cba') - light = '#ff9c81' if look.kind == 'guitar' else ('#c5e5a5' if look.kind == 'bass' else '#e3a9db') - wobble = .7*sin(frame*pi/3) + # Instrumentos solo en poses de ataque/especial para no ocultar la silueta base. + active = pose in ('special', 'special_start', 'special_end', 'attack', 'ground_pound') + if look.kind in ('guitar', 'bass', 'rival') and active: + is_bass = look.kind == 'bass' + body = '#b63e3e' if look.kind == 'guitar' else ('#438b70' if is_bass else '#8250a0') + light = '#ffad8e' if look.kind == 'guitar' else ('#b7e6c4' if is_bass else '#d9a7e8') + wobble = .65*sin(frame*pi/3) ink.add(f'') - ink.path('M 30 37 Q 24 36 24 42 Q 21 48 26 50 Q 31 53 35 48 ' - 'Q 40 52 44 45 Q 46 38 40 36 L 37 39 Z', body, '#1a1d2c', 2.3) - ink.path('M 28 43 Q 31 39 36 42 Q 41 39 41 45', 'none', light, 1.3) - ink.path('M 34 42 L 42 15 L 46 14 L 39 43 Z', '#ab885e', '#201f2b', 1.25) - for offset in (0,1.5,3): - ink.path(f'M {36+offset*.5:.1f} 43 L {43+offset*.35:.1f} 17', 'none', '#efe2c1', .38) - ink.ellipse(35, 46, 2, 1.5, '#1b1c2a') - ink.path('M 39 36 L 42 36', 'none', '#e9d4a2', .85) + # Cuerpo de guitarra/bajo con doble cutaway, golpeador y puente. + ink.path('M 31 36 Q 25 33 23 39 Q 20 46 26 50 Q 31 53 35 48 ' + 'Q 40 52 44 45 Q 46 38 40 35 L 37 39 Z', body, '#171b25', 2.0) + ink.path('M 26 41 Q 30 37 35 41 Q 40 37 43 42 Q 42 48 36 49 Q 31 46 26 48 Z', light, '#392b34', .7, 'opacity=".58"') + ink.path('M 34 42 L 42 14 L 46 13 L 39 43 Z', '#98734f', '#1d1c24', 1.3) + ink.path('M 41 17 L 47 12 L 49 15 L 44 20 Z', '#c5a77b', '#1d1c24', 1.0) + # 4 cuerdas en el bajo, 6 en la guitarra; ambas claramente legibles. + count = 4 if is_bass else 6 + for j in range(count): + off = j * (1.1 if is_bass else .72) + ink.path(f'M {35+off*.12:.1f} 44 L {43+off*.28:.1f} 16', 'none', '#f4e8ca', .42) + ink.path('M 29 44 L 39 42 M 29 46 L 39 44', 'none', '#e6d6b3', .8) + ink.path('M 34 42 L 40 41', 'none', '#1d202a', 1.3) ink.add('') - elif look.kind == 'mic' and pose in ('special','special_start','special_end'): - ink.path(f'M 45 {20+bob:.1f} L 45 {9+bob:.1f}', 'none', '#171c28', 2.8) - ink.path(f'M 45 {20+bob:.1f} L 45 {10+bob:.1f}', 'none', '#a5bbc4', 1.4) - ink.ellipse(45, 7.5+bob, 3.5, 4.4, '#cfd6d4', '#222432', 1.2) - ink.path(f'M 42.5 {7+bob:.1f} q 2 -3 5 0', 'none', '#f8f1e0', .8) - ink.path(f'M 45 {23+bob:.1f} Q 49 {38+bob:.1f} 48 {45+bob:.1f}', 'none', '#232b33', 1) - elif look.kind == 'drums' and pose in ('special','special_start','special_end','ground_pound'): - ink.path(f'M 18 {22+bob:.1f} L 12 {6+bob:.1f} M 45 {22+bob:.1f} L 51 {6+bob:.1f}', - 'none', '#d6b47c', 2.3) - ink.path(f'M 12 {7+bob:.1f} l -1 -3 M 51 {7+bob:.1f} l 1 -3', 'none', '#fff0c5', 1.0) + elif look.kind == 'mic' and active: + ink.path(f'M 45 {22+bob:.1f} L 45 {8+bob:.1f}', 'none', '#171c28', 3.0) + ink.path(f'M 45 {22+bob:.1f} L 45 {8+bob:.1f}', 'none', '#b8c1c5', 1.3) + ink.ellipse(45, 7.5+bob, 3.7, 4.5, '#cbd2d2', '#222432', 1.2) + for yy in (6,8,10): ink.path(f'M 42 {yy+bob:.1f} q 3 1 6 0', 'none', '#707e87', .45) + ink.path(f'M 45 {24+bob:.1f} Q 50 {36+bob:.1f} 48 {45+bob:.1f}', 'none', '#232b33', 1.0) + elif look.kind == 'drums' and active: + # Dos baquetas cruzadas; nunca aparecen en Fer. + ink.path(f'M 18 {27+bob:.1f} L 11 {5+bob:.1f} M 45 {27+bob:.1f} L 52 {5+bob:.1f}', + 'none', '#171923', 3.0) + ink.path(f'M 18 {27+bob:.1f} L 11 {5+bob:.1f} M 45 {27+bob:.1f} L 52 {5+bob:.1f}', + 'none', '#e2c38a', 1.5) + ink.ellipse(11, 5+bob, 1.3, 2.1, '#fff0c5') + ink.ellipse(52, 5+bob, 1.3, 2.1, '#fff0c5') elif look.kind == 'roadie': ink.path(f'M 24 {42+bob:.1f} L 41 {42+bob:.1f}', 'none', '#c39a5c', 2) ink.path(f'M 38 {40+bob:.1f} l 4 0 0 6 -4 0 Z', look.shadow, '#1a1c29', 1)