The-Powder-Toy/elements/lava.cpp
Simon Robertshaw b0ea52690b Initial
2012-01-08 17:39:03 +00:00

20 lines
423 B
C++

#include "element.h"
int graphics_LAVA(GRAPHICS_FUNC_ARGS)
{
*colr = cpart->life * 2 + 0xE0;
*colg = cpart->life * 1 + 0x50;
*colb = cpart->life / 2 + 0x10;
if (*colr>255) *colr = 255;
if (*colg>192) *colg = 192;
if (*colb>128) *colb = 128;
*firea = 40;
*firer = *colr;
*fireg = *colg;
*fireb = *colb;
*pixel_mode |= FIRE_ADD;
*pixel_mode |= PMODE_BLUR;
//Returning 0 means dynamic, do not cache
return 0;
}