Menu de inicio, nuevo nivel y ajustes en objetos

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-29 16:39:46 +01:00
1 parent cd9f31c8c1
commit 827e16cf50
61 files changed
+2685 -3553

No files matched your search

+2 -4
View File
@@ -17,7 +17,7 @@ COLOR = re.compile(rf'color\s*=\s*Color\(\s*({NUM})\s*,\s*({NUM})\s*,\s*({NUM})\
class PickupResourceTests(unittest.TestCase):
def test_all_pickups_have_serializable_colors(self):
resources = sorted(DATA.glob("*.tres"))
self.assertEqual(len(resources), 18, "17 rewards plus one laboratory control")
self.assertEqual(len(resources), 17, "17 reusable game pickups")
for path in resources:
with self.subTest(path=path.name):
content = path.read_text(encoding="utf-8")
@@ -48,13 +48,11 @@ class PickupResourceTests(unittest.TestCase):
scene = (ROOT / "pickups/pickup.tscn").read_text(encoding="utf-8")
pickup = (ROOT / "pickups/pickup.gd").read_text(encoding="utf-8")
drop_manager = (ROOT / "pickups/drop_manager.gd").read_text(encoding="utf-8")
laboratory = (ROOT / "levels/level_01.gd").read_text(encoding="utf-8")
self.assertIn("collision_mask = 2", scene)
self.assertIn("monitoring = true", scene)
self.assertIn("@export var collection_delay_seconds: float = 0.0", pickup)
self.assertIn("get_overlapping_bodies()", pickup)
for code in (drop_manager, laboratory):
self.assertIn("pickup.collection_delay_seconds = Pickup.DROP_COLLECTION_DELAY_SECONDS", code)
self.assertIn("pickup.collection_delay_seconds = Pickup.DROP_COLLECTION_DELAY_SECONDS", drop_manager)
def test_moving_across_a_drop_cannot_lose_the_pickup(self):