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

Platformer with Level Editor

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

 // this is the base class for all Ground objects
 PlatformerEntityBaseDraggable {
   id: ground
   entityType: "ground"

   // define colliderComponent for collision detection while dragging
   colliderComponent: collider

   BoxCollider {
     id: collider

     anchors.fill: parent
     bodyType: Body.Static

     // Category5: solids
     categories: Box.Category5
     // Category1: player body, Category2: player feet sensor,
     // Category3: opponent body, Category4: opponent sensor
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded