Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Game on Win32? Is it possible?

Game on Win32? Is it possible?

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsgame-devjsonquestion
10 Posts 3 Posters 0 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.
  • L Offline
    L Offline
    Lord Kixdemp
    wrote on last edited by
    #1

    Hello everyone! Hey, is it possible to make a 2D game (transparent sprites, sound, keyboard input, etc.) with just C and the Windows API? Like, no C++ and no MFC. I know it's a lot easier to use SDL or Allegro, but I want to use Windows this time just to play with it. :) I looked for tutorials, but I don't know if I should use GDI or not. Thanks! (P.S: As a bonus... can I do this... for..... 16-bit Windows :laugh:)

    Windows Calculator told me I will die at 28. :(

    CPalliniC R 2 Replies Last reply
    0
    • L Lord Kixdemp

      Hello everyone! Hey, is it possible to make a 2D game (transparent sprites, sound, keyboard input, etc.) with just C and the Windows API? Like, no C++ and no MFC. I know it's a lot easier to use SDL or Allegro, but I want to use Windows this time just to play with it. :) I looked for tutorials, but I don't know if I should use GDI or not. Thanks! (P.S: As a bonus... can I do this... for..... 16-bit Windows :laugh:)

      Windows Calculator told me I will die at 28. :(

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Lord Kixdemp wrote:

      Hey, is it possible to make a 2D game (transparent sprites, sound, keyboard input, etc.) with just C and the Windows API? Like, no C++ and no MFC.

      Yes.

      Lord Kixdemp wrote:

      I looked for tutorials, but I don't know if I should use GDI or not.

      GDI is rather slow but maybe enough for simple games. You have to use either DirectX library or OpenGL one to make professional looking ones. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

      In testa che avete, signor di Ceprano?

      L 1 Reply Last reply
      0
      • CPalliniC CPallini

        Lord Kixdemp wrote:

        Hey, is it possible to make a 2D game (transparent sprites, sound, keyboard input, etc.) with just C and the Windows API? Like, no C++ and no MFC.

        Yes.

        Lord Kixdemp wrote:

        I looked for tutorials, but I don't know if I should use GDI or not.

        GDI is rather slow but maybe enough for simple games. You have to use either DirectX library or OpenGL one to make professional looking ones. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        L Offline
        L Offline
        Lord Kixdemp
        wrote on last edited by
        #3

        Yay, thanks! ;)

        Windows Calculator told me I will die at 28. :(

        1 Reply Last reply
        0
        • L Lord Kixdemp

          Hello everyone! Hey, is it possible to make a 2D game (transparent sprites, sound, keyboard input, etc.) with just C and the Windows API? Like, no C++ and no MFC. I know it's a lot easier to use SDL or Allegro, but I want to use Windows this time just to play with it. :) I looked for tutorials, but I don't know if I should use GDI or not. Thanks! (P.S: As a bonus... can I do this... for..... 16-bit Windows :laugh:)

          Windows Calculator told me I will die at 28. :(

          R Offline
          R Offline
          Rage
          wrote on last edited by
          #4

          Lord Kixdemp wrote:

          ith just C and the Windows API?

          You could even do it in VB, if you want.

          Lord Kixdemp wrote:

          I should use GDI

          Is GDI really in C ?

          Lord Kixdemp wrote:

          16-bit Windows

          Are you living under a rock ? ;P

          Lord Kixdemp wrote:

          Windows Calculator told me I will die at 28

          I have seen weird sigs in my life, this one beats them all, I guess.

          http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !

          CPalliniC L 2 Replies Last reply
          0
          • R Rage

            Lord Kixdemp wrote:

            ith just C and the Windows API?

            You could even do it in VB, if you want.

            Lord Kixdemp wrote:

            I should use GDI

            Is GDI really in C ?

            Lord Kixdemp wrote:

            16-bit Windows

            Are you living under a rock ? ;P

            Lord Kixdemp wrote:

            Windows Calculator told me I will die at 28

            I have seen weird sigs in my life, this one beats them all, I guess.

            http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            Rage wrote:

            Is GDI really in C ?

            Why not? :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

            In testa che avete, signor di Ceprano?

            R 1 Reply Last reply
            0
            • CPalliniC CPallini

              Rage wrote:

              Is GDI really in C ?

              Why not? :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

              R Offline
              R Offline
              Rage
              wrote on last edited by
              #6

              That was a question, I assumed it was written in C++.

              http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !

              CPalliniC 1 Reply Last reply
              0
              • R Rage

                Lord Kixdemp wrote:

                ith just C and the Windows API?

                You could even do it in VB, if you want.

                Lord Kixdemp wrote:

                I should use GDI

                Is GDI really in C ?

                Lord Kixdemp wrote:

                16-bit Windows

                Are you living under a rock ? ;P

                Lord Kixdemp wrote:

                Windows Calculator told me I will die at 28

                I have seen weird sigs in my life, this one beats them all, I guess.

                http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !

                L Offline
                L Offline
                Lord Kixdemp
                wrote on last edited by
                #7

                Rage wrote:

                Are you living under a rock ?

                Yes, sadly... I've liked old computer stuff ever since I visited that thrift store when I was 14. :laugh:

                Windows Calculator told me I will die at 28. :(

                1 Reply Last reply
                0
                • R Rage

                  That was a question, I assumed it was written in C++.

                  http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !

                  CPalliniC Offline
                  CPalliniC Offline
                  CPallini
                  wrote on last edited by
                  #8

                  Rage wrote:

                  That was a question, I assumed it was written in C++.

                  It doesn't matter, the OP wants to use C, not libraries written in C. :)

                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

                  In testa che avete, signor di Ceprano?

                  R 1 Reply Last reply
                  0
                  • CPalliniC CPallini

                    Rage wrote:

                    That was a question, I assumed it was written in C++.

                    It doesn't matter, the OP wants to use C, not libraries written in C. :)

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

                    R Offline
                    R Offline
                    Rage
                    wrote on last edited by
                    #9

                    And how do you link a library written in C++ with a C program :confused:

                    http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !

                    CPalliniC 1 Reply Last reply
                    0
                    • R Rage

                      And how do you link a library written in C++ with a C program :confused:

                      http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !

                      CPalliniC Offline
                      CPalliniC Offline
                      CPallini
                      wrote on last edited by
                      #10

                      Rage wrote:

                      And how do you link a library written in C++ with a C program

                      You don't need a big effort : GDI (note GDI, maybe your're talking about GDI+) exports C-style API. :)

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

                      In testa che avete, signor di Ceprano?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups