don't see game when I hit run button
z9612 last edited by
I'm following a tutorial from codeacademy: https://www.youtube.com/watch?v=XGf2GcyHPhc
When I hit the play button to run in Pythonista nothing happens, in the tutorial the black screen for the "pong" game appears
can anyone help?
my code is:
wn = turtle.Screen()
wn.title("pong by zach")
main game loop
stephen last edited by
im not familier with
turtlebut i assume with the code you provided this is expected.. after addingba coupe lines and removing the assuming unneeded call to update and getting the current screen instead of making a new one i got it o draw.
import turtle wn = turtle.getscreen() wn.title("pong by zach") wn.bgcolor("black") wn.setup(width=800,height=600) wn.tracer(0) t=turtle.Turtle() t.color('#23ff00') live=1 while live: t.forward(10) if t.position() > 150: live=0