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

+13 -8
View File
@@ -21,18 +21,23 @@ class Level00ResourceTests(unittest.TestCase):
for asset in re.findall(r'preload\("res://([^"]+)"\)', SCRIPT):
self.assertTrue((ROOT / asset).is_file(), asset)
def test_pixel_art_is_real_rgba_png_and_parallax_is_repeated(self):
graphics = list((ROOT / "assets/city").glob("*.png"))
self.assertEqual(len(graphics), 15)
def test_pixel_art_uses_png_depth_layers_and_repeated_parallax(self):
graphics = [ROOT / path for path in re.findall(
r'\[ext_resource type="Texture2D" path="res://([^\"]+)"', BACKGROUND)]
self.assertEqual(len(graphics), 3)
for png in graphics:
content = png.read_bytes()
self.assertTrue(content.startswith(b"\x89PNG\r\n\x1a\n"), png.name)
width, height = struct.unpack(">II", content[16:24])
self.assertGreater(width, 15)
self.assertGreater(height, 15)
self.assertEqual(BACKGROUND.count('type="Parallax2D"'), 4)
self.assertEqual(BACKGROUND.count('repeat_size = Vector2(1024, 0)'), 4)
self.assertIn('autoscroll = Vector2(3, 0)', BACKGROUND)
self.assertGreater(width, 512)
self.assertGreater(height, 256)
self.assertEqual(BACKGROUND.count('type="Parallax2D"'), 3)
for name in ('Distant', 'Middle', 'Near'):
self.assertIn(f'[node name="{name}" type="Parallax2D"', BACKGROUND)
vista = (ROOT / 'world/backgrounds/ashen_vista.gd').read_text()
self.assertIn('layer.repeat_size = Vector2(width * 2.0, 0.0)', vista)
self.assertIn('panel.flip_h = index == 1', vista)
self.assertNotIn('HighClouds', BACKGROUND)
self.assertIn('texture_repeat = 2', LEVEL)
def test_road_is_continuous_and_has_end_walls(self):