Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Point me in the right direction when creating a 2D graphics grid
Forum Updated to NodeBB v4.3 + New Features

Point me in the right direction when creating a 2D graphics grid

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 798 Views 1 Watching
  • 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.
  • Q Offline
    Q Offline
    qwhos
    wrote on last edited by
    #1

    I know C++ and I know some basics of graphical UIs, which is using the designer tool and connecting signals to slots. However, I want to create something like a 2D game board based on grids. In that, I would move a character and if I step on something I shouldn't be stepping on, the game would end. I don't really know where to start though. I know I should use QGraphicsView, but I don't know how to use it to a simple game like this. Are there any extremely simple examples of something like this?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Maybe not completely directly grid related, but you should have a look at the "Graphics View Examples" chapter in Qt's documentation. It should give you some bases to start on

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        belab
        wrote on last edited by
        #3

        Hi qwhos,
        http://qt-project.org/doc/qt-4.8/demos-declarative-snake.html
        is a nice example. Hope it will help.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved