I've playing with pygame a little and reading about it and i tried to make a simple rock paper scrissors game. I can't seem to get fullscreen working. Everything i've tried or read didnt work. Can u please help me? thanks
I used to play around with SDL in my C++ days. PyGame is based on SDL. I know in C++ you can use something like ...
[php]SDL_Surface *screen;
screen = SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE | SDL_RESIZABLE);
[/php]This should have carried over to PyGame. You might use something like this ...
[php]
import pygame
pygame.init()
# change to whatever your full screen size might be
size = width, height = 800, 600
screen = pygame.display.set_mode(size)
import pygame
from pygame.locals import * #need this for 'FULLSCREEN' value
pygame.init()
WIDTH=800
HEIGHT=600
pygame.display.set_mode((WIDTH,HEIGHT),FULLSCREEN)
also - make sure you include code to quit the app or you won't get out. (ev.type==QUIT doesnt work in fullscreen, and locked up my mac, win or linux may be different)
Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.
This thread is more than three months old
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.