Jump to content
xisto Community
Sign in to follow this  
iGuest

Help With Game Design In C++ creat a game with a C++ ??

Recommended Posts

:P i would create a game but how can i do with C++ ?? my prob is i don't by what i have to begin,if you have any exempl for this kind of programation , i mean programing with C++ to create a game i'm not askin for a complex game but just a simple game for a bigining ??and after wen i well be able to creat a good games i will do pleazz don't abstain to let me know your suggestions !!!!!! Edited by aminzzlink (see edit history)

Share this post


Link to post
Share on other sites

C++ is an object programming.......if you dont have an idea about that then u have a problem in creating games in C++ becuase its not as simple as HTML coding but it is a very powerful tool... if you have experience in obect programming then all you need to learn are the syntax of C++..good luck....

Share this post


Link to post
Share on other sites

hi sega , :)

i found it , if you are looking for a compilater here is the link:
http://cpp.developpez.com/telecharger/index/categorie/30/Outils-C-Cplusplus

when i was looking for a compilater i found this http://www.cplusplus.com/ is a very good site for begin to learn C++

and thinks sega

Edited by aminzzlink (see edit history)

Share this post


Link to post
Share on other sites

For learning C++, I always recomend to use a well-written book. A good fundamental understanding of C++ is a very valuable thing to have, and a book is the best source for that.

 

As far as an IDE to use, I recomend Microsoft Visual Studio if you want to pay for it. Version 6 is good, and is the one I use. The .NET edition is also good I supose, but I've never seriously used it.

 

As for a free IDE, you definatly need to check out http://www.bloodshed.net/devcpp.html. This is a very good IDE capable of producing Windows GUI programes as well as a host of other types.

 

The major thing that stumps people when they first start trying to program games in C++ is that they can't figure out how to do anything but text programs. C++ does not have a graphical inteface like a lot of other languages (usualy scripted languages BTW) have.

 

DirectX (available from Microsoft) is a good graphical API to use. It also has APIs for input, sound, video, networking, and a hold bunch of other things. However, you will have to download a rather large SDK for it (around a quarter gig last time I checked). Also, it's only for Windows, so if you are developing for or on anything but Windows it's not an option.

 

However, there is an alternative to DirectX. It's called OpenGL. OpenGL is a very powerful, proceedure-oriented graphical API. Best of all, you don't have to download anything to program with it. Just about any Windows header library that comes with an IDE will have the OpenGL headers and link libraries in there. OpenGL also has support for input and sound, however that support isn't as good as DirectX's.

 

The debate between OpenGL and DirectX has ragged on for well over a decade now, but to be honest with you, they are both about equal in the graphics department. One is better at some things, and the other is better at other things. It all depends on what you know, and how you go about it. Personlay, when I am doing a graphical app (all of them just graphical demos, nothing too big) I use OpenGL for the graphics, and DirectX for the input and sound.

 

There are also a lot of other graphical APIs out there that I havn't used, such as STL. There's a lot of them, try Googleing for (C++ "Graphical API").

 

Also, here's an excelent resource for game development: http://www.gamedev.net/page/index.html

 

At one time there was also a site called "Flipcode" that was dedicated to hard-core game programming. They went down for a while last year or before, said they were working on a new site. I'm not sure if they are still around any more, but if they are, you could find them with Google.

 

Good luck, and happy coding!

QBRADQ

Share this post


Link to post
Share on other sites

^ Nice post! Im in my second year at Sheffield Halam uni and so far in my course, Computing (Visualisation) we've done C++ with Open GL. Not much but its a start.I've found it ok but you seriously need a good book in my opinion. I mean I think I pick up syntaxs and languages quite well but openGL is a whole different syntax altogther.Am doing DirextX next year which Im really looking forward to tho!.. Hopefully will start making full games! :D Neways, good luck with your programming! :DAndy

Share this post


Link to post
Share on other sites

In most universities, students learning computer science have to write programs, and a lot of these programs are games. Just because when you create a game you directly see what you do (your ball goes left instead of right, your mouse-click does not act, your character gets lost, etc...).Nevertheless, starting from nothing with no help is a nice challenge.

Share this post


Link to post
Share on other sites

How m I creat sound game program please send me this code
-reply by komal


My recomendation for game development in C++ is using C++ librarys. By using these freely avilable librarys you are going to save lot of time and you will get fast results. There are many freely avilable game development, vedio/audio streeming librarys. I prefer to use the SDL library(GNU). one of the website for SDL library is http://www.libsdl.org/ . It has got many GNU librarys and are free to use.

if you know any other library for game development pls add to this list.

enjoy game development.... :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.