Thursday, September 18, 2008

First Buildings

Here is a look at the very first buildings in my game. Yep, it looks rough, but I did say it is the very first buildings! :) It's randomly-generated so each run of the demo has different geometry.

I plan to spend the next day cleaning up the code. I was mainly pushing to get something up and running first before doing any major rearchitecting. The component system is still being rolled out (only rendering and positioning use it right now). But in the process of doing it, the intricacies of how it will work are becoming clear. I am sure problems will come up along the way, but it will be very interesting to see what the end product will look like.

I will also start writing my first procedural-art code in the texture generation code. The one texture used in the demo right now is actually generated (there are no images or any other data used in this demo). At the moment, it is just based on a random noise generation function (i.e. the static pattern). As a first stab at procedural texture generation, I will probably put in something based on Perlin noise.

Still a heap to do, but it's getting there!


Browse the source code: http://code.google.com/p/glutinous/source/browse/#svn/trunk/carpac