Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Snakes and Ladders game, beginner that needs some big pointers. (QML + JS)

    General and Desktop
    2
    2
    1434
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nomad5 last edited by

      Hi everyone. I'm new to Qt, but not entirely new to programming. QML is foreign to me, but it is the foundation between QML and JS where I become very lost.

      I have this project that I've been working on for some time, but it simply doesn't work. I want to give Qt a good shot but I'd be lying if I said I didn't need help.

      I have a Snakes and ladders board. Look here: https://imgur.com/a/NRtNm

      Each player has a turn where they roll a number between 1-6. They move the across the board in the amount that they rolled. First player that gets to 100 wins. Along the way, they can hit ladders, which takes them forward to a new predetermined spot, or they can hit a snake, which pushes them back to a predetermined spot.

      I'm basically looking for some very big pointers here on how I'd go about animating the board with JS and QML. I understand my code logically, but the visual representation has been difficult for me. Even if the correct colored dot "teleports" to the correct spot, that would be perfect. I need it to be functional, and from there I can continue to improve on it once I understand how it works.

      I understand that this is asking for some pretty big help, so I hope that maybe such a challenge would be worth someones time here. I'm looking to learn how to pull this off, a mentor of sorts would be too good to be true, but I would appreciate help in any amount very much.

      Thanks guys.

      1 Reply Last reply Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        Hi, and welcome to the Qt Dev Net!

        Have you had a shot at implementing any QML code yet? If not, follow this simple tutorial first: http://qt-project.org/doc/qt-5/qml-tutorial.html That should make things much clearer for you.

        If you still like more help, post the QML code that you've tried.

        All the best!

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply Reply Quote 0
        • First post
          Last post