Cambiados los aspectos visuales del juego a algo gotico
This commit is contained in:
1 parent
ec7e35ddf6
commit
967b3a286d
205 files changed
+7056
-1630
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user