about summary refs log tree commit diff
path: root/src/game/client/gc_effects.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-10 19:36:05 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-10 19:36:05 +0000
commite7241d743cbd73b2950ce73daba35491a47735ea (patch)
treeb479fdb0380557909f791052fb094ad336318610 /src/game/client/gc_effects.cpp
parent3f3e1715114c8f1af1b4128afac0b0699870ae68 (diff)
downloadzcatch-e7241d743cbd73b2950ce73daba35491a47735ea.tar.gz
zcatch-e7241d743cbd73b2950ce73daba35491a47735ea.zip
fixed the ninja rendering
Diffstat (limited to 'src/game/client/gc_effects.cpp')
-rw-r--r--src/game/client/gc_effects.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/game/client/gc_effects.cpp b/src/game/client/gc_effects.cpp
index 6394075e..fcf7ac93 100644
--- a/src/game/client/gc_effects.cpp
+++ b/src/game/client/gc_effects.cpp
@@ -25,6 +25,27 @@ void effect_air_jump(vec2 pos)
 	particle_add(PARTGROUP_GENERAL, &p);
 }
 
+void effect_powerupshine(vec2 pos, vec2 size)
+{
+	if(!add_trail)
+		return;
+		
+	particle p;
+	p.set_default();
+	p.spr = SPRITE_PART_SLICE;
+	p.pos = pos + vec2((frandom()-0.5f)*size.x, (frandom()-0.5f)*size.y);
+	p.vel = vec2(0, 0);
+	p.life_span = 0.5f;
+	p.start_size = 16.0f;
+	p.end_size = 0;
+	p.rot = frandom()*pi*2;
+	p.rotspeed = pi*2;
+	p.gravity = 500;
+	p.friction = 0.9f;
+	p.flow_affected = 0.0f;
+	particle_add(PARTGROUP_GENERAL, &p);
+}
+
 void effect_smoketrail(vec2 pos, vec2 vel)
 {
 	if(!add_trail)