SMGL (Scriptable MiniGame Library pronounced smeagol)
Version 0.1 of SMGL and SpaceShipChase have been released. Get them here
Update The windows version now includes a Visual Studio .lib and .dll
Here's a quick tutorial on using SMGL
Here's a windows .dll and data files for SMGL. For now you MUST extract this to C:\ so that it is installed in C:\smgl\ or else it won't find the data corectly. This also comes with a prebuilt Test.exe which is the example above. I haven't tried this under Visual Studio, so let me know if you have problems linking against it
In Dev-cpp, to link against it, add C:\smgl\include\ to your include directories and also add the path to SDL, SDL_image, and SDL_ttf. Also add the correct library directories for each of those. Then in your compiler linker flags, add:
-lmingw32 -lSDLmain -lSDL -mwindows -lSDL_image -lSDL_ttf -lopengl32 -lglu32 -lsmgl
Linux users. Checkout SMGL from CVS:
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/smgl login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/smgl co smgl
Extract, run ./configure; make; make install
If you want a game, checkout SpaceShipChase from CVS
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/smgl login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/smgl co SpaceShipChase
Extract, run ./configure; make; make install
If you installed smgl in a different prefix, make sure you install SpaceShipChase in the SAME prefix as smgl.
Mark