domingo, 8 de marzo de 2015

Pantalla inicial en Pygame

import pygame, random, sys
from pygame.locals import * #Nombres de constantes
pygame.init()
disp = pygame.display.set_mode((400, 300))
pygame.display.set_caption('Hola mundo!')
while True:
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
    pygame.display.update()

No hay comentarios:

Publicar un comentario