QtQuick.qtquick-demos-samegame-example
Same Game demonstrates a QML game with custom types and logic written in JavaScript. The game uses various Qt Quick features such as particles, animation, and loading images.
src="https://assets.ubuntu.com/v1/c643406e-1.png" alt="" />
src="https://assets.ubuntu.com/v1/8ba6c7dd-qtquick-demo-samegame-med-2.png" alt="" />
For more details about different parts of the example, see QML Advanced Tutorial.
Running the Example
To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.
Files:
- demos/samegame/samegame.qml
- demos/samegame/content/BBSettings.qml
- demos/samegame/content/Block.qml
- demos/samegame/content/BlockEmitter.qml
- demos/samegame/content/Button.qml
- demos/samegame/content/GameArea.qml
- demos/samegame/content/LogoAnimation.qml
- demos/samegame/content/MenuEmitter.qml
- demos/samegame/content/PaintEmitter.qml
- demos/samegame/content/PrimaryPack.qml
- demos/samegame/content/PuzzleBlock.qml
- demos/samegame/content/SamegameText.qml
- demos/samegame/content/Settings.qml
- demos/samegame/content/SimpleBlock.qml
- demos/samegame/content/SmokeText.qml
- demos/samegame/content/samegame.js
- demos/samegame/content/+blackberry/Settings.qml
- demos/samegame/content/levels/TemplateBase.qml
- demos/samegame/content/levels/level0.qml
- demos/samegame/content/levels/level1.qml
- demos/samegame/content/levels/level2.qml
- demos/samegame/content/levels/level3.qml
- demos/samegame/content/levels/level4.qml
- demos/samegame/content/levels/level5.qml
- demos/samegame/content/levels/level6.qml
- demos/samegame/content/levels/level7.qml
- demos/samegame/content/levels/level8.qml
- demos/samegame/content/levels/level9.qml
- demos/samegame/main.cpp
- demos/samegame/samegame.pro
- demos/samegame/samegame.qmlproject
- demos/samegame/samegame.qrc
- demos/samegame/content/qmldir
See also QML Applications.