Fertigstellung Kreuzung

This commit is contained in:
moritz 2024-07-07 20:11:19 +02:00
parent a414b61287
commit 0e27803469
2 changed files with 8 additions and 8 deletions

View file

@ -74,7 +74,7 @@ def setup_lanterns_detectors_new(SCREEN_WIDTH):
# Street 6
for y_pos in range(725, 976, 150):
x_pos = 975
x_pos = 1075
id = 1
while x_pos <= 1775:
lantern = sprites.Lanterns(x_pos, y_pos, 25, 25, id, street="street_6")
@ -92,13 +92,13 @@ def setup_lanterns_detectors_new(SCREEN_WIDTH):
cross_detector_1 = sprites.Detectors(900, 150, 260, 260, crossing_id=1)
# Crossing 1
cross_lantern_5 = sprites.Lanterns(825, 725, 25, 25, id=9, street="street_5", crossing_id=1)
cross_lantern_6 = sprites.Lanterns(825, 875, 25, 25, id=9, street="street_5", crossing_id=1)
cross_lantern_7 = sprites.Lanterns(975, 225, 25, 25, id=1, street="street_2", crossing_id=1)
cross_lantern_8 = sprites.Lanterns(975, 75, 25, 25, id=1, street="street_2", crossing_id=1)
cross_detector_2 = sprites.Detectors(900, 150, 260, 260, crossing_id=1)
cross_lantern_5 = sprites.Lanterns(825, 725, 25, 25, id=9, street="street_5", crossing_id=2)
cross_lantern_6 = sprites.Lanterns(825, 875, 25, 25, id=9, street="street_5", crossing_id=2)
cross_lantern_7 = sprites.Lanterns(975, 725, 25, 25, id=1, street="street_6", crossing_id=2)
cross_lantern_8 = sprites.Lanterns(975, 875, 25, 25, id=1, street="street_6", crossing_id=2)
cross_detector_2 = sprites.Detectors(900, 800, 260, 260, crossing_id=2)
lantern_list.extend([cross_lantern_1, cross_lantern_2, cross_lantern_3, cross_lantern_4, cross_lantern_5, cross_lantern_6])
detectors_list.append(cross_detector_1)
lantern_list.extend([cross_lantern_1, cross_lantern_2, cross_lantern_3, cross_lantern_4, cross_lantern_5, cross_lantern_6, cross_lantern_7, cross_lantern_8])
detectors_list.extend([cross_detector_1, cross_detector_2])
return lantern_list, detectors_list