plasma
You can reload the page to see different effects.
Some weeks ago I needed some eye candy for my latest game. The easiest way was to put some plasma in the background. But mostly plasma algorithms generate a repetitive pattern and i wanted a better one.
I found this post in david's blog: http://www.gibbongames.com/?p=167
Unfortunatley this program is written in blitzmax, a language I don't know at all. But the syntax is easy to understand, so it took just some hours to port it.
I have added one nice feature. You can define how many lines are calculated by render circle. So you can screw down the fps of the plasma effect and use the CPU for what you really want to do.
download: click hear to download a demo project.
p.s.: My favourite line of code in this project is
if ( ubyte[plasma_id] & 128 )
ubyte[plasma_id] = (~ubyte[plasma_id])&0x7F;
It's a very good example of the power of bit operation.
- 0 Comments



Your comment