Ive been trying to make a game recently but all pygame windows freeze. i have to use the Task Manager to exit. I also have to use it to exit a fullscreen too. All im doing in my code is opening a blank screen. How can i fix that?
TheSkunkMan
0
Newbie Poster
Recommended Answers
Jump to Posthmm well i've little experience with pygame myself but are you sure your not missing something in your code?
i think you need to type stuff like pygame.init() and you have to flip the display stuff like that, like i said i'm not too sure but if you go on …
Jump to PostThis the most basic test for PyGame that I have, give it a fly ...
import pygame from pygame.locals import * yellow = (255,255,0) # RGB color tuple # initialise screen pygame.init() screen = pygame.display.set_mode((350, 250)) pygame.display.set_caption('Basic Pygame program') # fill background background = pygame.Surface(screen.get_size()) background = …
All 7 Replies
a1eio
16
Junior Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
TheSkunkMan
0
Newbie Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
bumsfeld
413
Nearly a Posting Virtuoso
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
TheSkunkMan
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.