Changes in the game are not implemented until the display.update() has been called. Since games are constantly changing values, the update function is in the game loop, constantly updating. code example
Example: Changes in the game are not implemented until the display.update() has been called. Since games are constantly changing values, the update function is in the game loop, constantly updating.
#Game loop begins
while True:
# Code
# Code
.
.
pygame.display.update()