Python Forum
[PyGame] Game doesn't work after pause
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Game doesn't work after pause
#2
Its much more simple to use state machines to handle pause as well as only have one main game loop in your code. Classes would be nice too. With a pong game, the paddes should be classes, and the ball should be. Because of all that it makes it more work to find the issue. More work i dont want to do. I would suggest to read the pygame tutorials here on the forum. Your structure will eventually turn into spaghetti code the more you add.
Recommended Tutorials:
Reply


Messages In This Thread
Game doesn't work after pause - by Owenix - Sep-19-2018, 04:27 PM
RE: Game doesn't work after pause - by metulburr - Sep-20-2018, 02:36 AM
RE: Game doesn't work after pause - by nilamo - Sep-20-2018, 08:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  can't get collision detection to work in platform game chairmanme0wme0w 10 4,010 Aug-19-2022, 03:51 PM
Last Post: deanhystad
  Movement after KEYUP, only after pause func esteel 2 3,341 Aug-22-2018, 03:03 PM
Last Post: Windspar
  Python Pygame help pause event Trajme 0 3,427 Dec-06-2017, 09:14 PM
Last Post: Trajme

Forum Jump:

User Panel Messages

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