maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Flappy Bird for N9 (https://talk.maemo.org/showthread.php?t=92794)

laith.m.y 2014-03-18 22:38

Re: Flappy Bird for N9
 
Quote:

Originally Posted by elros34 (Post 1417393)
Sound works but it's just disabled by developer in script.js file.


I don't know n9 but on n900 enabling opengl make it usable. Check -graphicssystem opengl as a argument.

蝉曦m, thanks DoodleJump works nice on n900. I just need to change rs.reading.y to -rs.reading.x.

can you explain more how to enable the sound from script.js ?

and how to enable opengl? (because the game run very slow on my n900)

thanx in advance

freemangordon 2014-03-19 07:31

Re: Flappy Bird for N9
 
Quote:

Originally Posted by laith.m.y (Post 1417555)
can you explain more how to enable the sound from script.js ?

and how to enable opengl? (because the game run very slow on my n900)

thanx in advance

I think one should open a separate thread for n900 (not me, I am really not that interested in gaming).

however, the "trick" to enable HW acceleration on n900 is:
Code:

QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
    : QDeclarativeView(parent)
    , d(new QmlApplicationViewerPrivate())
{
#ifdef Q_WS_MAEMO_5
    setAttribute(Qt::WA_Maemo5LandscapeOrientation);

    engine()->addImportPath(QString("/opt/qtm11/imports"));
    engine()->addPluginPath(QString("/opt/qtm11/plugins"));

    setViewport(new QGLWidget);
#endif

    setViewportUpdateMode(QGraphicsView::FullViewportUpdate);

    setAttribute(Qt::WA_OpaquePaintEvent);
    setAttribute(Qt::WA_NoSystemBackground);

    viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
    viewport()->setAttribute(Qt::WA_NoSystemBackground);

.
.
.

here http://46.249.74.23/flappybird.tar.gz you can download working .deb/source for n900, based on the last before the final (or final, I am not sure) version of flappybird for n9

elros34 2014-03-19 08:23

Re: Flappy Bird for N9
 
Quote:

Originally Posted by laith.m.y (Post 1417555)
can you explain more how to enable the sound from script.js ?

and how to enable opengl? (because the game run very slow on my n900)

thanx in advance

for sound you must uncomment (remove //)
Code:

//    if(mp3=="start"){playMusic1.play() ..
at the end of script.js file

for better performance you can do what freemangordon said or run game with parameter:
meecolay pathToGame/DoodleJump -graphicssystem opengl

laith.m.y 2014-03-19 15:08

Re: Flappy Bird for N9
 
Quote:

Originally Posted by freemangordon (Post 1417600)
here http://46.249.74.23/flappybird.tar.gz you can download working .deb/source for n900, based on the last before the final (or final, I am not sure) version of flappybird for n9

this .deb works very very good and the game is smoother than enable opengl


Quote:

Originally Posted by elros34 (Post 1417609)
for sound you must uncomment (remove //)
Code:

//    if(mp3=="start"){playMusic1.play() ..
at the end of script.js file

for better performance you can do what freemangordon said or run game with parameter:
meecolay pathToGame/DoodleJump -graphicssystem opengl

now the sound work fine , although the code in script.js miss the hit sound


thank you both for help :)

pmeuh 2014-03-23 15:20

Re: Flappy Bird for N9
 
Just a quick bug report, I don't know why I should die in this situation:
http://uppix.net/dIsoQr.png
Thansk for this app anyway, it's really good even though I'm really bad :D

If someone speaks Chinese and can report the programmer ;)
Cheers

DJJonosound 2014-03-24 03:00

Re: Flappy Bird for N9
 
Its because the hitbox is just the square of the png, even if its transparent, The dev is well aware of this.

蝉曦m 2014-03-26 05:02

Re: Flappy Bird for N9
 
Quote:

Originally Posted by DJJonosound (Post 1418264)
Its because the hitbox is just the square of the png, even if its transparent, The dev is well aware of this.

I'll make a update in two days

蝉曦m 2014-03-26 05:06

Re: Flappy Bird for N9
 
Quote:

Originally Posted by freemangordon (Post 1417600)
I think one should open a separate thread for n900 (not me, I am really not that interested in gaming).

however, the "trick" to enable HW acceleration on n900 is:
Code:

QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
    : QDeclarativeView(parent)
    , d(new QmlApplicationViewerPrivate())
{
#ifdef Q_WS_MAEMO_5
    setAttribute(Qt::WA_Maemo5LandscapeOrientation);

    engine()->addImportPath(QString("/opt/qtm11/imports"));
    engine()->addPluginPath(QString("/opt/qtm11/plugins"));

    setViewport(new QGLWidget);
#endif

    setViewportUpdateMode(QGraphicsView::FullViewportUpdate);

    setAttribute(Qt::WA_OpaquePaintEvent);
    setAttribute(Qt::WA_NoSystemBackground);

    viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
    viewport()->setAttribute(Qt::WA_NoSystemBackground);

.
.
.

here http://46.249.74.23/flappybird.tar.gz you can download working .deb/source for n900, based on the last before the final (or final, I am not sure) version of flappybird for n9

what a good job,canyou explain the N9 how to enable opengl?
I don't know anything about the Meego api of Qt

freemangordon 2014-03-26 10:25

Re: Flappy Bird for N9
 
Quote:

Originally Posted by 蝉曦m (Post 1418522)
what a good job,canyou explain the N9 how to enable opengl?
I don't know anything about the Meego api of Qt

On Harmattan (the OS that runs on N9/50) gles acceleration is enabled by default for QT applications (AFAIK), no special measures should be taken.

DJJonosound 2014-03-26 11:47

Re: Flappy Bird for N9
 
Quote:

Originally Posted by 蝉曦m (Post 1418521)
I'll make a update in two days

Awesome, thanks.


All times are GMT. The time now is 15:32.

vBulletin® Version 3.8.8