Gogo Quadtree

Hey, got managed to get my quadtree scripts working correctly, the following image was rendered in FF3.0 using the canvas tag to graphically display the information. Admitedly this whole block of functionality was evil nasty feature creep, but now that it is almost complete I have a nice warm feeling inside that you only get form writing something you've never done before :D

The above image took about 1000ms to process, the 1000ms includes loading and processing the whole level. This basically involves a generating 1024x1024 2d array and then populating that array with 1000 rasterised polygonal shapes. Each of these shapes are around 64x64 cells of data. As you can tell quite a lot of processing is done within those 1000ms. It's also worth noting that the map only needs to load once per level/zone/area, meaning its very quick considering some desktop games take minutes to load.
Go me :D
03:16 PM | 0 Comments

Comments