The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Development Assistance
/
Glowing
«
1
»
Glowing
engin33r
23rd Aug 2010
Member
0
Permalink
Hello,
I finally decided to code something like my own TPT mod, but I have a problem I can't really solve - how exactly do I make particles glow? Like NEUT and PHOT. And what do I do to make particles look cooler in Fancy View?
Felix
23rd Aug 2010
Member
0
Permalink
search in the document for justdraw:
Rdogg112
23rd Aug 2010
Member
0
Permalink
example:
if(t==PT_BLOD&&cmode == 6)
{
int tempx;
int tempy;
cr = 0x99;
cg = 0x00;
cb = 0x00;
blendpixel(vid, nx, ny, cr, cg, cb, 192);
blendpixel(vid, nx+1, ny, cr, cg, cb, 96);
blendpixel(vid, nx-1, ny, cr, cg, cb, 96);
blendpixel(vid, nx, ny+1, cr, cg, cb, 96);
blendpixel(vid, nx, ny-1, cr, cg, cb, 96);
for(tempx = 2; tempx < 10; tempx++) {
for(tempy = 2; tempy < 10; tempy++) {
blendpixel(vid, nx+tempx, ny-tempy, cr, cg, cb, 5);
blendpixel(vid, nx-tempx, ny+tempy, cr, cg, cb, 5);
blendpixel(vid, nx+tempx, ny+tempy, cr, cg, cb, 5);
blendpixel(vid, nx-tempx, ny-tempy, cr, cg, cb, 5);
}
}
}
PT_BLOD doesn´t exist, its in my mod of PT, so just change PT_BLOD to what ever element you defined
and
cr = 0x99;
cg = 0x00;
cb = 0x00;
is the HEX for the color of the pixels
0x990000 is red
«
1
»