Multi-Scene-Multi-Level Demo
import Felgo 4.0
import QtQuick 2.0
import "../common"
SceneBase {
id: menuScene
signal selectLevelPressed
signal creditsPressed
Rectangle {
anchors.fill: parent.gameWindowAnchorItem
color: "#47688e"
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
y: 30
font.pixelSize: 30
color: "#e9e9e9"
text: "MultiSceneMultiLevel"
}
Column {
anchors.centerIn: parent
spacing: 10
MenuButton {
text: "Levels"
onClicked: selectLevelPressed()
}
MenuButton {
text: "Credits"
onClicked: creditsPressed()
}
}
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