Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : project: tetris


yokos
09-21-2007, 06:09 AM
This morning I tried gtktetris. Of course it's megalomaniac to port an action game for iLiad.

What? Tetris is an action game? Yep, rapid movements on screen. Not the same as a board game.

Oh, it's working & addictive. Screen refreshes need many tweaks, but playing level 1 is ok. I played it with USB & software keyboard, because I'm too stupid [right now] to add support of flipbar/up/dot/down buttons.

on my private to-do-list:
I have to learn to add support of iLiad's buttons. And fast please.

#1 tetris on iLiad's screen

Adam B.
09-21-2007, 06:13 AM
To support buttons, simply set the gtk title to "sh".

Also, it will need to be launched from the contentlister when testing.

nekokami
09-21-2007, 07:13 AM
Yokos, you're crazy. :) But I have to say I like your kind of insanity.

firekat
09-24-2007, 01:11 PM
Tetris?

No, no no! If you put Tetris on the iLiad all my time would be spent playing Tetris all day long! I am addicted to Tetris. I have to make sure it's not on any of my electronic devices. Same thing for Mahjong.

shhh, secretly a Tetris port sounds really neat!

mind
09-24-2007, 01:41 PM
Is there a refresh after every step a brick does? Is it smooth? All this sounds cool :)

Gogolo
01-22-2008, 02:08 PM
Hi yokos - any progess with tetris? Would be a nice game ...

Greetings
Gogolo

yokos
01-25-2008, 05:58 AM
Hi yokos - any progess with tetris? Would be a nice game ...
Well, to be honest I did nothing with it all the time. Thanks for your reminder.
So I did some work yesterday.

Right now I'm struggeling with the included graphics files [xpm] of the blocks. I wanna have them more iLiad friendly.
I edited them in Krita (http://www.koffice.org/krita/), but make doesn't like them. :angry: Whatever the crux is... :help:

Support of iLiad buttons is working now. :2thumbsup But I have to turn the blinking LED off. :p I could get a epileptic seizure when playing it. I have to check this out.

screenshot: keys/buttons layout. "drop block" should be flipping bar.

[EDIT]: Oh, problem with loading edited X PixMap files is solved:
First 2 lines of all xpm files have to be:
/* XPM */
static char * blocks_xpm[] = {
When editing the file big_blocks.xpm in Krita/GIMP it got:
/* XPM */
static char * big_blocks.xpm[] = {

Gogolo
01-25-2008, 10:34 AM
Oh cool you look at it again. Thanks.

You can edit xpm with gimp: http://www.gimp.org/

I could help here (just edited xpm for micropolis), if I know wheres the problem.
Edit: Ah I understood now: You could edit the images, but tetris didnt like them anymore, yes?

Greetings
Olivier