Welcome to Teemu’s Blog

Picture of me.

Hi, my name is Teemu Harju. I'm a 27-year-old engineer from Espoo, Finland and this is site is my contribution to the world wide web. I'll write here about all kinds of stuff that interests me. Python coding is my passion. I'm also interested in different kinds of web technologies.

Experimenting with Pygame on Nokia 770

It’s been a while since my last post to my blog and yesterday, while watching OC and lying on the couch, I thought I gotta post something. Then I started to browse through the Pygame site since I thought there might be something cool stuff that I could try on my Nokia 770.

First I started at the Gamelets section. I thought that these should be simple enough and work without any editing on the device. To be honest, that was not the case, but at least I got this small game called Spacepong working. It worked really nice and I could control the ball on the screen using the stylus. The game itself is not the coolest kind, but might offer a good example on how to develop games using Pygame. Here are some screenies from the game taken from Nokia 770.

Spacepong menu on Nokia 770

Spacepong game on Nokia 770

Now, encouraged from this nice experience with Pygame gamelets, I decided to go for the actual games. Since I’ve always liked Arkanoid I immediately wanted to try Pygame version of that called Nannoid. To my surprise, it also worked right out of the package. Well not fully. As you can see from the screenshots below, the game didn’t quite fit to the screen. Anyhow, this seems like something that would be really cool with some modifying.

Nannoid menu on Nokia 770

Nannoid game on Nokia 770

And remember people, this was all done while watching OC. ;) All you need to do is to install Python for Maemo. Then download the .tar.gz packages of the games, for example, to your memory card. Then go to the directory where you downloaded them using Xterm (MMC is found in /media/mmc1) and type “tar xzvf the_name_of_the_package.tar.gz”. Change to the directory that was extracted and start the game by typing “/var/lib/install/usr/bin/python2.4 the_name_of_the_file_that_starts_the_game”. If you have errors, you might have tried to start the wrong file or it just doesn’t work. If you find more games that would be cool for Nokia 770, I’d like to hear about it. That was all this time… happy gaming. :)

3 Responses to “Experimenting with Pygame on Nokia 770”

  1. Teemu’s Blog » Blog Archive » Nannoid 1.0 for Maemo Says:

    […] Teemu’s Blog The truth isn’t in here… « Experimenting with Pygame on Nokia 770 […]

  2. christine Says:

    hi teemu — with pygame i have problems with ‘no video mode large enough for ‘x’ by ‘y”. even if it’s like 20 pixels x 20 pixels. this happens when i ssh into my 770 and run the python script that way, but fullscreen 800×480 works if i do it directly on the n770 with xterm. thoughts? thanks!!

  3. Hillary Says:

    http://buycialis4.sblog.cz

Leave a Reply