Tema: pygame
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/03/2010, 14:03
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 2 meses
Puntos: 1360
Respuesta: pygame

???????!!!!

Seguro que has utilizado python?
por que python no genera ejecutables, o al menos no por defecto.

En cuanto a la versión, la mas reciente es la 1.9.1. No deberias tener problema por el windows pero debes de checar que sea, que sea la misma version de python que estes utilizando.

Aca te dejo un hola mundo en pygame
Código Python:
Ver original
  1. import pygame
  2.  
  3. class Text:
  4.     def __init__(self, FontName = None, FontSize = 30):
  5.         pygame.font.init()
  6.         self.font = pygame.font.Font(FontName, FontSize)
  7.         self.size = FontSize
  8.  
  9.     def render(self, surface, text, color, pos):
  10.         text = unicode(text, "UTF-8")
  11.         x, y = pos
  12.         for i in text.split("\r"):
  13.             surface.blit(self.font.render(i, 1, color), (x, y))
  14.             y += self.size  
  15.  
  16. pygame.init()
  17. white = (255, 255, 255)
  18. size = width, height = 640, 480
  19. screen = pygame.display.set_mode(size)
  20. pygame.display.set_caption("Pygame Hello Word!")
  21. color = (0, 0, 0)
  22. text = Text()
  23.  
  24. while True:
  25.     for event in pygame.event.get():
  26.         if event.type == pygame.QUIT:
  27.             exit()
  28.         if event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE:
  29.             exit()
  30.     screen.fill(color)
  31.     text.render(screen, "Hello Word!", white, (0, 0))
  32.     pygame.display.flip()