Jump to content
  • Advertisement
Sign in to follow this  
DJ14IVI3

How do I make something with graphics in C?

This topic is 4975 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Allright, I've done some programming in C and I feel comfortable with structures, pointers and the like, and I've just started learning classes. So far I've managed to make a simple DOS game. The only problem is that it's 'graphics' are all ASCII. I wanted to rewrite the game to include sprites instead of ASCII characters, so I've read some tutorials and downloaded some source code. The problem is, none of it works with my compiler (Bloodshed Dev-cpp)! So, should I get a new compiler (free one, I can't afford buying Visual C++), or can I go to 0x13 mode in my current compiler? Do I need to download additional libraries (download links would be appreciated)? And how do I implement sprites once I get into graphics mode?

Share this post


Link to post
Share on other sites
Advertisement
my friend my friend. though i am an advocate of Allegro ( www.allegro.cc ) i suggest you looking at cone3d.gamedev.net and all will be answered.

-good day [smile]

Share this post


Link to post
Share on other sites
Allright, I've done some programming in C and I feel comfortable with structures, pointers and the like, and I've just started learning classes.

There are no classes in C. . .

Share this post


Link to post
Share on other sites
Quote:
Original post by ImperfectFreak
Allright, I've done some programming in C and I feel comfortable with structures, pointers and the like, and I've just started learning classes.

There are no classes in C. . .

who cares. He asked something but he didn't ask you to start complaining :P

Now on to the answer. Alpha_Progdes is right the thing is that using the things on cone3d won't allow your game to run in dos and since you said it's a dos game I guess you mean console game :)

Share this post


Link to post
Share on other sites
Quote:
Original post by DJ14IVI3
Well, I want to get into C++. Do I need it for making games?
No, you don't need it.

Mode 13h (0x13) is not directly supported under Windows, if that's your target environment. You can emulate it, of course, by essentially undersampling your resultant pixels. But that's all getting ahead of ourselves...

Your central problem appears to be outdated tutorials (if they're talking about mode 13h!). Cone3d is good place to start, and there are dozens more tutorials on the net.

Share this post


Link to post
Share on other sites
Guest
I use mode 0x13 in Windows XP using C and it works perfectly.

Share this post


Link to post
Share on other sites
AFAIK, 640x640x4 is the lowest supported Win32 resolution. Anything lower is being simulated, perhaps by DirectX.

Share this post


Link to post
Share on other sites
This should work in any windows environment and this is a 13h 3d render.

http://rel.betterwebber.com/junk.php?id=24

For 13h you should use Djgpp or TurboC++



Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!