Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with my pong code
#4
(Sep-08-2021, 06:18 AM)Yoriz Wrote: Line 80
if ball.ycor() > -290:
should be
if ball.ycor() < -290:

Line 88
if ball.xcor() > -390:
should be
if ball.xcor() < -390:

Thanks. I am also facing the same situation as you posted
fall guys
Reply


Messages In This Thread
Problem with my pong code - by Than999 - Sep-08-2021, 01:15 AM
RE: Problem with my pong code - by Yoriz - Sep-08-2021, 06:18 AM
RE: Problem with my pong code - by Than999 - Sep-09-2021, 11:33 AM
RE: Problem with my pong code - by Qanima - Oct-22-2021, 08:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation pong paddles wont move skullkat232 5 2,285 Feb-13-2023, 03:53 PM
Last Post: Vadanane
  Game “Pong” I have problems with the code BenBach18 2 3,450 Jan-10-2021, 05:16 PM
Last Post: michael1789
  [PyGame] Creating Pong in Pygame Russ_CW 2 2,775 Oct-11-2020, 11:56 AM
Last Post: Russ_CW
  Trying to make a simple pong game. kevindadmun 1 3,868 Aug-05-2019, 06:39 AM
Last Post: kevindadmun
  Smiley Pong Help Jasmineleroy 6 4,650 May-22-2019, 11:36 AM
Last Post: metulburr
  [PyGame] How do I add more balls to basic Pong game? JUtah 2 4,372 Apr-18-2019, 08:40 PM
Last Post: JUtah
  [PyGame] Pong game key.event problem erickDarko 2 4,130 Dec-12-2018, 03:17 PM
Last Post: erickDarko

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020