Our great sponsors
-
Pygame
🐍🎮 pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
First of all, if you are using pygame.key.get_pressed() then it is detected per frame, so if you press F3, it can be possible that by the time you pressed the button down and then up, it has already covered 8 frames of the game loop, which means your fullscreen variable is now back to what it was. So it is recommended you use pygame.event.get() for such type of key detections. Second, is your issue similar to the one described here : https://github.com/pygame/pygame/issues/2360