Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A 4x4 Field in Pygame
#21
You need to go back to the beginning. You miss understood.
Decide on a boiler plate. Then add code.
1. main loop handles events, drawing, and renders its to screen.
99 percent of computer problems exists between chair and keyboard.
Reply
#22
You are not drawing anything in the main game loop. You need to blit inside it to keep drawing the background every frame.

1) indent the pygame.display.flip() to inside the while loop
2) Put your screen.blit just before that in the while loop.
Recommended Tutorials:
Reply


Forum Jump:

User Panel Messages

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