Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Multi-Scene-Multi-Level Demo

 import Felgo 4.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: Qt.resolvedUrl("../../assets/img/felgo-logo.png")
     width: 60
     height: 60
     anchors.right: menuScene.gameWindowAnchorItem.right
     anchors.rightMargin: 10
     anchors.bottom: menuScene.gameWindowAnchorItem.bottom
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded