pygame.init() -> passed, failed
autoinitialize all imported pygame modules
Initialize all imported pygame modules. Including pygame modules
that are not part of the base modules (like font and image).
It does not raise exceptions, but instead silently counts which
modules have failed to init. The return argument contains a count
of the number of modules initialized, and the number of modules
that failed to initialize.
You can always initialize the modules you want by hand. The
modules that need it have an init() and quit() routine built in,
which you can call directly. They also have a get_init() routine
which you can use to doublecheck the initialization. Note that
the manual init() routines will raise an exception on error. Be
aware that most platforms require the display module to be
initialized before others. This init() will handle that for you,
but if you initialize by hand, be aware of this constraint.
As with the manual init() routines. It is safe to call this
init() as often as you like. If you have imported pygame modules
Also am besten am Anfang.
Ich würde auch die event.get() Schleife benutzen. Dann bekommst du auch alle Events. Zumindest habe ich es bisher immer so gemacht.