Why do I get blank grey background instead of animations in PyGame?
问题 I am creating the Environment class. The function init should build the simulated environment, while the function run should execute different events in this environment during 10 seconds. Below I share some major parts of my code. When I run env = Environment("TEST") env.run() (see below), the window with grey screen appears. Then it closes in 10 seconds. Nothing is visible in this screen. It's just a grey background. However, I do not get any error message. What am I doing wrong in the