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

Juicy Squash - Match-3 Game

 import Felgo 4.0
 import QtQuick 2.0

 Item {
   id: button

   width: 162
   height: 45

   property string text

   // signal when buttons are clicked
   signal clicked()

   // background
   Image {
     source: Qt.resolvedUrl("../../assets/img/ButtonBG.png")
     anchors.fill: parent
   }

   // text
   Text {
     // set font
     font.family: gameFont.name
     font.pixelSize: 12
     color: "red"
     text: button.text

     // set position
     anchors.horizontalCenter: parent.horizontalCenter
     y: 15
   }

   // signal click event
   MouseArea {
     anchors.fill: parent
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded