maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] Puzzletube on extras-devel (https://talk.maemo.org/showthread.php?t=75596)

AapoRantalainen 2011-08-08 10:54

[Announce] Puzzletube on extras-devel
 
1 Attachment(s)
Puzzle game called Puzzletube by theZiz is now on fremantle extras-devel. Download size is more than 10M. Optified.

Controls:
Menus: arrows + Enter
Gameplay: arrows to move + 'A' to swap + enter to menu + backspace to pause
Browsing highscores: 'q' + 'e'

(Controls are mimicking gamepad controller with 'start'/'select', shoulder buttons etc.)

Game:
Swap places of 'stones' to get four same colour in a block, then every connected same colour stones are removed and scored.

Make it faster:
Game runs ~15...22 fps with default settings.
Settings -> Stone quality: Flat (almost double fps)
Settings -> Stars : Off

It is possible to reach constant 59 fps (excluding exploding when it drops to 35 fps at worst case).

Check video (N900): http://www.youtube.com/watch?v=LOCe7gafd2M
And there are many more video with better quality and better gameplay.

Upstream and source code: https://github.com/theZiz/puzzletube
*Saving directory changed to /home/user/.puzzletube
*Not using system's libSDL-mixer

Shinigamijim 2011-08-08 17:04

Re: [Announce] Puzzletube on extras-devel
 
i dont quite get the game i was watching some videos but still....

do we need to make 4 in a row or something like that ?

which are the keys for the game ?

any tips to pro ourself ?

AapoRantalainen 2011-08-08 17:38

Re: [Announce] Puzzletube on extras-devel
 
Goal: Not row, but block of four (and then every connected same colour tile are removed)
Control: arrows to move and 'A' to swap places.

Start with only couple of colours and try to figure how to make combos. Really speaking I do not know how to make good score =)

amadeukaos 2011-08-08 23:51

Re: [Announce] Puzzletube on extras-devel
 
it closes right when it opened...
maybe if I run via xterm?
how can I do that?
thanks, for the video seens to be a great game

Shinigamijim 2011-08-09 02:05

Re: [Announce] Puzzletube on extras-devel
 
Quote:

Originally Posted by amadeukaos (Post 1066305)
it closes right when it opened...
maybe if I run via xterm?
how can I do that?
thanks, for the video seens to be a great game

its the exact same thing for me

archl 2011-08-09 10:54

Re: [Announce] Puzzletube on extras-devel
 
It works, but at 15~22 FPS.

And it crash sooner or later once game start. usually 3~6 breaks then all gone, beside, this game seems consume much Power than normal full-load games.

AapoRantalainen 2011-08-09 11:01

Re: [Announce] Puzzletube on extras-devel
 
Quote:

Originally Posted by amadeukaos (Post 1066305)
it closes right when it opened...
maybe if I run via xterm?
how can I do that?

It might miss some dependency, but I can't figure what it is. Start xterm and write:
Code:

cd /opt/puzzletube
./puzzletube


AapoRantalainen 2011-08-09 11:07

Re: [Announce] Puzzletube on extras-devel
 
Quote:

Originally Posted by archl (Post 1066507)
It works, but at 15~22 FPS.

This is normal. If you want more, tune graphic settings. E.g 'Stone quality=Flat' will double the speed.

Quote:

Originally Posted by archl (Post 1066507)
And it crash sooner or later once game start. usually 3~6 breaks then all gone, beside, this game seems consume much Power than normal full-load games.

I haven't seen crashing, and yes, it is critical. Game is using 3D-graphics and plays ogg files, they use much power.

There are rumours of new version, let see...

amadeukaos 2011-08-09 18:54

Re: [Announce] Puzzletube on extras-devel
 
Quote:

Originally Posted by AapoRantalainen (Post 1066512)
It might miss some dependency, but I can't figure what it is. Start xterm and write:
Code:

cd /opt/puzzletube
./puzzletube


It gives only one message:

Segmentation fault

amadeukaos 2011-08-09 19:46

Re: [Announce] Puzzletube on extras-devel
 
Woaaaaa, just updated my repositories and there is a new version, this working like a charm! :D

Thanks

archl 2011-08-10 00:07

Re: [Announce] Puzzletube on extras-devel
 
Sorry, it worked.

But still, even I got flated brick with no particle, hard***.

It still have unstable FPS around 20-45.

Beside, I was wrong, it didn't crash. It just stuck because game over. And please make short help in game, at least tell which key to use :D


Thank you for bringing this fun game to us.

TomppaS 2011-08-10 15:40

Re: [Announce] Puzzletube on extras-devel
 
Thank you Aapo for porting this game! The game seems to use library sparrow3d. Library's description:
Code:

Sparrow3D is an application framework with software renderer especially for open handhelds. The goal is to just write an application once and to compile it...
So the game is using software rendering instead of hardware rendering (OpenGL ES). So that migth explain why the game is slower and consume more power than some other games.

archl 2011-08-17 13:24

Re: [Announce] Puzzletube on extras-devel
 
Seems overclocking fix performance issue a bit.

Enough to me, however, I bet you will provide a mode completely disable audio, right?

That save CPU load will make game run smoother.

Ziz 2011-11-22 12:49

Re: [Announce] Puzzletube on extras-devel
 
Hi guys,

By accident (or more exact: because of boredom in my lecture) I searched "puzzletube" on google and found this. And then I remembered, that I had some correspondence with Aapo some months ago. But at one point, we decided to break up the exchange of mails, because I am working on a newer, better, and a bit more documented core - my new engine sparrow3D. Furthermore I changed the kind of drawing the 3D stuff. It is still a software renderer, but with another technique (with z-buffer, real z-tests and textures).
Here is the newest video of my game:
http://www.youtube.com/watch?v=1Ev7EMaFeQA

You see, I changed the font, too. It's a new, fast AVR-Tree based system. Whatever, it is still a lot to do, but as I said and read here, it seems, that there is interest to bring my games to maemo.

My engine works on many different handhelds. I do not know, whether I will support touchscreen (doesn't matter, whether multitouch or not) later, but I would really like to support the maemo Hardware Input devices in the engine.

So, if you would like to be part of my multi platform utopia, feel free to react to my post. If I see interest, I will add maemo to the supported architectures in Sparrow3D. Furthermore I would be interested in some fps values from you, Aapo, of the new release and engine. Just keep in mind, that you now have to compile TWO project: sparrow3d and puzzletube.

greetings, Ziz

Edit: Oh I forgot: the new system has (nearly) constant fps. That means: No really slowdown if something explodes. ;-) Oh and before you ask: There will be an "Arcade mode" with some Tutorial levels and an easier control later. :)

AapoRantalainen 2011-11-23 14:04

Re: [Announce] Puzzletube on extras-devel
 
Hi, I checked current code from sparraw3d and puzzletube.

Ifdefs on code are same than with Pandora, but there are no pnd_*.

Makefile
ifeq ($(TARGET),maemo)
+CPP = gcc -DARMCPU -DMAEMO $(GENERAL_TWEAKS)
+SDL = `sdl-config --cflags`
endif

But I'm not sure about SDL_SetVideoMode.

puzzletube.c:80 screen = spCreateWindow();
Returns null.

Add error checking for that. I needed debugger to invent that screen->w is reason for seg faulting (because screen==NULL).

I got 320x240 window running. Without optimizations (debug build) and without audio (with errors according missing audio) FPS=17.

And on N900, fullscreen will be faster than windowed.
--
I think game should be work on read-only directory also:
settings.c:155
*file=SDL_RWFromFile("./highscore.dat","wb");
-> not good
--
We have discussed about this earlier, but it is still kind of funny:
game.c: 1057 "Slart"
(Means Start)
--
Is 3dengine.c used at all any more?

Ziz 2011-11-23 14:30

Re: [Announce] Puzzletube on extras-devel
 
Quote:

Originally Posted by AapoRantalainen (Post 1127849)
Hi, I checked current code from sparraw3d and puzzletube.

Ifdefs on code are same than with Pandora, but there are no pnd_*.

pnd_*? Do you mean the libs? I comment these parts in sparrow3D out - it nevers worked on the pandora. XD

Quote:

Makefile
ifeq ($(TARGET),maemo)
+CPP = gcc -DARMCPU -DMAEMO $(GENERAL_TWEAKS)
+SDL = `sdl-config --cflags`
endif
I'll add this.

Quote:

But I'm not sure about SDL_SetVideoMode.

puzzletube.c:80 screen = spCreateWindow();
Returns null.

Add error checking for that. I needed debugger to invent that screen->w is reason for seg faulting (because screen==NULL).

I got 320x240 window running. Without optimizations (debug build) and without audio (with errors according missing audio) FPS=17.

And on N900, fullscreen will be faster than windowed.
That is not really fast... Are we talking about the textured mode? Oh and COMPLETELY without optimization? I never tried it without at least -Os... :D

Did you check the resolution of you N900? And the right parameters for creating the screen surface?

Quote:

I think game should be work on read-only directory also:
settings.c:155
*file=SDL_RWFromFile("./highscore.dat","wb");
-> not good
Hm, where is the exact problem?

Quote:

We have discussed about this earlier, but it is still kind of funny:
game.c: 1057 "Slart"
(Means Start)
Oops... I changed it. ^^ Just have to commit.

Quote:

Is 3dengine.c used at all any more?
No, every .c or .h file with no sparrow (doesn't matter, where exactl) in it, is old and obsolete. I will delete their later.

greetings, Ziz

AapoRantalainen 2011-11-24 11:44

Re: [Announce] Puzzletube on extras-devel
 
Quote:

Originally Posted by Ziz (Post 1127866)
pnd_*? Do you mean the libs?

Yes, -lpnd and include pnd_io_evdev.h.

And maybe it should be MAEMO5, not MAEMO, because MAEMO6 has different resolution.
Maemo5=N900=800x480 px
Maemo6=N950+N9 = 854x480 px

Quote:

Originally Posted by Ziz (Post 1127866)
That is not really fast... Are we talking about the textured mode? Oh and COMPLETELY without optimization? I never tried it without at least -Os... :D

Did you check the resolution of you N900? And the right parameters for creating the screen surface?

I tried couple of parameter-sets but not yet succeed to find working except that 320x240 (I know there are better resolution which works).


settings.c:155
-*file=SDL_RWFromFile("./highscore.dat","wb");
+//Not valid syntax and check existence of directories.
+*file=SDL_RWFromFile("/home/$USER/.puzzletube/highscore.dat","wb");

Ziz 2011-11-24 13:07

Re: [Announce] Puzzletube on extras-devel
 
Quote:

Originally Posted by AapoRantalainen (Post 1128367)
Yes, -lpnd and include pnd_io_evdev.h.

I will remove it.

Quote:

And maybe it should be MAEMO5, not MAEMO, because MAEMO6 has different resolution.
Maemo5=N900=800x480 px
Maemo6=N950+N9 = 854x480 px
I will change it.

Quote:

I tried couple of parameter-sets but not yet succeed to find working except that 320x240 (I know there are better resolution which works).
That is VERY strange, because, you said, it worked with the older puzzletube version. Do you have the old code still there? Please check the difference between spCreateWindow/spResizeWindow and resizeWindow (after an update! I forgot to add some MAEMO-specific code in my sparrowCore.c ...)

Quote:

settings.c:155
-*file=SDL_RWFromFile("./highscore.dat","wb");
+//Not valid syntax and check existence of directories.
+*file=SDL_RWFromFile("/home/$USER/.puzzletube/highscore.dat","wb");
Shouldn't be this file in /home/$USER/.config/puzzletube/highscore.dat if I use the freedesktop standard?

AapoRantalainen 2011-12-05 12:14

Re: [Announce] Puzzletube on extras-devel
 
New version on extras-devel, check video: https://www.youtube.com/watch?v=3zLTerG2Nho

There are only 15 fps but it still feels fast. If you have overclocked device or you focused better settings, please comment.

This version has three different way of control the game.
*'Snake' is what earlier version had (read it about first post).
*Default is wasd for swapping stones and arrows to move cursor.
*And then there are 'experimental'.

nokiabot 2013-06-08 09:13

Re: [Announce] Puzzletube on extras-devel
 
Whats up now?? And....no no no i must buy a gamepad:p


All times are GMT. The time now is 19:44.

vBulletin® Version 3.8.8