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: "coin"
   poolingEnabled: true
   // put them before the windows
   z:1

   Image {
     id: sprite
     source: Qt.resolvedUrl("../../assets/corn.png")
     width: 10.5
     height: 15
     anchors.centerIn: parent
   }

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