Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Simple Qt/C++ games
QtWS25 Last Chance

Simple Qt/C++ games

Scheduled Pinned Locked Moved Unsolved Game Development
80 Posts 8 Posters 40.1k Views
  • 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.
  • 8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote on last edited by 8Observer8
    #39

    @Bondrusiek said in Simple Qt/C++ games:

    Now new added game fifteenpuzzle: https://przemekkkth.github.io/fifteenpuzzle/index.html

    I didn't play this game before. I spent 20-30 minutes trying to solve this but later found it was not possible: https://en.wikipedia.org/wiki/15_puzzle

    0d90322d-a205-4778-a1c1-cf24e88c3f46-image.png

    My result is the same:

    8255478d-9ce4-4be5-8715-2b033a2fad76-image.png

    BondrusiekB 1 Reply Last reply
    1
    • 8Observer88 8Observer8

      @Bondrusiek said in Simple Qt/C++ games:

      Now new added game fifteenpuzzle: https://przemekkkth.github.io/fifteenpuzzle/index.html

      I didn't play this game before. I spent 20-30 minutes trying to solve this but later found it was not possible: https://en.wikipedia.org/wiki/15_puzzle

      0d90322d-a205-4778-a1c1-cf24e88c3f46-image.png

      My result is the same:

      8255478d-9ce4-4be5-8715-2b033a2fad76-image.png

      BondrusiekB Offline
      BondrusiekB Offline
      Bondrusiek
      wrote on last edited by
      #40

      @8Observer8 Ok thank you for info. I only randomize board and I don't check that solution is possible. Next iteration should solve that bug.

      1 Reply Last reply
      1
      • 8Observer88 8Observer8

        It would be nice if you could create an exact copy of this game but in Qt WebAssembly and Box2D to run it in the browser with a single click.

        BondrusiekB Offline
        BondrusiekB Offline
        Bondrusiek
        wrote on last edited by
        #41

        @8Observer8 Hi,
        I compiled many games with WebAssembly and host it on my github profile. I have a problem with project Volleyball because that project uses Box2D library. I get this first error message from compilator: "wasm-ld: error: unknown file type: b2_circle_shape.cpp.o". I link library in pro file

        INCLUDEPATH += $$PWD/include
        
        win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libs/release/ -lbox2d
        else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/libs/debug/ -lbox2d
        else:unix: LIBS += -L$$PWD/libs/ -lbox2d
        
        INCLUDEPATH += $$PWD/libs
        DEPENDPATH += $$PWD/libs
        
        win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/release/libbox2d.a
        else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/debug/libbox2d.a
        else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/release/box2d.lib
        else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/debug/box2d.lib
        else:unix: PRE_TARGETDEPS += $$PWD/libs/libbox2d.a
        

        In include folder I have header files and I edited one. Do you know how can solve that?

        8Observer88 1 Reply Last reply
        0
        • BondrusiekB Bondrusiek

          @8Observer8 Hi,
          I compiled many games with WebAssembly and host it on my github profile. I have a problem with project Volleyball because that project uses Box2D library. I get this first error message from compilator: "wasm-ld: error: unknown file type: b2_circle_shape.cpp.o". I link library in pro file

          INCLUDEPATH += $$PWD/include
          
          win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libs/release/ -lbox2d
          else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/libs/debug/ -lbox2d
          else:unix: LIBS += -L$$PWD/libs/ -lbox2d
          
          INCLUDEPATH += $$PWD/libs
          DEPENDPATH += $$PWD/libs
          
          win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/release/libbox2d.a
          else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/debug/libbox2d.a
          else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/release/box2d.lib
          else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/debug/box2d.lib
          else:unix: PRE_TARGETDEPS += $$PWD/libs/libbox2d.a
          

          In include folder I have header files and I edited one. Do you know how can solve that?

          8Observer88 Offline
          8Observer88 Offline
          8Observer8
          wrote on last edited by
          #42

          @Bondrusiek try including Box2D in your project using Box2D source code directly.

          BondrusiekB 1 Reply Last reply
          1
          • 8Observer88 8Observer8

            @Bondrusiek try including Box2D in your project using Box2D source code directly.

            BondrusiekB Offline
            BondrusiekB Offline
            Bondrusiek
            wrote on last edited by
            #43

            @8Observer8 I'vs complied Box2D from source and It works ;)
            Online: https://przemekkkth.github.io/volleyball/index.html
            Source code(branch webassembly): https://github.com/Przemekkkth/Volleyball_Qt-Cpp
            Thanks for suggestion.

            BondrusiekB 1 Reply Last reply
            1
            • BondrusiekB Bondrusiek

              @8Observer8 I'vs complied Box2D from source and It works ;)
              Online: https://przemekkkth.github.io/volleyball/index.html
              Source code(branch webassembly): https://github.com/Przemekkkth/Volleyball_Qt-Cpp
              Thanks for suggestion.

              BondrusiekB Offline
              BondrusiekB Offline
              Bondrusiek
              wrote on last edited by Bondrusiek
              #44

              3D Simple Object Engine Qt/C++
              App loads obj file and simulates 3D camera.
              Source code: https://github.com/Przemekkkth/3DSimpleObjectEngine_Qt-Cpp

              alt text

              BondrusiekB 1 Reply Last reply
              0
              • BondrusiekB Bondrusiek

                3D Simple Object Engine Qt/C++
                App loads obj file and simulates 3D camera.
                Source code: https://github.com/Przemekkkth/3DSimpleObjectEngine_Qt-Cpp

                alt text

                BondrusiekB Offline
                BondrusiekB Offline
                Bondrusiek
                wrote on last edited by Bondrusiek
                #45

                @Bondrusiek
                Polyomino
                alt text

                Source code:
                https://github.com/Przemekkkth/Polyomino_Qt-Cpp
                Play online: https://przemekkkth.github.io/assets/games/polyomino/
                Gameplay: https://youtu.be/5MFxjR8c9yU

                BondrusiekB 1 Reply Last reply
                0
                • BondrusiekB Bondrusiek

                  @Bondrusiek
                  Polyomino
                  alt text

                  Source code:
                  https://github.com/Przemekkkth/Polyomino_Qt-Cpp
                  Play online: https://przemekkkth.github.io/assets/games/polyomino/
                  Gameplay: https://youtu.be/5MFxjR8c9yU

                  BondrusiekB Offline
                  BondrusiekB Offline
                  Bondrusiek
                  wrote on last edited by Bondrusiek
                  #46

                  TwiniGolf
                  out.gif
                  Source code: https://przemekkkth.github.io/twinigolf/index.html
                  Play online: https://przemekkkth.github.io/assets/games/twinigolf/index.html
                  Gameplay: https://youtu.be/PZIHDSWqmo8

                  BondrusiekB 1 Reply Last reply
                  1
                  • BondrusiekB Bondrusiek

                    TwiniGolf
                    out.gif
                    Source code: https://przemekkkth.github.io/twinigolf/index.html
                    Play online: https://przemekkkth.github.io/assets/games/twinigolf/index.html
                    Gameplay: https://youtu.be/PZIHDSWqmo8

                    BondrusiekB Offline
                    BondrusiekB Offline
                    Bondrusiek
                    wrote on last edited by Bondrusiek
                    #47

                    LookAtCursor
                    alt text

                    Source code: https://github.com/Przemekkkth/LookAtCursor_Qt-Cpp
                    See online: https://przemekkkth.github.io/assets/games/lookatcursor/index.html

                    BondrusiekB 1 Reply Last reply
                    1
                    • BondrusiekB Bondrusiek

                      LookAtCursor
                      alt text

                      Source code: https://github.com/Przemekkkth/LookAtCursor_Qt-Cpp
                      See online: https://przemekkkth.github.io/assets/games/lookatcursor/index.html

                      BondrusiekB Offline
                      BondrusiekB Offline
                      Bondrusiek
                      wrote on last edited by
                      #48

                      TicTacToe in FelgoSDK

                      5_a.png

                      Source code: https://github.com/Przemekkkth/TicTacToe_FelgoSDK

                      Tutorial: https://przemekkkth.github.io/posts/tic-tac-toe/

                      BondrusiekB 1 Reply Last reply
                      0
                      • BondrusiekB Bondrusiek

                        TicTacToe in FelgoSDK

                        5_a.png

                        Source code: https://github.com/Przemekkkth/TicTacToe_FelgoSDK

                        Tutorial: https://przemekkkth.github.io/posts/tic-tac-toe/

                        BondrusiekB Offline
                        BondrusiekB Offline
                        Bondrusiek
                        wrote on last edited by
                        #49

                        Sudoku
                        alt text

                        Source code: https://github.com/Przemekkkth/Sudoku_Qt-Cpp
                        Gameplay: https://youtu.be/RFya-TYYSXc
                        Play online: https://przemekkkth.github.io/assets/games/sudoku/index.html

                        BondrusiekB 1 Reply Last reply
                        0
                        • BondrusiekB Bondrusiek

                          Sudoku
                          alt text

                          Source code: https://github.com/Przemekkkth/Sudoku_Qt-Cpp
                          Gameplay: https://youtu.be/RFya-TYYSXc
                          Play online: https://przemekkkth.github.io/assets/games/sudoku/index.html

                          BondrusiekB Offline
                          BondrusiekB Offline
                          Bondrusiek
                          wrote on last edited by Bondrusiek
                          #50

                          2048
                          out.gif

                          Source code: https://github.com/Przemekkkth/2048_Qt-Cpp
                          Play online: https://przemekkkth.github.io/assets/games/2048/index.html
                          Gameplay: https://youtu.be/ogU4IfCn394

                          BondrusiekB 1 Reply Last reply
                          0
                          • BondrusiekB Bondrusiek

                            2048
                            out.gif

                            Source code: https://github.com/Przemekkkth/2048_Qt-Cpp
                            Play online: https://przemekkkth.github.io/assets/games/2048/index.html
                            Gameplay: https://youtu.be/ogU4IfCn394

                            BondrusiekB Offline
                            BondrusiekB Offline
                            Bondrusiek
                            wrote on last edited by
                            #51

                            Cardioid
                            out.png

                            Source code: https://gist.github.com/Przemekkkth/80b4e7dbb25e0ab9c6432fab1b713337

                            See online: https://user-images.githubusercontent.com/28188300/249451546-9edc1343-22b9-458a-ae94-1b8b05e18a48.mp4

                            BondrusiekB 1 Reply Last reply
                            1
                            • BondrusiekB Bondrusiek

                              Cardioid
                              out.png

                              Source code: https://gist.github.com/Przemekkkth/80b4e7dbb25e0ab9c6432fab1b713337

                              See online: https://user-images.githubusercontent.com/28188300/249451546-9edc1343-22b9-458a-ae94-1b8b05e18a48.mp4

                              BondrusiekB Offline
                              BondrusiekB Offline
                              Bondrusiek
                              wrote on last edited by
                              #52

                              Analog Clock
                              Source code: https://github.com/Przemekkkth/AnalogClock_Qt-Cpp
                              Video: https://youtu.be/ISnqJ1qrJ2g
                              alt text

                              Q 1 Reply Last reply
                              1
                              • BondrusiekB Bondrusiek

                                Analog Clock
                                Source code: https://github.com/Przemekkkth/AnalogClock_Qt-Cpp
                                Video: https://youtu.be/ISnqJ1qrJ2g
                                alt text

                                Q Offline
                                Q Offline
                                quan-wei-jun
                                wrote on last edited by
                                #53

                                @Bondrusiek you are excellent!

                                BondrusiekB 1 Reply Last reply
                                1
                                • Q quan-wei-jun

                                  @Bondrusiek you are excellent!

                                  BondrusiekB Offline
                                  BondrusiekB Offline
                                  Bondrusiek
                                  wrote on last edited by
                                  #54

                                  Hi @quan-wei-jun, thanks for kind words

                                  1 Reply Last reply
                                  0
                                  • SGaistS SGaist referenced this topic on
                                  • BondrusiekB Offline
                                    BondrusiekB Offline
                                    Bondrusiek
                                    wrote on last edited by
                                    #55

                                    Matrix Rain Code
                                    alt text
                                    Source code: https://github.com/Przemekkkth/MatrixCodeRain_Qt-Cpp
                                    Video: https://youtu.be/x-mWpZXXI-c

                                    BondrusiekB 1 Reply Last reply
                                    1
                                    • BondrusiekB Bondrusiek

                                      Matrix Rain Code
                                      alt text
                                      Source code: https://github.com/Przemekkkth/MatrixCodeRain_Qt-Cpp
                                      Video: https://youtu.be/x-mWpZXXI-c

                                      BondrusiekB Offline
                                      BondrusiekB Offline
                                      Bondrusiek
                                      wrote on last edited by
                                      #56

                                      Image to ASCII
                                      source code: https://github.com/Przemekkkth/image_to_ascii-qt-cpp
                                      alt text

                                      1 Reply Last reply
                                      1
                                      • BondrusiekB Offline
                                        BondrusiekB Offline
                                        Bondrusiek
                                        wrote on last edited by
                                        #57

                                        Qt/Box2D integration example
                                        source code: https://github.com/Przemekkkth/qt_box2d_integration_example
                                        gameplay: https://youtu.be/JfVkSZZezOk
                                        alt text

                                        BondrusiekB 1 Reply Last reply
                                        0
                                        • BondrusiekB Bondrusiek

                                          Qt/Box2D integration example
                                          source code: https://github.com/Przemekkkth/qt_box2d_integration_example
                                          gameplay: https://youtu.be/JfVkSZZezOk
                                          alt text

                                          BondrusiekB Offline
                                          BondrusiekB Offline
                                          Bondrusiek
                                          wrote on last edited by
                                          #58

                                          Gravity Tetris
                                          alt text
                                          Source code: https://github.com/Przemekkkth/gravity-tetris
                                          Gameplay: https://youtu.be/CqleQv0-L5Y

                                          BondrusiekB 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