Code simplification

Old: float hw = width * 0.5f; float hh = height * 0.5f; // draw dark background vsDisplayList *list = new vsDisplayList(512); vsVector3D va[4] = { vsVector2D(-hw,-hh), vsVector2D(hw,-hh), vsVector2D(-hw,hh), vsVector2D(hw,hh) }; int ts[4] = { 0,1,2,3 }; int ls[5] = { 0,1,3,2,0 }; list->SetColor(vsColor(0.0f,0.0f,0.0f,0.9f)); list->VertexArray(va,4); list->TriangleStrip(ts,4); list->SetColor( vsColor::White ); list->LineStrip(ls,5); list->ClearVertexArray(); vsFragment *fragment = new…

Quick straw poll

This is mostly for the programmers in the audience. In the VectorStorm library, I have a “box” class which represents a 2D or 3D box.  Currently, you initialise one of these by specifying the positions of two opposite corners. For a long while, I’ve been thinking about adding the ability to just set the width…

Some bugfixes to VectorStorm

I have no idea what this image is. I’ve made a bunch of little tweaks to the VectorStorm engine today.  Most notably: When doing a scene update, the camera now updates last, instead of first.  Previously, the camera would pick where to be before the game had a chance to take any actions, which usually…

When it rains, it pours

I’ve just updated the trunk of the VectorStorm subversion repository with all the accumulated library changes from MMORPG Tycoon 2, Spratt 2, and GoGoGo!  So for any of you who are interested in all of that, it’s now live and publicly available.  Subversion repository details are on the Vectorstorm Test Games page. I’ve also updated…

Bugs keep creeping in…

First and foremost:  I’ve put up another update to GoGoGo!.  If you were having crashes or etc, go grab that. Technical stuff follows: In computer graphics, the scarcest resource is currently (usually) communication time.  That is, you only have a certain amount of time for the CPU to deliver data and instructions to the graphics…