Explspike: Difference between revisions

From Spring
Jump to navigationJump to search
No edit summary
No edit summary
Line 6: Line 6:


https://spring.clan-sy.com/svn/spring/trunk/rts/Sim/Projectiles/Unsynced/ExploSpikeProjectile.cpp
https://spring.clan-sy.com/svn/spring/trunk/rts/Sim/Projectiles/Unsynced/ExploSpikeProjectile.cpp
== Suggested Use ==
Explspike is good for making an explosion seem bright. It is good for situations where you want to suggest that a weapon is powerful without necessarily suggesting that it has a large area of effect.


== Parameters ==
== Parameters ==

Revision as of 01:50, 25 March 2008

Introduction

Explspike basically makes rays of light, like sunlight leaking into a dusty room, but without the dust.

Source

https://spring.clan-sy.com/svn/spring/trunk/rts/Sim/Projectiles/Unsynced/ExploSpikeProjectile.cpp

Suggested Use

Explspike is good for making an explosion seem bright. It is good for situations where you want to suggest that a weapon is powerful without necessarily suggesting that it has a large area of effect.

Parameters

length, width, alpha

Exactly what you'd expect.

alphaDecay

This is subtracted from the alpha every frame. If the alpha passes zero, the effect ends.

lengthGrowth

The length increases by this amount every frame.

dir

The direction of the pike.

color

The color of the pike.