From 195647601d46cec91eb8b3efbd8d6bccdc2d0b4c Mon Sep 17 00:00:00 2001 From: tsmith37 Date: Mon, 6 Oct 2025 16:28:16 -0400 Subject: [PATCH] Finished moving the pieces to look like a the game was being played I have finished my project and it was a little challenging but the pride i have for completing it has been priceless. I would like to learn more on how to animate thing in more detail tho. --- drawing.py | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drawing.py b/drawing.py index df1c112..12abee1 100644 --- a/drawing.py +++ b/drawing.py @@ -90,44 +90,45 @@ def game(times): for frame in animate(40): game(1) - + "blue coin rows" forward(75) blue_row(1) flyto(-275, -150) - with frame.translate([0, 0], [50, 50]): + with frame.translate([0, 0], [50, 50], 1, 5): blue_coin(25) - flyto(-175, -150) - with frame.translate([0, 0], [50, 50]): + flyto(-175, -150) + with frame.translate([0, 0], [50, 50], 10, 15): - blue_coin(25) - flyto(-75, -150) - with frame.translate([0, 0], [50, 50]): - - blue_coin(25) + blue_coin(25) + flyto(-75, -150) + with frame.translate([0, 0], [50, 50], 20, 25): + + blue_coin(25) flyto(25, -150) - with frame.translate([0, 0], [50, 50]): + with frame.translate([0, 0], [50, 50], 30, 35): blue_coin(25) - + + "red coin rows" flyto(-275, 150) red_row(1) flyto(-225, 100) - with frame.translate([0, 0], [-50, -50]): + with frame.translate([0, 0], [-50, -50], 5, 10): red_coin(25) flyto(-125, 100) - with frame.translate([0, 0], [-50, -50]): + with frame.translate([0, 0], [-50, -50], 15, 20): red_coin(25) flyto(-25, 100) - with frame.translate([0, 0], [-50, -50]): + with frame.translate([0, 0], [-50, -50], 25, 30): red_coin(25) flyto(75, 100) - with frame.translate([0, 0], [-50, -50]): + with frame.translate([0, 0], [-50, -50], 35, 40): red_coin(25) flyto(-300, 200)