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

ChickenOutbreak2 Demo

 import QtQuick 2.0
 import Felgo 4.0

 EntityBase {
   entityType: "trippleCoin"
   poolingEnabled: true
   // put them before the windows
   z:1

   Image {
     id: sprite1
     source: Qt.resolvedUrl("../../assets/corn.png")
     width: 10.5
     height: 15
     x: -3
     y: -6
   }
   Image {
     id: sprite2
     source: Qt.resolvedUrl("../../assets/corn.png")
     width: 10.5
     height: 15
     x: 3
     y: -3
   }
   Image {
     id: sprite3
     source: Qt.resolvedUrl("../../assets/corn.png")
     width: 10.5
     height: 15
     x:0
     y:0
   }

   property alias collider: collider
   BoxCollider {
     id: collider
     bodyType: Body.Static
     anchors.fill: sprite3
     // it should not affect the movement of the player
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded