Beginner coding


Joined
Jun 20, 2022
Messages
3
Reaction score
0
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
 
Ad

Advertisements

Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top