PDA

View Full Version : New port : LBreakout2


Yann Benigot
03-16-2008, 03:28 PM
I made a port of LBreakout2 for ITOS2008.
What has been changed from the original code :

When the game asks you to choose between y (yes) or n (no), you can use the zoom keys : the + key is for "yes", the "-" key is for "no".
The original game uses the relative movement of the mouse to move the paddle. It is unplayable with a tablet. I edited client/paddle.c to make the paddle follow exactly the mouse when clicking on the left button. On the tablet, the paddle will follow your stylus.
The game can only do fullscreen. When the windowed mode was activated, it was unplayable.

Known problems :

The default online game server doesn't seem to work...
If you have a N800 without keyboard, using the level editor will be difficult because you have to type your name...
The port only do 640*480. The frame rate is a bit low, but the game is still playable.


http://yannbng.free.fr/Maemo/lbreakout2.png
Deb file here (http://yannbng.free.fr/Maemo/lbreakout2-2.6beta_7-1_armel.deb)
Modified source code (http://yannbng.free.fr/Maemo/lbreakout2-2.6beta-7.tar.gz)

MiBi
03-16-2008, 04:02 PM
Nice, will try :)

Thank's MiBi

Rocketman
03-16-2008, 04:41 PM
Now if only Nokia had the foresight to put some accelerometers in the n810...

CyberCat
03-16-2008, 06:14 PM
Thank you! I really like this game. It actually had an error at the end of the installation "installation error, install aborted" or something, seems to play fine anyway. :D

I don't know what you meant about the speed, it seems to play full speed to me. Anybody else play this sideways?

Mara
03-16-2008, 06:22 PM
Nice... Refresh my memories when I played Arkanoid on Atari 520ST about 20 years ago... :eek:

Yann Benigot
03-16-2008, 06:23 PM
You're welcome :-)
I wanted to say the frame rate was a bit low. I corrected the original post.

qwerty12
03-17-2008, 03:28 AM
@Yann

I think you are putting this port down too much. :)

People like games full screen, I can play quite well until the stylus gets in the way >.< and you set it up so d-pad works too.

Thanks for the game! :)

El Amir
03-17-2008, 04:31 AM
U rule Yann ! :)

ArnimS
12-10-2009, 10:55 AM
Bump for N900 and accelerometer support!

Aweb
12-10-2009, 12:29 PM
Same here !

DaSilva
12-11-2009, 08:48 AM
Would be awesome!

白い熊
12-11-2009, 10:02 AM
I made a port of LBreakout2 for ITOS2008.


The port only do 640*480. The frame rate is a bit low, but the game is still playable


Your port runs on the N900 as well. It's quite fast, in fact not slow at all, very playable.

Could you give me a hint on which portions of the code you had to modify (pointers...) to make it run fullscreen, as I want to make other apps run fullscreen on the N900 and can't get them to?

Thank you.

qwerty12
12-11-2009, 10:13 AM
Could you give me a hint on which portions of the code you had to modify (pointers...) to make it run fullscreen, as I want to make other apps run fullscreen on the N900 and can't get them to?


Isn't this specific to the toolkit being used?

In this case, LBreakout2, utilizing SDL, sets the SDL_FULLSCREEN flag.
A GTK program would use gtk_window_fullscreen(GTK_WINDOW(window));, etc.

Try building wmctrl (http://tripie.sweb.cz/utils/wmctrl/) if you want a generic solution; http://www.emacswiki.org/emacs/FullScreen has the basic command usage for using wmctrl to fullscreen the currently displayed window.

白い熊
12-11-2009, 12:26 PM
Yeah, wmctrl was the first thing I tried. Doesn't work. It sets the app fullscreen not covering the top hildon bar... Tried hard with it, no go. Unless I'm missing something.