I've now added a flexible GeometryWars-like grid that responds to explosions. It's not quite as active as the GW version, but it does distort and is totally 2D. I thought it would too hard to get something like this to work until I had the idea to make the grid points members of two lists - one to draw the horizontal lines between points and one to draw the vertical lines between points. That turns out to be relatively simple. The distortion currently occurs at the point of an explosion, and the effect is a pretty simple "lens" effect. I'd like to eventually have the explosion create a ripple over the entire screen - could get some interesting interferance patterns with that.
Oh, is there a way to anti-alias the lines of the grid? Drawing multiple lines next to the main line with decreasing alpha seems to help but kills the framerate.


-Ryan ryanmsmith.com TerrapinGames.net
|