My Secret Weapon for LD #18

I’ve spent a little time creating some template code for the next LD event, after failing at LD #17. I wanted to share this, in case any other Linux devs can benefit.

My template doesn’t do much, which is sort of the point given the nature of Ludum Dare. I wanted to gather up some basic functionality that I consider to be fair to use, and probably already available to many other LD’ers using existing game engines like OGRE, etc. Using this I hope to be able to get a quicker start during the events.

I’m using Linux, C++, CMake, SFML, GLee, OpenGL, and OpenAL. Here are the features I’m going for:

  • Get a window up on the screen. Admittedly, this isn’t too hard thanks to SFML.
  • Load music / sound files from disk, and play them.
  • Load UV texture-mapped 3D objects exported from Blender (http://blender.org/) and display them using OpenGL VBOs. The Blender export script I’ve created is included.
  • Render bitmapped fonts using image files loaded from disk.
  • Build either a Linux or Windows executable by changing a CMake flag (I have a mingw32 cross compilation set up, installed).

You can download my template here: ld48_template.tar.gz

If you can use this, or have time to build the sample app and give me some feedback, that would be awesome. Thanks!

-Windsor

P.S. I just read PoV’s post about packaging Linux applications. I’ll have to put some of those techniques to use in the next version of my template.

Template application running.

Tags: C++, linux, template

Comments

25. May 2010 · 07:24 UTC
I like this. Could you provide a preconverted version of the sample model though? It seems like the export script doesn’t work in Blender 2.49 and I don’t really feel like porting it.
25. May 2010 · 10:56 UTC
Very cool. I’m hoping to do something like that myself too. I have all the pieces, they just need to be cleaned up and assembled nicely.
pants12
25. May 2010 · 17:08 UTC
not much of a secret huh? but its nice:D
lurreluck
26. May 2010 · 11:51 UTC
Very nice
lurreluck
26. May 2010 · 11:51 UTC
Very nice :)
29. May 2010 · 13:48 UTC
Very nice :) :)