MenuScene.qml Example File

 import Felgo 3.0
 import QtQuick 2.0
 import "../common"

 SceneBase {
   id: menuScene

   // signal indicating that the selectLevelScene should be displayed
   signal selectLevelPressed
   // signal indicating that the creditsScene should be displayed
   signal creditsPressed

   // background
   Rectangle {
     anchors.fill: parent.gameWindowAnchorItem
     color: "#47688e"

   // the "logo"
   Text {
     anchors.horizontalCenter: parent.horizontalCenter
     y: 30
     font.pixelSize: 30
     color: "#e9e9e9"
     text: "MultiSceneMultiLevel"

   // menu
   Column {
     anchors.centerIn: parent
     spacing: 10
     MenuButton {
       text: "Levels"
       onClicked: selectLevelPressed()
     MenuButton {
       text: "Credits"
       onClicked: creditsPressed()

   // a little Felgo logo is always nice to have, right?
   Image {
     source: "../../assets/img/felgo-logo.png"
     width: 60
     height: 60
     anchors.right: menuScene.gameWindowAnchorItem.right
     anchors.rightMargin: 10
     anchors.bottom: menuScene.gameWindowAnchorItem.bottom
     anchors.bottomMargin: 10

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support