I am studying pygame and in the vast majority of tutorials it is said that one should run pygame.init()
before doing anything. I was doing one particular tutorial and typing out the code as one does and noticed that in example after example there is no pygame.init()
and no other explicit initialisation of any modules.
For instance, the following works (for me, at least) without any issues:
import pygamescreen = pygame.display.set_mode((600, 400))while True:for event in pygame.event.get():if event.type == pygame.QUIT:raise SystemExit
Just wondering how to find out exactly what is initialised when pygame.init()
is run and what is initialised when pygame.init()
is not run.