Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Stack With Friends Demo

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

 SceneBase {

   signal playClicked
   signal myLevelsClicked
   signal gameNetworkViewClicked

   MultiResolutionImage {
     source: "../../assets/img/menubg.png"
     anchors.centerIn: parent
   }

   MultiResolutionImage {
     source: "../../assets/img/logo.png"
     anchors.horizontalCenter: parent.horizontalCenter
     y: 15
   }

   MultiResolutionImage {
     source: "../../assets/img/training.png"
     anchors.horizontalCenter: parent.horizontalCenter
     y: 140
     MouseArea {
       anchors.fill: parent
       onClicked: {
         playClicked()
       }
     }
   }

   MultiResolutionImage {
     source: "../../assets/img/levels.png"
     anchors.horizontalCenter: parent.horizontalCenter
     y: 190
     MouseArea {
       anchors.fill: parent
       onClicked: myLevelsClicked()
     }
   }

   MultiResolutionImage {
     source: "../../assets/img/felgo-logo.png"
     anchors.horizontalCenter: parent.horizontalCenter
     y: 255
     MouseArea {
       anchors.fill: parent
       onClicked: {
         mainItem.messageBoxInputState = "visitVPlayWebsite"
         nativeUtils.displayMessageBox(qsTr("Felgo"), qsTr("This game is built with Felgo. The source code is available in the free Felgo SDK - so you can build your own Stack With Friends in minutes!\n\nVisit Felgo.net now? \n(It contains a tutorial how to make Stack With Friends and more details)"), 2)
       }
     }
   }

   MultiResolutionImage {
     source: "../../assets/img/sound.png"
     anchors.right: parent.gameWindowAnchorItem.right
     anchors.rightMargin: 40
     anchors.top: parent.gameWindowAnchorItem.top
     anchors.topMargin: 40
     opacity: settings.soundEnabled ? 1 : 0.3
     MouseArea {
       anchors.fill: parent
       onClicked: {
         settings.soundEnabled = !settings.soundEnabled;
         flurry.logEvent("MainMenu.ChangeSound","soundEnabled",settings.soundEnabled)
       }
     }
   }

   MultiResolutionImage {
     source: "../../assets/img/music.png"
     anchors.right: parent.gameWindowAnchorItem.right
     anchors.rightMargin: 40
     anchors.top: parent.gameWindowAnchorItem.top
     anchors.topMargin: 100
     opacity: settings.musicEnabled ? 1 : 0.3
     MouseArea {
       anchors.fill: parent
       onClicked:  {
         settings.musicEnabled = !settings.musicEnabled;
         flurry.logEvent("MainMenu.ChangeMusic","musicEnabled",settings.musicEnabled)
       }
     }
   }

   Image {
     id: vpngText
     source: "../../assets/img/vpng-text.png"
     width: 65
     height: 65
     anchors.left: parent.gameWindowAnchorItem.left
     anchors.leftMargin: 26
     anchors.top: parent.gameWindowAnchorItem.top
     anchors.topMargin: 26
   }

   MovementAnimation {
     target: vpngText
     property: "rotation"
     running: true
     velocity: 30
   }

   MultiResolutionImage {
     source: "../../assets/img/vpgn.png"
     anchors.left: parent.gameWindowAnchorItem.left
     anchors.leftMargin: 40
     anchors.top: parent.gameWindowAnchorItem.top
     anchors.topMargin: 40
     MouseArea {
       anchors.fill: parent
       onClicked: gameNetworkViewClicked()
     }
   }

   property alias dailyBonus: dailyBonus
   DailyBonus {
     id: dailyBonus
     anchors.horizontalCenter: parent.horizontalCenter