Advertisement

Linux game development resources

Started by May 13, 2004 09:31 PM
7 comments, last by Coz 20 years, 5 months ago
Hey there.. I''m googling to find nice sites related to Linux/X11 game development but I haven''t found anything worth of mentioning.. so.. HELP?
SDL is nice.

nehe has OpenGL/SDL tutorials.
Advertisement
oh so NeHe code applies to Linux?
coolies!
Part of it does, yes. The win32-specific stuff is easy enough to recognize.

See also Programming Linux Games (in print from No Starch Press or in PDF from the author).
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Well it is but.. I wonder if I need some kind of replacement of that Windows specific stuff.. anyways, I found out(Just after 3 hours of good ol'' googling on and off) that http://www.opengltutorial.co.uk/ it''s a pretty much was I was looking for and more :D Nehe is nice but since I''m a newbie in the Linux game programming world, I don''t want confusion with Windows-Linux stuff now.

When I get more advanced I will go back to NeHe''s site but right now it''s not what I''m looking for :D (Yeah I know I want things easy but heck, I guess I''m a lil'' lazy today)

The win32 stuff in Nehe''s is replaced by SDL in some examples you can find. These are SDL ports of Nehe''s.

The obvious advantage, besides working on Linux, is that the code is typically much smaller. Some of Nehe''s examples are 90% win32 startup code

Mark
Advertisement
Heh, well honestly I wasn''t looking to know the advantages, because I even tought I exactly like Windows, I do hate all those hate Windows threads in other forums Linux forums... just saying the same over and over, it''s like talking about politics the whole time

But yeah, I noticed the startup code in Linux is smaller
one of the good things about developing games in linux compared to windows is that linux doesn''t have the same "lock-in" game development apps like windows (ex: directx) does. First off, i''d suggest a cross platform library thingy like SDL (libsdl.org) or allegro (allegro.cc). With these you can display 2d graphics, manage a window, sound, networking (at least SDL), input, under multiple platforms if needed.

Then I''d suggest you learn OpenGL. nehe is a great reference. All the SDL / (linux) versions of the tutorials come with makefiles and are easy as pie to make.

if you want sound, you can do it with SDL_mixer, FMOD, or OpenAL.

If you want example games to look at, goto SDL''s or Allegros main page or sourceforge.net and you should be able to find tons easily.

In the end, game devlopment is game development no matter which platform you''re on, and after you abstract the OS specific stuff you can use general game programming techniques (BSP load, display model, camera).

If i''m not clear enough, you don''t really need Linux/X11 game development resources, but just game development resources in general. if you learn linux, opengl, sdl, etc, and put them all together, you can create a linux game. look for resources on all the different pieces, put them together and there is your puzzle.
That''s good to hear, tought I expected code on Windows not to be too different from Linux code already but of course they do have little differences.

I have used OpenGL and SDL on Windows so I guess I won''t have too many troubles with using them in Linux.

This topic is closed to new replies.

Advertisement