Background.qml Example File

demos/FlappyBird/qml/common/Background.qml
 import Felgo 3.0
 import QtQuick 2.0

 Item {
   width: bg.width
   height: bg.height

   // Game Window has a specific size - overdraw area outside so it's not black
   Rectangle { height: 1000; width: bg.width; y: parent.height; color: "#7E6B5D" }
   Rectangle { height: 1000; width: bg.width; y: -1000;         color: "#83D0F5" }

   MultiResolutionImage {
     id: bg
     source: "../../assets/img/bg.png"
   }

   MultiResolutionImage {
     id: rotor
     source: "../../assets/img/rotor.png"
     x: 178
     y: 318
   }

   MovementAnimation {
     target: rotor
     property: "rotation"
     velocity: 90
     running: true
   }
 }

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support