barnesy
Member
Hi all,
I've just released the first version of a Tetris port using pygame. You can download it here.
I've just written a readme, so may as well stick it here too:
This is pyTetris - a simple Tetris port for the gp2x handheld, built using pygame and python. The original version I modified is here: http://www.pygame.org/projects/21/133/
I don't think people have realised quite how exciting pygame is yet - I had never tried programming in Python until yesterday, but now feel like I can get fairly decent results with quite a small amount of effort. This port was very easy! I can happily try to answer questions on hat I've learned so far if it'll help.
Installation
============
You'll need to install theoddbot's python and pygame package to run this. You can find that and some info about it here: http://www.gp32x.de/board/index.php?showtopic=22505&hl=
To install python, you just need to download the zip file and copy the entire 'python' directory to the root of your SD card.
To install pyTetris, just copy the whole of the directory from this zip file into the root of your SD card. If you want it to run from anywhere other than \pyTetris you'll need to edit the .GPE file to match the new location.
How to play
===========
It's Tetris.
Controls
========
Joystick left and right - move blocks sideways
Joystick down - Make blocks move more quickly
Button X - Rotate left
Button B - Rotate right
Start button - Pause and restart
Select button - Quit
The future
==========
I've remarked out all the sound code for now, but I'll bring that back in at some point. And the high score code needs bringing back too.
Thanks to theoddbot for bringing python to the gp2x and for answering my questions on #gp2xdev, and thanks to Pea for the background image.
Enjoy!
Barnesy
I've just released the first version of a Tetris port using pygame. You can download it here.
I've just written a readme, so may as well stick it here too:
This is pyTetris - a simple Tetris port for the gp2x handheld, built using pygame and python. The original version I modified is here: http://www.pygame.org/projects/21/133/
I don't think people have realised quite how exciting pygame is yet - I had never tried programming in Python until yesterday, but now feel like I can get fairly decent results with quite a small amount of effort. This port was very easy! I can happily try to answer questions on hat I've learned so far if it'll help.
Installation
============
You'll need to install theoddbot's python and pygame package to run this. You can find that and some info about it here: http://www.gp32x.de/board/index.php?showtopic=22505&hl=
To install python, you just need to download the zip file and copy the entire 'python' directory to the root of your SD card.
To install pyTetris, just copy the whole of the directory from this zip file into the root of your SD card. If you want it to run from anywhere other than \pyTetris you'll need to edit the .GPE file to match the new location.
How to play
===========
It's Tetris.
Controls
========
Joystick left and right - move blocks sideways
Joystick down - Make blocks move more quickly
Button X - Rotate left
Button B - Rotate right
Start button - Pause and restart
Select button - Quit
The future
==========
I've remarked out all the sound code for now, but I'll bring that back in at some point. And the high score code needs bringing back too.
Thanks to theoddbot for bringing python to the gp2x and for answering my questions on #gp2xdev, and thanks to Pea for the background image.
Enjoy!
Barnesy
Last edited by a moderator: