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

Durdles - 2-Player Action Game

 import QtQuick 2.0
 import Felgo 3.0
 import "../levels"

 // rolls around the field on contact
 EntityBase {
   id: ball
   entityType: "ball"

   property alias ballBody: ballBody
   property alias circleCollider: circleCollider

   Image {
     id: ballBody
     width: 24
     height: 24
     anchors.centerIn: parent
   }

   // the physic properties allow the ball to roll around
   CircleCollider {
     id: circleCollider
     radius: 12
     x: -radius
     y: -radius
     friction: 0.5
     restitution: 0.8
     body.bullet: true
     body.linearDamping: 0.5
     body.angularDamping: 0
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded