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: "henhouseWindow"

   poolingEnabled: true

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

     // the size should not be bound to the grid as it is only a visual effect, but it gets set to the image size
     width: 64
     height: 60

   }

   property alias collider: collider
   BoxCollider {
     id: collider
     bodyType: Body.Static

     anchors.fill: sprite
     sensor: true

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded