♻️REFACTOR: Mejoras en la viabilidad para desarrollo

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-29 13:23:46 +01:00
1 parent 5aba6c7b47
commit fd0118d964
98 files changed
+5985 -3024

No files matched your search

+4 -3
View File
@@ -1,4 +1,4 @@
"""Configuration regressions only; actual physics is tested by the .gd suite."""
"""Regresiones de configuracion; la fisica real se comprueba en la suite .gd."""
from pathlib import Path
import math
import re
@@ -67,14 +67,15 @@ class EnemyProfileTests(unittest.TestCase):
self.assertEqual(len({e[0] for e in enemies}), 29)
first = next(e for e in enemies if e[0] == 'Enemy01')
self.assertEqual((float(first[2]), float(first[3])), (1260, 811))
# Even with a wide screen waking every notifier, no enemy starts in aggro range.
# Ningun enemigo comienza en rango de ataque aunque todos esten visibles.
for name, variant, x, y in enemies:
distance = math.hypot(float(x) - 125.0, float(y) - 795.0)
self.assertGreater(distance - self.profiles[variant]['aggro_range'], 200.0, name)
def test_jumps_can_climb_the_street_steps(self):
heights = [float(y) - 250 for y in re.findall(
r'parent="World/Ground"\]\nposition = Vector2\([^,]+, ([^)]+)\)', LEVEL)]
r'parent="World/Ground" instance=ExtResource\("kit_ground"\)\]\nposition = Vector2\([^,]+, ([^)]+)\)', LEVEL)]
self.assertEqual(len(heights), 8)
largest_step = max(a - b for a, b in zip(heights, heights[1:]))
for name in ('pogo_fan', 'rival_guitarist'):
jump = self.profiles[name]['jump_velocity']