![]() |
2014-03-19
, 07:31
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#52
|
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
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); . . .
![]() |
2014-03-19
, 08:23
|
Posts: 578 |
Thanked: 994 times |
Joined on Dec 2012
|
#53
|
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
// if(mp3=="start"){playMusic1.play() ..
The Following User Says Thank You to elros34 For This Useful Post: | ||
![]() |
2014-03-19
, 15:08
|
Posts: 212 |
Thanked: 340 times |
Joined on Feb 2011
@ Jordan
|
#54
|
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
for sound you must uncomment (remove //)at the end of script.js fileCode:// if(mp3=="start"){playMusic1.play() ..
for better performance you can do what freemangordon said or run game with parameter:
meecolay pathToGame/DoodleJump -graphicssystem opengl
The Following User Says Thank You to laith.m.y For This Useful Post: | ||
![]() |
2014-03-23
, 15:20
|
Posts: 111 |
Thanked: 63 times |
Joined on Nov 2012
@ Kazakhstan
|
#55
|
![]() |
2014-03-24
, 03:00
|
|
Posts: 411 |
Thanked: 302 times |
Joined on May 2012
@ Australia
|
#56
|
![]() |
2014-03-26
, 05:02
|
Posts: 13 |
Thanked: 52 times |
Joined on Mar 2014
@ China
|
#57
|
The Following 3 Users Say Thank You to 蝉曦m For This Useful Post: | ||
![]() |
2014-03-26
, 05:06
|
Posts: 13 |
Thanked: 52 times |
Joined on Mar 2014
@ China
|
#58
|
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:
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 n9Code: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); . . .
The Following User Says Thank You to 蝉曦m For This Useful Post: | ||
![]() |
2014-03-26
, 10:25
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#59
|
what a good job,canyou explain the N9 how to enable opengl?
I don't know anything about the Meego api of Qt
![]() |
2014-03-26
, 11:47
|
|
Posts: 411 |
Thanked: 302 times |
Joined on May 2012
@ Australia
|
#60
|
and how to enable opengl? (because the game run very slow on my n900)
thanx in advance