This is a simple, multi-platform game written completely in QML/Javascript. I've tested it on Android (4.1.2 and 4.4.2), Ubuntu (12.04 and 14.04) and Windows 8.1).
To try this code on the desktop, simply download and extract the archive and:
qmlscene main.qml
To try it on Android, you need to set up a project with QtCreator, add Android kit and put this code on ProjectName/qml/ProjectName. You may also want to add a custom Androidmanifest.xml and to set:
android:screenOrientation="portrait"
to disable landscape mode on your phone. If you want to play the game in fullscreen mode, you should also add:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
This code should also work on OSX, iOS, and Windows Phone but I've not tried yet.