I have been trying to game program in C for a long time and I would like to know if you could help me. I really don't need to know a good website but I need to have some examples that show how it actually works and that will compile on Dev-C++. It is hard to find anything that will actually work for Dev and I need it to work. My friend and I want to start to make games and post them on the Internet. I don't want anything in anyother language (maybe C++) but I need to know how to load a picture in Dos and how to load pixels to the screen I need to know how to make things move and everything else that can go into the basics of a game.
I know that you may not have that much time or that you may not even know C game programming but if you know anyone to help me please tell me I really need this so that I can start.
OK, you found your way here, which is a good start. But I am sorry to say that I am not familliar to Dev-C++ I don't know what it is. Is it some kind of compiler or a whole developement kit?
Anyway I will give you a couple of links even though you said that you didn't want any. The thing is that you have to find the stuff that is right for YOU and it can be very challenging sometimes to help beginners for that reason. Chack these links and say what you think. You will probably only find resources on DirectX and OpenGL but I think that you might have to learn how to use them to get experience before you can start to hard-code stuff (sending single pixels to the screen as you described) which can be quite challenging.
http://www.gamasutra.com/ (for professional game developers, I am sad to say that you have to register yourself before you may read their articles(no fee for regestering though))
Thanks, But.. I have already been to those websites and they didn't have anything that was of use to me and I really only need someone that will write emails to me about some of my problems. I need a mentor or someone that will help me on my path to C game programming. (I wanted buy tricks of the game programming gurus but its out of print!). Thanks for trying to help and for spending your time replying to my post.
: I have been trying to game program in C for a long time and I would like to know if you could help me. I really don't need to know a good website but I need to have some examples that show how it actually works and that will compile on Dev-C++. It is hard to find anything that will actually work for Dev and I need it to work. My friend and I want to start to make games and post them on the Internet. I don't want anything in anyother language (maybe C++) but I need to know how to load a picture in Dos and how to load pixels to the screen I need to know how to make things move and everything else that can go into the basics of a game. : : I know that you may not have that much time or that you may not even know C game programming but if you know anyone to help me please tell me I really need this so that I can start. :
Right the first thing to do is to realise that DEV-C++ is just a IDE , the compiler is ever MINGW or CYGWIN depending on which version that you have got. Next is that this site has game code for your compiler and tutors.
WWW.GAMECODING.CO.UK
And this site has sample games with source (and probly were you got your compiler from).
Hey, there are lots of great books out on the market. Try reading one, even old books at the local library are to some use. I once found a great book in abookstore that I bought calle "Advanced Game Programming using DorectX 7.0".
[hr][size=1]Message from above: Damn, my hair is grey![/size]
: Thanks, : But.. I have already been to those websites and they didn't have anything that was of use to me and I really only need someone that will write emails to me about some of my problems. I need a mentor or someone that will help me on my path to C game programming. (I wanted buy tricks of the game programming gurus but its out of print!). Thanks for trying to help and for spending your time replying to my post. : : Thanks : Dartsman :
If you're in the right age (not too old, not too young) you might want to try a game programming course?
Yeah I really want to do something like that but, I might just wait until I have finished High School! Yes I'm just another 15 year old brat(not really). But if you know of any courses and you want to tell me (only in Australia though) then post a reply.
Hey if anyone has made a ANSII RPG in C please could you help me on my quest to make one. Thanks.
: Thanks, : But.. I have already been to those websites and they didn't have anything that was of use to me and I really only need someone that will write emails to me about some of my problems. I need a mentor or someone that will help me on my path to C game programming. (I wanted buy tricks of the game programming gurus but its out of print!). Thanks for trying to help and for spending your time replying to my post. : : Thanks : Dartsman : I've been down that road. email me and I'll help you. ETLUSK@woodstock.com
: : Thanks, : : But.. I have already been to those websites and they didn't have anything that was of use to me and I really only need someone that will write emails to me about some of my problems. I need a mentor or someone that will help me on my path to C game programming. (I wanted buy tricks of the game programming gurus but its out of print!). Thanks for trying to help and for spending your time replying to my post. : : : : Thanks : : Dartsman : : : I've been down that road. email me and I'll help you. : ETLUSK@woodstock.com : :
I hope that you can help me. I've just emailed you!
How do I get thingc to print in C. This is what I am using but it doesn't work! It says that stdprn is undefined. I wan't this to work. Could you please help me.
main() { fprintf(stdprn, " This message is printed. "); fprintf(stdprn, "f");
return 0; }
Plus,
could you help me with Game Programming.
Like how to make a fighting game. Like mortal combat or street fighter. I want to learn the art of making that kind of game. I want to put graphics and if it could use console functions. I know a bit in console functions and I like to use them. Also if you know how to load a bitmap (like a function called loadBmp(name_of_file, x, y);).
One last inportant thing I need all of the code to be Dev-C++ 4.0 compatable for it to work.
[b][red]This message was edited by the Gamekeeper at 2002-4-24 3:50:11[/red][/b][hr] If yoou want to print that stuff in the dos console you have to use
printf("format :string%s", "hihi");
but if you want to use file output you need to open a file first:
in stead of "rb", which stands for read binary, you can use "w" for writing to a file ("w" will create a new file if the file does not already exist) and "a" for appending. Adding "b"; "wb", means that the file will be opend for binary access. hope this helps :-)
[hr][size=1]Message from above: Damn, my hair is grey![/size]
[b][red]This message was edited by the Gamekeeper at 2002-5-2 2:24:0[/red][/b][hr] [b][red]This message was edited by the Gamekeeper at 2002-4-24 6:47:38[/red][/b][hr] [b][red]This message was edited by the Gamekeeper at 2002-4-24 6:1:57[/red][/b][hr] If you want to send that to the printer then I can't help you :-(. But you might need to include a header defining the name 'stdprn'... Try searching the files in your include dir for the string 'stdprn'.
Oh by the way the BITMAPHEADER and BITMAPINFOHEADER structures are defined in the windows.h include file that comes with most dev kits. Check them out and you might be able to figure something out. I will be editing this post later when I get home (from school) and can check my own bitmap loading code. So tune in next week, same time, same post and I just might have edited it with a non-detailed instruction of how to load bitmaps. If you don't wanna stick around you could check some documentation at http://www.wotsit.org .
Sorry, I haven't had the time to update this post earlier, I've been sick, but I decided that I would instead send a new post with some sourcecode for loading and writing the simplest of bitmap formats under windows instead. I'll be able to send the post tomorrow.
[hr][size=1]Message from above: Damn, my hair is grey![/size]
Ok, here it is. I am trying to make a pong-like game in c++, and my problem is moving everything. I want to make this game without having to use cleardevice, so everything won't blink. I am using getimage - putimage, but the thing is that when things move, where they used to be the image is still there. ex- the ball moves and where it was before, the picture of the ball is still there, so theres a long line of balls. if I use cleardevice, it works fine, but everything blinks, which means I can't put lines and colors anywhere because they'll blink really fast, and half of the time that will crash the comp. If you can help I would REALLY appreciate it, or if you have any 2-3d rpg's or other type visual(non-text) games source that would be great too! Thanks, Fred (Grastinion)
Comments
I know that you may not have that much time or that you may not even know C game programming but if you know anyone to help me please tell me I really need this so that I can start.
Anyway I will give you a couple of links even though you said that you didn't want any. The thing is that you have to find the stuff that is right for YOU and it can be very challenging sometimes to help beginners for that reason. Chack these links and say what you think. You will probably only find resources on DirectX and OpenGL but I think that you might have to learn how to use them to get experience before you can start to hard-code stuff (sending single pixels to the screen as you described) which can be quite challenging.
http://www.flipcode.com/
(excellent forums and tutorials)
http://www.gamedev.net/
(similar to flipcode but the forums are bigger)
http://www.gamasutra.com/
(for professional game developers, I am sad to say that you have to register yourself before you may read their articles(no fee for regestering though))
http://www.cfxweb.net/
(greaphics stuff, very hard to navigate)
http://nehe.gamedev.net/
(I just recently found this homepage and it's got mighty many excellent tutorals and sourcecode)
http://www.lighthouse3d.com/
(they have some great GLUT(OpenGL Utility Toolkit) tutorials)
Hope this helps.
[hr][size=1]Message from above:
Damn, my hair is grey![/size]
But.. I have already been to those websites and they didn't have anything that was of use to me and I really only need someone that will write emails to me about some of my problems. I need a mentor or someone that will help me on my path to C game programming. (I wanted buy tricks of the game programming gurus but its out of print!). Thanks for trying to help and for spending your time replying to my post.
Thanks
Dartsman
:
: I know that you may not have that much time or that you may not even know C game programming but if you know anyone to help me please tell me I really need this so that I can start.
:
Right the first thing to do is to realise that DEV-C++ is just a IDE , the compiler is ever MINGW or CYGWIN depending on which version that you have got. Next is that this site has game code for your compiler and tutors.
WWW.GAMECODING.CO.UK
And this site has sample games with source (and probly were you got your compiler from).
WWW.BLOODSHED.NET
I hope this is of some help.
ASHLEY4.
[hr][size=1]Message from above:
Damn, my hair is grey![/size]
: But.. I have already been to those websites and they didn't have anything that was of use to me and I really only need someone that will write emails to me about some of my problems. I need a mentor or someone that will help me on my path to C game programming. (I wanted buy tricks of the game programming gurus but its out of print!). Thanks for trying to help and for spending your time replying to my post.
:
: Thanks
: Dartsman
:
If you're in the right age (not too old, not too young) you might want to try a game programming course?
Hey if anyone has made a ANSII RPG in C please could you help me on my quest to make one. Thanks.
Dartsman
: But.. I have already been to those websites and they didn't have anything that was of use to me and I really only need someone that will write emails to me about some of my problems. I need a mentor or someone that will help me on my path to C game programming. (I wanted buy tricks of the game programming gurus but its out of print!). Thanks for trying to help and for spending your time replying to my post.
:
: Thanks
: Dartsman
:
I've been down that road. email me and I'll help you.
ETLUSK@woodstock.com
: : But.. I have already been to those websites and they didn't have anything that was of use to me and I really only need someone that will write emails to me about some of my problems. I need a mentor or someone that will help me on my path to C game programming. (I wanted buy tricks of the game programming gurus but its out of print!). Thanks for trying to help and for spending your time replying to my post.
: :
: : Thanks
: : Dartsman
: :
: I've been down that road. email me and I'll help you.
: ETLUSK@woodstock.com
:
:
I hope that you can help me.
I've just emailed you!
[hr][size=1]Message from above:
Damn, my hair is grey![/size]
This is what I am using but it doesn't work! It says that stdprn is undefined. I wan't this to work. Could you please help me.
#include
main()
{
fprintf(stdprn, "
This message is printed.
");
fprintf(stdprn, "f");
return 0;
}
Plus,
could you help me with Game Programming.
Like how to make a fighting game. Like mortal combat or street fighter. I want to learn the art of making that kind of game. I want to put graphics and if it could use console functions. I know a bit in console functions and I like to use them. Also if you know how to load a bitmap (like a function called loadBmp(name_of_file, x, y);).
One last inportant thing I need all of the code to be Dev-C++ 4.0 compatable for it to work.
Thanks again.
If yoou want to print that stuff in the dos console you have to use
printf("format :string%s", "hihi");
but if you want to use file output you need to open a file first:
FILE* filepointer = fopen("file.dat", "rb");
fprintf(filepointer, "stuff :%s
", "hihi");
in stead of "rb", which stands for read binary, you can use "w" for writing to a file ("w" will create a new file if the file does not already exist) and "a" for appending. Adding "b"; "wb", means that the file will be opend for binary access.
hope this helps :-)
[hr][size=1]Message from above:
Damn, my hair is grey![/size]
Like 'Hello, World!' on a piece of paper.
Plus if anyone can help with any bitmap loading. (all code must be compatable with Migwin (I think that's how you spell it.) or anyone using Dev-C++)
[b][red]This message was edited by the Gamekeeper at 2002-4-24 6:47:38[/red][/b][hr]
[b][red]This message was edited by the Gamekeeper at 2002-4-24 6:1:57[/red][/b][hr]
If you want to send that to the printer then I can't help you :-(. But you might need to include a header defining the name 'stdprn'... Try searching the files in your include dir for the string 'stdprn'.
Oh by the way the BITMAPHEADER and BITMAPINFOHEADER structures are defined in the windows.h include file that comes with most dev kits. Check them out and you might be able to figure something out. I will be editing this post later when I get home (from school) and can check my own bitmap loading code. So tune in next week, same time, same post and I just might have edited it with a non-detailed instruction of how to load bitmaps. If you don't wanna stick around you could check some documentation at http://www.wotsit.org .
Sorry, I haven't had the time to update this post earlier, I've been sick, but I decided that I would instead send a new post with some sourcecode for loading and writing the simplest of bitmap formats under windows instead. I'll be able to send the post tomorrow.
[hr][size=1]Message from above:
Damn, my hair is grey![/size]
if I use cleardevice, it works fine, but everything blinks, which means I can't put lines and colors anywhere because they'll blink really fast, and half of the time that will crash the comp.
If you can help I would REALLY appreciate it, or if you have any 2-3d rpg's or other type visual(non-text) games source that would be great too!
Thanks,
Fred (Grastinion)