Jump to content
  • Advertisement
Sign in to follow this  
braclayrab

Help

This topic is 5035 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

Alright, I'm new the gaming. I have a good amount of C++ experience but have no graphics experience. I want to try to create a simple game, maybe black jack or tic-tac-toe, but I want to incorporate some graphics, possibly with DirectX. I need some help as to where to get started. I've tried looking at about 5 directx tutorials now and am getting nowhere and I'm getting very frustrated. :( Any advice. I may go out an buy some books later. Any titles I should look for?

Share this post


Link to post
Share on other sites
Advertisement
Managed DirectX by Tom Miller is good, but that's managed code. I asume that you want to stick to C++, or am I wrong?

Share this post


Link to post
Share on other sites
One word, SDL.
It allows a fast, low-level graphics setup and when coupled with the many many extensions it lets you do graphics, images, sounds, fonts, networking, etc. with very little actual code. In short: It's cool.

Share this post


Link to post
Share on other sites
okay, I'm going to check out sdl. Out of curiousity, if I want to make a game that will run in windows, inside a window... do I need to know directx?

Share this post


Link to post
Share on other sites
SDL will be perfectly fine for that (unless you want it to run inside a GUI element in a window, in which case things get a little more tricky and would require you to play around with the SDL source a bit).

Share this post


Link to post
Share on other sites
Nope. You can use both the nativ Win32 API or (the awful) MFC, which, at least they think, does the whole thing OO.

Share this post


Link to post
Share on other sites
*sigh*
Okay, I'm trying to install SDL with visual C++. I'm trying this tutorial: http://pgdc.purdue.org/sdltutorial/sdl_setup.html.

I got to the end. It compiled fine but when it tried to build, I got this error. I've been getting all build errors with VC++ with other tutorials also.


--------------------Configuration: sdl test - Win32 Debug--------------------
Linking...
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCD.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fprintf already defined in LIBCD.lib(fprintf.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in LIBCD.lib(isctype.obj)
LIBCD.lib(crt0init.obj) : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/sdl test.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

sdl test.exe - 6 error(s), 1 warning(s)

Share this post


Link to post
Share on other sites
Oh, I should also say that this tutorial uses Visual Studio .NET, but I only have VC++. I didn't think it would matter much. I managed to get through everything except in the middle when I was supposed to:

"Right-click on the name of your project in the Solution explorer and select "Properties".

Select the "code Generation" on the left. On the right, select the "Runtime Library" pull down menu and choose Multi-Threaded DLL or Multi-Threaded Debug DLL if you wish to use debugging. Hit OK."

I had no 'code Generation' tab under the properties

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!