Stack With Friends Demo
import Felgo 3.0
import QtQuick 2.0
GameWindow {
id: window
activeScene: splash
onApplicationResumed: {
if(mainItemLoader.item) {
mainItemLoader.item.reloadUserBestLevelStats()
}
}
Component.onCompleted: {
splash.opacity = 1
mainItemDelay.start()
}
BackgroundMusic {
id: bgMusic
source: "../assets/snd/bgmusic.wav"
volume: 0
Behavior on volume {
NumberAnimation { duration: 1000 }
}
}
FontLoader {
id: fontHUD
source: "fonts/ProximaNovaSoftRegular.ttf"
}
Timer {
id: mainItemDelay
interval: 500
onTriggered: {
mainItemLoader.source = "MainItem.qml"
}
}
Loader {
id: mainItemLoader
onLoaded: {
if(item) {
hideSplashDelay.start()
}
}
}
Timer {
id: hideSplashDelay
interval: 200
onTriggered: {
splash.opacity = 0
}
}
SplashScene {