Tour Preview

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!

Forums

OverviewFelgo 2 Support (Qt 5) › example game 2048

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21938

    lily jen

    Hi

    I tried to update the grid to a 6 x 6 (by changing the grid size on main.qlm) but the game doesn’t work well anymore…

    I have display issues. some black tiles. some weird stuff. lagging ect.

    What can I do ?

     

    Moreover, when I try to delate the mousearea, the game doesn’t work at all. I just want to keep the keyboard controls for a computer.

     

    Thanks 🙂

     

    #21942

    lily jen

    nobody ?

    #21967

    Alex
    Felgo Team

    Hi,

    that’s an interesting one. This seems to be a rendering issue with rounded rectangles stacked. If you remove the radius from the backbround rectangle, everything is fine:

        Rectangle {
          id: background
          anchors.fill: gameScene.gameWindowAnchorItem
          color: "#B6581A" // main color
          border.width: 5
          border.color: "#4A230B" // margin color
          //radius: 10 // radius of the corners
        }

    Removing the MouseArea works fine though, then you can play the game with only the keyboard. You can also just set enabled of the MouseArea to false.

    Cheers,
    Alex

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.