Hello, I am a beginner coder who is following a youtube tutorial on how to make games in python. I am stuck on this part, and I have checked the code multiple times, and it looks to be identical with the code in the video. I can't get the paddle to show up on the left hand side of the screen. Help would be greatly appreciated.
Tutorial:
Here is what I have:
# Setup
import turtle
wn = turtle.Screen()
wn.title("Pong Game")
wn.bgcolor("black")
wn.setup(width=800, height=600)
wn.tracer(0)
# Main Game Loop
while True:
wn.update()
# Paddle A
paddle_a = turtle.Turtle()
paddle_a.speed(0)
paddle_a.shape("square")
paddle_a.color("white")
paddle_a.shapesize(stretch_wid=5, stretch_len=1)
paddle_a.penup()
paddle_a.goto(-350, 0)
(there are 4 spaces before wn.update(), the forum automatically deletes the spaces for some reason
Tutorial:
Here is what I have:
# Setup
import turtle
wn = turtle.Screen()
wn.title("Pong Game")
wn.bgcolor("black")
wn.setup(width=800, height=600)
wn.tracer(0)
# Main Game Loop
while True:
wn.update()
# Paddle A
paddle_a = turtle.Turtle()
paddle_a.speed(0)
paddle_a.shape("square")
paddle_a.color("white")
paddle_a.shapesize(stretch_wid=5, stretch_len=1)
paddle_a.penup()
paddle_a.goto(-350, 0)
(there are 4 spaces before wn.update(), the forum automatically deletes the spaces for some reason