Pygame


hmn

Member
Joined
Mar 8, 2010
Messages
226
I've made an experimental build of Python 2.6.6 and Pygame 1.9.1 available here: python-2.6-pygame-1.9.1-wiz1.tar.bz2.
The package should be extracted to the root of the SD card and currently takes up at least 32MB (may grow as bytecode gets cached).

I don't know yet if this really makes sense performance wise, so far I only ran this simple program:

Code:
import pygame
from pygame.locals import *

pygame.display.init()
pygame.joystick.init()

screen = pygame.display.set_mode( (320,240) )
js = pygame.joystick.Joystick( 0 )
js.init()

run = True
while run:
    for e in pygame.event.get():
        print e
        if e.type in ( JOYBUTTONDOWN, KEYDOWN, QUIT ):
            run = False

    screen.fill((255,0,0))
    pygame.display.flip()
 
Last edited:
Well, I tested this with a game prototype I've been working on, and it seems to run at ~2 FPS with music/sfx turned off :-/
 
Back
Top