Python Forum
[PyGame] How do I add more balls to basic Pong game?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] How do I add more balls to basic Pong game?
#2
Is this homework? Are you restricted in what you can use?

I would use a class to handle the ball. Then created numerous objects from that class based on your factors. Here is an example. And here is an example of using that class to create a ball and add it to the list of balls.
Recommended Tutorials:
Reply


Messages In This Thread
RE: How do I add more balls to basic Pong game? - by metulburr - Apr-18-2019, 05:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation pong paddles wont move skullkat232 5 2,639 Feb-13-2023, 03:53 PM
Last Post: Vadanane
  Problem with my pong code Than999 3 3,679 Oct-22-2021, 08:50 AM
Last Post: Qanima
  Game “Pong” I have problems with the code BenBach18 2 3,665 Jan-10-2021, 05:16 PM
Last Post: michael1789
  [PyGame] Creating Pong in Pygame Russ_CW 2 2,955 Oct-11-2020, 11:56 AM
Last Post: Russ_CW
  Trying to make a simple pong game. kevindadmun 1 4,071 Aug-05-2019, 06:39 AM
Last Post: kevindadmun
  Smiley Pong Help Jasmineleroy 6 4,978 May-22-2019, 11:36 AM
Last Post: metulburr
  [PyGame] Pong game key.event problem erickDarko 2 4,338 Dec-12-2018, 03:17 PM
Last Post: erickDarko
  [PyGame] Basic Snake game (using OOP) PyAlex 1 12,741 Sep-10-2018, 09:02 PM
Last Post: Mekire

Forum Jump:

User Panel Messages

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