Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Stack With Friends Demo

 import QtQuick 2.0
 import Felgo 3.0

 EntityBase {
   entityType: "ceiling"

   // this gets used by the top wall to detect when the game is over
   signal collidedWithBox

   Row {
     x: 16
     Repeater {
       model: 26
       Image {
         source: "../../assets/img/ceiling.png"
         width: 16
         height: 16
       }
     }
   }

   BoxCollider {
     anchors.fill: parent
     bodyType: Body.Static // the body shouldnt move

     fixture.onBeginContact: {
       // for access of the collided entity and the entityType and entityId:
       var collidedEntity = other.getBody().target;
       var collidedEntityType = collidedEntity.entityType;
       // avoid emitting the signal at collision with obstacle while in levelEditing mode
       // otherwise the game would be reset if an obstacle would collide with the top wall
       if(collidedEntityType === "box")
         collidedWithBox()