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.
This commit is contained in:
tsmith37
2025-10-06 16:28:16 -04:00
parent 0e837809cf
commit 195647601d

View File

@@ -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)