ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have just purchased a book called C++ on Linux, I have used C++ on a Windows OS before but I am still a beginner to the language. What I want to create is a game. specifically a naval warfare strategy game and It to work in Real Time. I plan to spen alot of time on this project, but to be honest I don't know where to begin. Are there any resources on the web or otherwise I can look at to begin this project. Maybe even so online forums for game programming.
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
first of all you need to choose a graphics liblary like sdl or opengl then if you player are gonna play it over internet or network u need to learn network programming(for network programming go to google search for beej network programming. thats a good tutorial)
Unfortunately games are not typically written by one programmer unless it has trivial graphics. Ofcouse this could all change if game research and development was made open source. There could be frameworks for different game behavior, for example, flying. You could inherit the implementation, and specialize it for the type of veichle, character, etc. I don't see any of this happening though unless you are a vendor but I see this sharing of objects in different games that I've tried. For the large part, game programming seems to be tightly gaurded and unaccessible to novices and anyone who is not a multi-millionaire.
Just imagine that if we (open source programmers) had frameworks that supported game development, than finally individuals or small groups could actually write their own advanced games. It would be similar to using Java or .Net frameworks, where you extend the base class functionality and add specializations.
C++ is a good place to start though I'm not sure if that book is best for beginners. I've never seen it. What I would recommend is Sams Teach Yourself C++ or go to GameDev.net to check out some other books there. I'm a frequent visitor and I know some people there. Also, if your going to be programming on Linux, I would suggest that you get into OpenGL programming to do the shapes and stuff like that. You could do DirectX but that's Windows and Microsoft.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.