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!

Flappy Bird Game

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

 Item {
   id: level

   Background {
     anchors.horizontalCenter: parent.horizontalCenter
     y: scene.gameWindowAnchorItem.y+scene.gameWindowAnchorItem.height-height
   }

   BorderElement {
     x: scene.gameWindowAnchorItem.x
     y: scene.gameWindowAnchorItem.y-20
     width: scene.gameWindowAnchorItem.width
     height: 20
   }

   BorderElement {
     y: ground.y
     x: scene.gameWindowAnchorItem.x
     width: scene.gameWindowAnchorItem.width
     height: 20
   }

   Pipes {
     id: pipes1
     delay: 0
   }

   Pipes {
     id: pipes2
     delay: 1.5
   }

   // Make content outside of level black - Pipes may show up on wide screens
   Rectangle { height: level.height; width: 1000; x: -1000;       color: "#000000" }
   Rectangle { height: level.height; width: 1000; x: level.width; color: "#000000" }

   Ground {
     id: ground
     anchors.horizontalCenter: parent.horizontalCenter
     y: scene.gameWindowAnchorItem.y+scene.gameWindowAnchorItem.height-height
   }

   function reset() {
     pipes1.reset()
     pipes2.reset()
     ground.reset()
   }

   function stop() {
     pipes1.stop()
     pipes2.stop()
     ground.stop()
   }

   function start() {
     pipes1.start()