View Single Post
Posts: 3,074 | Thanked: 12,964 times | Joined on Mar 2010 @ Sofia,Bulgaria
#52
Originally Posted by laith.m.y View Post
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
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer