pretty glow :)

This commit is contained in:
Alex 2010-08-16 16:32:15 -04:00
parent f6170777a1
commit b56d7a4e1e

263
powder.c
View File

@ -2892,8 +2892,43 @@ justdraw:
blendpixel(vid, nx+1, ny+1, cr, cg, cb, 32);
blendpixel(vid, nx-1, ny-1, cr, cg, cb, 32);
}
} else if(t==PT_PLUT)
{
cr = 0x40;
cg = 0x70;
cb = 0x20;
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(int tempx = 2; tempx < 10; tempx++) {
for(int 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);
}
else if(t==PT_SLTW)
}
} else if(t==PT_URAN)
{
cr = 0x70;
cg = 0x70;
cb = 0x20;
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(int tempx = 2; tempx < 10; tempx++) {
for(int 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);
}
}
} else if(t==PT_SLTW)
{
for(x=-1; x<=1; x++)
{
@ -3180,232 +3215,6 @@ justdraw:
blendpixel(vid, nx+1, ny+1, cr, cg, cb, 32);
blendpixel(vid, nx-1, ny-1, cr, cg, cb, 32);
}
} else if(t==PT_URAN) {
cr=0x70;
cg=0x70;
cb=0x20;
blendpixel(vid, nx, ny, cr, cr, cr, 255);
blendpixel(vid, nx+1, ny, cr, cg, cb, 32);
blendpixel(vid, nx-1, ny, cr, cg, cb, 32);
blendpixel(vid, nx, ny+1, cr, cg, cb, 32);
blendpixel(vid, nx, ny-1, cr, cg, cb, 32);
blendpixel(vid, nx+1, ny-1, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-1, ny+1, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+1, ny+1, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-1, ny-1, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+2, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-2, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-2, ny+2, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+2, ny+2, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-2, ny-2, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+3, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny-3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-3, ny+3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+3, ny+3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-3, ny-3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+3, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny-3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-3, ny+3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+3, ny+3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-3, ny-3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32);
} else if(t==PT_PLUT) {
cr=0x40;
cg=0x70;
cb=0x20;
blendpixel(vid, nx, ny, cr, cr, cr, 255);
blendpixel(vid, nx+1, ny, cr, cg, cb, 32);
blendpixel(vid, nx-1, ny, cr, cg, cb, 32);
blendpixel(vid, nx, ny+1, cr, cg, cb, 32);
blendpixel(vid, nx, ny-1, cr, cg, cb, 32);
blendpixel(vid, nx+1, ny-1, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-1, ny+1, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+1, ny+1, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-1, ny-1, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+2, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-2, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-2, ny+2, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+2, ny+2, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-2, ny-2, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+3, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny-3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-3, ny+3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+3, ny+3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-3, ny-3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+3, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+3, ny-3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-3, ny+3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+3, ny+3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-3, ny-3, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny+1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+1, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny-1, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-1, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny+2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny-2, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny+3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-4, ny-3, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny+4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx-3, ny-4, cr+10, cg+10, cb+10, 32);
blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32);
blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32);
} else if(t==PT_PLSM)
{
float ttemp = parts[i].life;