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

Squaby Demo

 import QtQuick 2.0
 import Felgo 4.0

 BuildEntityButton {
     id: buyTowerButton

     width: 50
     height: hud.height

     toCreateEntityType: Qt.resolvedUrl("../../entities/Obstacle.qml")

     // is needed to set the source for DragWeapon, which is the name of the png in the spritesheet json file
     // has e.g. the value "nailgun.png" - mention that the path is irrelevant, as the image is looked up in the json file
     property alias source: buttonSprite.source

     SingleSquabySprite {
         id: buttonSprite

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded