From 46402b64f9c13620d96c6acdef695dc8cd08e677 Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 29 Mar 2026 11:02:09 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Delfine=20tauchen=20jetzt=20unter=20die?= =?UTF-8?q?=20Wasseroberfl=C3=A4che?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit start_ys=[8,2,5] ließ Delfine nur zwischen y=1 und y=8 pendeln – genau an der Wasseroberfläche (Wellen bei y=5-8), nie darunter. Neuer Bogen [10,4,7]: Amplitude ±7, Zentrum y=10. Delfine spannen y=3 (über den Wellen) bis y=10 (unter Wasser) und durchqueren die Oberfläche in beiden Phasen. --- asciiquarium_ng.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/asciiquarium_ng.py b/asciiquarium_ng.py index 643d52d..aceef4d 100755 --- a/asciiquarium_ng.py +++ b/asciiquarium_ng.py @@ -1174,8 +1174,13 @@ ygcgwwwww ygcgwwwww ygcgwwwww masks = [mask] * 2 base_x = -13 if going_right else self.cols - 2 - # Three dolphins offset in their path cycle (offsets 0, 12, 24) - start_ys = [8, 2, 5] + # Three dolphins offset in their path cycle (offsets 0, 12, 24). + # start_ys are the y positions at path offsets 0, 12, 24. + # With amplitude ±7 and center y=10 the arc spans y=3 (above waves) + # to y=10 (just below waterline), crossing the surface in both phases. + # Cumulative dy: offset 0→0, offset 12→-6, offset 24→-3 + # so start_ys = [10, 10-6, 10-3] = [10, 4, 7] + start_ys = [10, 4, 7] colors = ['b', 'B', 'C'] for i in range(3): is_lead = (i == 2)