From 7f65079d8b6d2d206339828bc38b93b360e527fd Mon Sep 17 00:00:00 2001 From: ilmabura Date: Sat, 4 Oct 2025 13:50:15 -0400 Subject: [PATCH] Commit 4: Created penguins that move forward I actually figured out how to do this by accident. I meant to check how my penguin positions were changing but then I got it moving. I think it's funny that I thought it was going to be very difficult to figure it out. It wasn't. I think I am a bit hesitant to attempt the jump because I don't know where to start. I still don't know why I need to press enter to get the animation going. --- __pycache__/penguins.cpython-312.pyc | Bin 1161 -> 1161 bytes diving_penguins.py | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/__pycache__/penguins.cpython-312.pyc b/__pycache__/penguins.cpython-312.pyc index 38b1c6df8db6ca227d6ba76c510a465d0cfa8fcd..acd150d7ece7dcd6d8214735a550c549a69fa406 100644 GIT binary patch delta 20 acmeC=?BwJ=&CAQh00cW8-rdMu#{vL0o(0nY delta 20 acmeC=?BwJ=&CAQh00aiJ?`-6*V*vm$Jp}{+ diff --git a/diving_penguins.py b/diving_penguins.py index a9a067b..8b207c5 100644 --- a/diving_penguins.py +++ b/diving_penguins.py @@ -3,9 +3,11 @@ from penguins import * from drawing import * for frame in animate(60, debug=False, loop=True): - if frame.index%2==0: + if frame.index%6==0: + penguins(120,345,35) + elif frame.index%6==1: penguins(120,0,0) else: - penguins(120,345,35) + penguins(60,0,0) input() \ No newline at end of file