This code
Posted: Fri Sep 26, 2008 2:10 am
I'm trying to make a plasma effect, what should I do to this code so Game Editor can handle it?
- Code: Select all
int main(int argc, char *argv[])
{
screen(256, 256, 0, "Plasma");
for(int x = 0; x < w; x++)
for(int y = 0; y < h; y++)
{
int color = int(128.0 + (128.0 * sin(x / 8.0)));
pset(x, y, ColorRGB(color, color, color));
}
redraw();
sleep();
return(0);
}