Python Forum
[PyGame] Screen is all black and nothing is updating, but I can't figure out why.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Screen is all black and nothing is updating, but I can't figure out why.
#11
Quote:I would look at @Mekire repos for an example of retaining aspect ratio. You have to constantly update the screen's dimensions. The best way to do this is the create a screen pygame rect that is updated with the screens dimensions. Then apply all objects within that rect. Its been a long time since i did pygame so i could not make a specific example anymore.
Ok, I'll apply this to my code.
Quote:Also can you please make a runnable example next time so people can copy and paste in one shot to run your code instead of piecing it together. Ill do that here.
Yes, I'll make sure to do that next time.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  what's not working? black window codeweak 3 721 Dec-07-2023, 02:32 AM
Last Post: Benixon
  [PyGame] When I hit the space bar from the home screen, it sends me to the game over screen JesusisKing 1 952 Apr-30-2023, 10:11 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020