🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Beginning Linux game programming

Started by
5 comments, last by Blaise 24 years, 5 months ago
I''ve done a little 2D programming in Windows and I''d like to try doing some for Linux. Can anyone tell me a good place to start (APIs, references)? I''d like to start out with a simple tile based game but I don''t really know how to go about this. Thanks.
Advertisement
Hi,

firstly you should add yourself to the Linuxgames Mailinglist: linuxgames@sunsite.auc.dk .
Then you should have these adresses:

http://www.linuxgames.com/
http://sunsite.auc.dk/lgdc/
http://www.linux3d.net/ [not so good]

For the first time this is enough.

bye


Felix Kollmann, DG5PT

Future Interactive

[http://www.futureint.com]
[fkollmann@gmx.net]
Felix KollmannFuture InteractiveCEO, Project Manager, Lead Programmer[http://www.futureint.de][fkollmann@futureint.de]
Another thought is to learn multi-platform APIs. That way you can target the same program for multiple OS''s. glut is available for both Windows and Linux. Also there''s ClanLib.

The advantage to this is that you get a source tree that you can work with both and Linux and Windows, and you can switch between the two until you get the hang of the Linux programming environment.
Hi,

we can switch our source code between Windows and Linux in using the preprocessor. This is the standard like many projects do it.

bye
Felix Kollmann
Felix KollmannFuture InteractiveCEO, Project Manager, Lead Programmer[http://www.futureint.de][fkollmann@futureint.de]
Thanks to all, I''ll be checking those links shortly.

SiCrane, I''ve read about glut but haven''t used it yet. From what I understand, it kind of wraps OpenGL and adds support for creating windows and handling events. My question is, since I''m looking to do a 2D game, would OpenGL be the best choice? That is, would it be overkill or awkward?

Also, where can I find info on ClanLib?

Thanks.
I personally haven''t found the GL API awkward for either 2D or 3D development. Fact of the matter is that glut is on many gamer''s Linux machines already, so by using GL you won''t be adding code to handle cases already covered by GL/glut. After all how many more times does the draw bitmap function need to be coded? So I would say it isn''t overkill. Glut''s user interface code can be annoying to deal with, but the new mui toolkit fixes a lot of those problems.

ClanLib is http://www.clanlib.org
You will also want to check out SDL
http://www.devolution.com/~slouken/SDL/

There is all kinds of FAQs and documentation at the website.

Here is a clip from the webpage:
" Simple DirectMedia Layer is a cross-platform multimedia library designed to provide fast access to the graphics framebuffer and audio device. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power." Simple DirectMedia Layer supports Linux, Win32, BeOS, along with ports in progress to MacOS, IRIX, Solaris, and FreeBSD."


"You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!""

This topic is closed to new replies.

Advertisement