summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorBryan Hoyle <starfoxprime@gmail.com>2011-08-16 18:39:50 (GMT)
committer Bryan Hoyle <starfoxprime@gmail.com>2011-08-16 18:39:50 (GMT)
commite55e52c4604cafcfadde2ac7a1d893631f321871 (patch)
treecb851246e8b10959b33f86356140d8807080af38 /src/graphics.c
parente7ce51d420d30ee6ab82df8e7dbbe791401f33e9 (diff)
downloadpowder-e55e52c4604cafcfadde2ac7a1d893631f321871.zip
powder-e55e52c4604cafcfadde2ac7a1d893631f321871.tar.gz
added gbmb which is an element that makes large amounts of gravity when it hits a particle
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 14367ae..481d891 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -3247,6 +3247,21 @@ void draw_parts(pixel *vid)
}
}
+ else if (t==PT_GBMB)
+ {
+ x = nx/CELL;
+ y = ny/CELL;
+ if (parts[i].tmp==1) {
+ fire_r[y][x] = (int)((float)parts[i].life/100.0 * 25);
+ fire_g[y][x] = (int)((float)parts[i].life/100.0 * 50);
+ fire_b[y][x] = (int)((float)parts[i].life/100.0 * 255);
+ }
+
+ else {
+ blendpixel(vid, nx, ny, 255, 255, 255, 255);
+ }
+
+ }
else if (ptypes[t].properties&PROP_HOT_GLOW && parts[i].temp>(ptransitions[t].thv-800.0f))
{
float frequency = 3.1415/(2*ptransitions[t].thv-(ptransitions[t].thv-800.0f));