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

ChickenOutbreak Demo

 import QtQuick 2.0
 import Felgo 4.0 // for the vplayScheduler enum values

 Column {
   spacing: 2
   anchors.centerIn: parent

   MenuButton {
     text: qsTr("Resume")
     onClicked: scene.state = "" // reset to default state, so hide this menu
   }

   MenuButton {
     text: qsTr("Restart")
     onClicked: {
       level.restartGame();
       scene.state = "" // reset to default state, so hide this menu
     }
   }

   MenuButton {
     text: qsTr("Toggle Physics Debug")
     onClicked: {
       physicsWorld.debugDrawVisible = !physicsWorld.debugDrawVisible
     }
   }

   MenuButton {
     text: vplayScheduler.schedulingMethod === VPlayScheduler.None ? qsTr("Current Scheduler: every update") : qsTr("Current Scheduler: accumulated")
     onClicked: {
       if(vplayScheduler.schedulingMethod === VPlayScheduler.None)
         vplayScheduler.schedulingMethod = VPlayScheduler.Accumulated
       else
         vplayScheduler.schedulingMethod = VPlayScheduler.None
     }
   }

   MenuButton {
     text: qsTr("Toggle Background Movement")
     onClicked: {
       levelBackground.running = !levelBackground.running
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded