![]() |
A 4x4 Field in Pygame - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Game Development (https://python-forum.io/forum-11.html) +--- Thread: A 4x4 Field in Pygame (/thread-20447.html) |
RE: A 4x4 Field in Pygame - Windspar - Aug-20-2019 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. RE: A 4x4 Field in Pygame - metulburr - Aug-20-2019 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. |