generated from mwc/project_drawing
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.
This commit is contained in:
Binary file not shown.
@@ -3,9 +3,11 @@ from penguins import *
|
|||||||
from drawing import *
|
from drawing import *
|
||||||
|
|
||||||
for frame in animate(60, debug=False, loop=True):
|
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)
|
penguins(120,0,0)
|
||||||
else:
|
else:
|
||||||
penguins(120,345,35)
|
penguins(60,0,0)
|
||||||
|
|
||||||
input()
|
input()
|
||||||
Reference in New Issue
Block a user