Cambiados los aspectos visuales del juego a algo gotico

This commit is contained in:
Diego De la Viuda Llorente committed 2026-11-26 18:46:31 +01:00
1 parent ec7e35ddf6
commit 967b3a286d
205 files changed
+7056 -1630

No files matched your search

+11 -16
View File
@@ -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: