The Following 4 Users Say Thank You to cripes For This Useful Post: | ||
![]() |
2008-08-15
, 03:15
|
Posts: 111 |
Thanked: 31 times |
Joined on Nov 2007
|
#3
|
![]() |
2008-08-15
, 17:58
|
Posts: 111 |
Thanked: 31 times |
Joined on Nov 2007
|
#4
|
![]() |
2011-10-17
, 07:36
|
Posts: 440 |
Thanked: 160 times |
Joined on Aug 2010
@ Las Vegas, NV
|
#5
|
![]() |
Tags |
tetris pygame python |
|
In the spirit of free and open software, I'm attaching the current state of the script. The graphics are very basic and the menu system and high score entry are in a very experimental state. The bonus is the full game is contained within the single 36kb file.
To run, just download the file (and extract it from the zip -- using for example squishee
Controls:
Main menu
"C" for classic mode, "40" for forty lines, "3:00" for 3 minute time trial
Toggle "Easy"/"Med"/"Hard" difficulty, "X", Escape or Fullscreen button to exit.
During play
* Use the D control to move the piece. Press up or enter (center button) to rotate the piece
* Use the touchscreen - touch below the piece to move it down, left of the piece to move it left, right to move it right, above and left to rotate anti-clockwise, above and right to rotate clockwise (I'm still tweaking the controls and sensitivity)
* Press the fullscreen button to exit at any time (or press escape on keyboard)
[I haven't implemented a pause button yet]
High Score Screen
High scores are saved in the users home directory. Separate high scores are kept for each game type and difficulty level.
High score screen will show whether or not you receive a high score
If you receive a high score, a virtual keyboard will show at the left of screen so you can tap in your name (very basic). The "<" is a backspace. Press fullscreen button or escape when you are done.
[Currently, the only way to browse high scores is to start the game and then exit it]
Short of fixing bugs and minor features, I'm unlikely to do much more with this game. Tetris is pretty much old hat these days and there's plenty of opportunity to write more interesting software for the tablets. the touchscreen is so liberating, yet its frustrating to see how so few devs are taking advantage of it on the maemo platform.
EDIT: Attached new ver that increases frame rate and fixes high score entry bug (virtual keyboard showed even if a high score was not earned). deb + icons coming soon...
Last edited by cripes; 2008-08-09 at 02:24.