Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Beginner creating a 2D game, need help and expert advice
Qt 6.12 LTS is out! See what's new in the release blog

Beginner creating a 2D game, need help and expert advice

Scheduled Pinned Locked Moved Game Development
4 Posts 3 Posters 3.5k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi, I am a beginner and need to create a 2D mobile game. The game basically consists of moving entities that responds to touch and gestures. These entities spawn throughout the game and also need to determine if it is colliding with another specific entity. I am somewhat confused on how to begin coding the game world. I am planning to create these entities as custom widgets inside threaded classes (the class will make the widgets move, provide random spawning points, animations if possible, and implement signals/slots). Is this a sound (and effective) plan or is there an easier/standard way in doing this? Thanks!

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      By the way I am also planning on using QML with the custom widgets..

      1 Reply Last reply
      0
      • T Offline
        T Offline
        task_struct
        wrote on last edited by
        #3

        Hi,

        take a look at "Box2D":http://developer.qt.nokia.com/wiki/box2d . You can use it for collision detection and moving entities.

        "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

        • Linu...
        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          q8phantom
          wrote on last edited by
          #4

          You can have a look at "mini cocos2d-clone":https://projects.developer.nokia.com/cocos2d/files/, I'm adding android support and iOS soon, so your cross-platform game support!

          Check the example to see how easy it is!

          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
          • Unsolved