pygame port to S60 nokia phones.

Jussi Toivola has done some more on his pygame port to symbian s60 -- which many nokia phones run.

Here's some details of his progress on the port.

>>> Jussi Toivola writes:

new version is out(SVN 1844):

New features:
- png, jpg, gif and tif image support.
- Demo replaced with launcher application
-- liquid example ported to s60
-- Comes with initial pen\mouse support( no list scrolling yet )
- Lots of build script configuration
- Python embedded as a sis with byte-compiled libraries( PyS60 CE feature )

Detected limitations:
While implementing the launcher, I stumbled upon a problem with fonts.
Symbian's c-library (estlib) does not allow multiple open file handles
on a single file. This causes following code to fail on phone( works
on emulator ):

font1 = pygame.font.Font( None, 20 )
font2 = pygame.font.Font( None, 30)

On the second line pygame tries to open the default font file, but
fails in doing so. I worked around this by caching the surfaces of
rendered texts but it's good for static texts only. I don't know if
OpenC handles this better. Caching optimizes the screen updates anyway
so I'm not sure how severe limitation this actually is.

Also there is no event sent if S60 device's screen orientation
changes, thus it is not possible to handle it with pygame. Not with
events anyway and in portable way.


Sources are available at: svn://

The port is based on trunk revision 1760( pre 1.9.0 )


Popular posts from this blog

Is PostgreSQL good enough?

Experiments with new low latency PyPy garbage collector in a thread.

🐱‍🏍 — the first pygame 2 community game. Starting now! Are you in?