Skip to content Skip to sidebar Skip to footer

Pygame (a Bit Racey) Game Bug

in the game when you first start it there's the game start menu/intro, it has 2 buttons (Start Game) (Quit) Now when you start the game and you're actually playing, when you press

Solution 1:

Because you're not waiting for the mouse button to be released before you trigger your buttons.

  • When pause() starts, it brings up two buttons.
  • User moves mouse to Main Menu.
  • User clicks mouse.
  • As soon as the mouse button is depressed, game_intro() is called, which puts a Quit button in the same place.
  • The mouse button is still depressed, so the game quits.

Post a Comment for "Pygame (a Bit Racey) Game Bug"