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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support