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
Forum Updated to NodeBB v4.3 + New Features

Simple Qt/C++ games

Scheduled Pinned Locked Moved Unsolved Game Development
82 Posts 9 Posters 44.7k Views 7 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.
  • B Offline
    B Offline
    Bondrusiek
    wrote on 30 Nov 2022, 13:44 last edited by Bondrusiek
    #28

    Mario
    World1-1
    alt text
    Source code: https://github.com/Przemekkkth/Mario_Qt-Cpp
    Gameplay: https://youtu.be/dTcI_2RDFL4
    Play online: https://przemekkkth.github.io/assets/games/marioqt/index.html

    B R 2 Replies Last reply 10 Dec 2022, 12:57
    1
    • B Bondrusiek
      30 Nov 2022, 13:44

      Mario
      World1-1
      alt text
      Source code: https://github.com/Przemekkkth/Mario_Qt-Cpp
      Gameplay: https://youtu.be/dTcI_2RDFL4
      Play online: https://przemekkkth.github.io/assets/games/marioqt/index.html

      B Offline
      B Offline
      Bondrusiek
      wrote on 10 Dec 2022, 12:57 last edited by Bondrusiek
      #29

      Retro Race Arcade
      alt text
      Source code: https://github.com/Przemekkkth/RetroRaceArcade_Qt-Cpp
      Gameplay: https://youtu.be/2HYlmMHNWxU
      Play online: https://przemekkkth.github.io/assets/games/retroarcade/index.html

      B 1 Reply Last reply 12 Dec 2022, 12:56
      1
      • B Bondrusiek
        10 Dec 2022, 12:57

        Retro Race Arcade
        alt text
        Source code: https://github.com/Przemekkkth/RetroRaceArcade_Qt-Cpp
        Gameplay: https://youtu.be/2HYlmMHNWxU
        Play online: https://przemekkkth.github.io/assets/games/retroarcade/index.html

        B Offline
        B Offline
        Bondrusiek
        wrote on 12 Dec 2022, 12:56 last edited by Bondrusiek
        #30

        Star Pusher
        alt text
        Source code: https://github.com/Przemekkkth/StarPusher_Qt-Cpp
        Gameplay: https://youtu.be/UUBLR5Zy27E
        Play online: https://przemekkkth.github.io/assets/games/starpusher/index.html

        B 1 Reply Last reply 19 Dec 2022, 10:53
        0
        • B Bondrusiek
          12 Dec 2022, 12:56

          Star Pusher
          alt text
          Source code: https://github.com/Przemekkkth/StarPusher_Qt-Cpp
          Gameplay: https://youtu.be/UUBLR5Zy27E
          Play online: https://przemekkkth.github.io/assets/games/starpusher/index.html

          B Offline
          B Offline
          Bondrusiek
          wrote on 19 Dec 2022, 10:53 last edited by Bondrusiek
          #31

          Reversi
          alt text
          Gameplay: https://youtu.be/HDi6iOZ9emo
          Source code: https://github.com/Przemekkkth/Reversi_Qt-Cpp
          Play online: https://przemekkkth.github.io/assets/games/reversi/index.html

          B 1 Reply Last reply 30 Dec 2022, 10:29
          0
          • B Bondrusiek
            19 Dec 2022, 10:53

            Reversi
            alt text
            Gameplay: https://youtu.be/HDi6iOZ9emo
            Source code: https://github.com/Przemekkkth/Reversi_Qt-Cpp
            Play online: https://przemekkkth.github.io/assets/games/reversi/index.html

            B Offline
            B Offline
            Bondrusiek
            wrote on 30 Dec 2022, 10:29 last edited by
            #32

            Worms
            alt text
            Source code: https://github.com/Przemekkkth/Worms_Qt-Cpp
            Gameplay: https://youtu.be/2KyOsaSRRQk

            1 Reply Last reply
            0
            • 8 Offline
              8 Offline
              8Observer8
              wrote on 6 Jan 2023, 20:38 last edited by 8Observer8 1 Jun 2023, 20:53
              #33

              Your game: https://sharemygame.com/@Bondrusiek/flatblockbreaker
              (source code: https://github.com/Przemekkkth/Flat-Block-Breaker)
              has this problem (the ball gets trapped - it bounces off the walls endlessly):

              infinite.gif

              B 1 Reply Last reply 7 Jan 2023, 09:44
              1
              • 8 8Observer8
                6 Jan 2023, 20:38

                Your game: https://sharemygame.com/@Bondrusiek/flatblockbreaker
                (source code: https://github.com/Przemekkkth/Flat-Block-Breaker)
                has this problem (the ball gets trapped - it bounces off the walls endlessly):

                infinite.gif

                B Offline
                B Offline
                Bondrusiek
                wrote on 7 Jan 2023, 09:44 last edited by
                #34

                @8Observer8 said in Simple Qt/C++ games:

                has this problem (the ball gets trapped - it bounces off the walls endlessly):

                Hey, thank you for questions. This project was created in Unity and project was one of first which I did. Probably I must change Ball's physics material 2d properties to solve that.
                alt text

                1 Reply Last reply
                1
                • 8 Offline
                  8 Offline
                  8Observer8
                  wrote on 7 Jan 2023, 15:21 last edited by 8Observer8 1 Jul 2023, 15:22
                  #35

                  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.

                  B 2 Replies Last reply 7 Jan 2023, 17:06
                  1
                  • 8 8Observer8
                    7 Jan 2023, 15:21

                    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.

                    B Offline
                    B Offline
                    Bondrusiek
                    wrote on 7 Jan 2023, 17:06 last edited by
                    #36

                    @8Observer8 said in Simple Qt/C++ games:

                    Hi, I think about that but I have no experience with WebAssemby and Qt. I try WebAssmaby and compile to html/js but game work worse and keyPressEvent/Release doesn't work properly. I dont know why I must search solution. I've worked with Box2D but I have not intruduced it yet maybe later.
                    Screenshot from 2023-01-07 17-59-16.png
                    Screenshot from my browser.

                    1 Reply Last reply
                    1
                    • 8 Offline
                      8 Offline
                      8Observer8
                      wrote on 8 Jan 2023, 15:39 last edited by
                      #37

                      You should add the Flood Fill algorithm like in this tutorial in Unity: https://noobtuts.com/unity/2d-minesweeper-game

                      uncover_mineless_elements.gif

                      B 1 Reply Last reply 8 Jan 2023, 18:43
                      1
                      • 8 8Observer8
                        8 Jan 2023, 15:39

                        You should add the Flood Fill algorithm like in this tutorial in Unity: https://noobtuts.com/unity/2d-minesweeper-game

                        uncover_mineless_elements.gif

                        B Offline
                        B Offline
                        Bondrusiek
                        wrote on 8 Jan 2023, 18:43 last edited by
                        #38

                        @8Observer8 . Thank you for suggestions. Maybe when I do new iteration with my games I add new features like: new algorithms, levels, graphics etc. Now I try to compile my all games using WebAssemby and fix all bugs which I'll see. Now new added game fifteenpuzzle: https://przemekkkth.github.io/fifteenpuzzle/index.html

                        1 Reply Last reply
                        1
                        • 8 Offline
                          8 Offline
                          8Observer8
                          wrote on 8 Jan 2023, 19:24 last edited by 8Observer8 1 Aug 2023, 19:25
                          #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

                          B 1 Reply Last reply 8 Jan 2023, 19:27
                          1
                          • 8 8Observer8
                            8 Jan 2023, 19:24

                            @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

                            B Offline
                            B Offline
                            Bondrusiek
                            wrote on 8 Jan 2023, 19:27 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
                            • 8 8Observer8
                              7 Jan 2023, 15:21

                              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.

                              B Offline
                              B Offline
                              Bondrusiek
                              wrote on 11 Jan 2023, 09:13 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?

                              8 1 Reply Last reply 11 Jan 2023, 13:08
                              0
                              • B Bondrusiek
                                11 Jan 2023, 09:13

                                @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?

                                8 Offline
                                8 Offline
                                8Observer8
                                wrote on 11 Jan 2023, 13:08 last edited by
                                #42

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

                                B 1 Reply Last reply 22 Jan 2023, 08:32
                                1
                                • 8 8Observer8
                                  11 Jan 2023, 13:08

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

                                  B Offline
                                  B Offline
                                  Bondrusiek
                                  wrote on 22 Jan 2023, 08:32 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.

                                  B 1 Reply Last reply 5 Feb 2023, 09:26
                                  1
                                  • B Bondrusiek
                                    22 Jan 2023, 08:32

                                    @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.

                                    B Offline
                                    B Offline
                                    Bondrusiek
                                    wrote on 5 Feb 2023, 09:26 last edited by Bondrusiek 2 May 2023, 09:28
                                    #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

                                    B 1 Reply Last reply 22 Feb 2023, 18:23
                                    0
                                    • B Bondrusiek
                                      5 Feb 2023, 09:26

                                      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

                                      B Offline
                                      B Offline
                                      Bondrusiek
                                      wrote on 22 Feb 2023, 18:23 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

                                      B 1 Reply Last reply 11 Mar 2023, 16:58
                                      0
                                      • B Bondrusiek
                                        22 Feb 2023, 18:23

                                        @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

                                        B Offline
                                        B Offline
                                        Bondrusiek
                                        wrote on 11 Mar 2023, 16:58 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

                                        B 1 Reply Last reply 4 Apr 2023, 08:21
                                        1
                                        • B Bondrusiek
                                          11 Mar 2023, 16:58

                                          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

                                          B Offline
                                          B Offline
                                          Bondrusiek
                                          wrote on 4 Apr 2023, 08:21 last edited by Bondrusiek 5 Aug 2023, 08:08
                                          #47

                                          LookAtCursor
                                          alt text

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

                                          B 1 Reply Last reply 8 May 2023, 08:28
                                          1

                                          • Login

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