I just made a pygame when you click the screen it changes the color to a random color stored in a variable called backgroundColor. At the beginning of the while loop it does display.fill(backgroundColor)
.I started clicking the screen really fast. But after about 8,000 cycles the screen turns white and stops doing anything. Does anyone know why the game crashes after so many color changes.
↧
Pygame keeps crashing
↧