I install PyGame and OpenGL to my PyCharm for my cube but my problem is the cube never pop up.
Asked
Active
Viewed 36 times
1 Answers
0
We will need some code to be able to help you.
Here is a basic checklist, did you:
- create the cube from an image? 1.1. If yes, is the name correct? 1.2. Is the image in the correct working directory (accessible by the script given its path)?
- create the cube with pygame.Surface? 2.1. is the color something different than black?
- have you called screen.blit(your_cube) to copy the cube image/surface on the screen's surface?
- have you called pygame.display.flip() to update the whole display accordingly?
- do you have any screen.fill(color)? 5.1. if yes, is that placed before blitting anything? Otherwise you would just blit your cube and erase it right after

SuperFola
- 46
- 2
- 4