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
  // needed for Body.Static

 EntityBase {
   entityType: "coin"

   poolingEnabled: true

   // put them before the windows
   z:1

   Image {
     id: sprite
     source: Qt.resolvedUrl("../../assets/img/corn.png")

     width: 7
     height: 10

     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
     sensor: true

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded