Game on Win32? Is it possible?
-
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. :(
-
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. :(
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 orOpenGL
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.
-
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 orOpenGL
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.
Yay, thanks! ;)
Windows Calculator told me I will die at 28. :(
-
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. :(
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 !
-
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 !
-
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.
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 !
-
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 !
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. :(
-
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 !
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.
-
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.
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 !
-
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 !
Rage wrote:
And how do you link a library written in C++ with a C program
You don't need a big effort :
GDI
(noteGDI
, maybe your're talking aboutGDI+
) 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.