PartEngine Beta v0.5 by Julien COIGNET (ftbass)
2D particules engine, for Blitz Max
Special thanks to:
Filax, GoSsE (nuloen.com), Bot Builder,
au site Blitz3d Fr

Emitter
creation
Size settings
Alpha settings
Life settings
Velocity settings
Remove an emitter
Update emitter
Display Particles
P2D_CreateEmetteur(image,
longevite, x, y, ecartX, ecartY, angle, nbPartFrame, typeEmt)
Creates an emitter, and returns it as a result.
image |
Image |
Variable containing a file image |
longevite |
Int |
Lifespan of the emitter (in seconds) |
x |
Float |
Position in X of the emitter |
y |
Float |
Position in X of the emitter |
ecartX |
Float |
Variation of the position in X of the particles emitted by this
emitter |
ecartY |
Float |
Variation of the position in Yof the particles emitted by this
emitter |
angle |
Float |
|
nbPartFrame |
Int |
Number of particles created by frame |
typeEmt |
String |
Blend applied to the particles ("alpha"
for ALPHABLEND, "light"
for LIGHTBLEND) |
P2D_ReglerEchelle(e,
echelleXIni, echelleYIni, ecartEchelleXIni, ecartEchelleYIni, dEchelleX,
dEchelleY)
Parameters size of the particles emitted by the emitter e.
e |
TEmetteur |
Emitter to which we want to apply the parameters |
echelleXIni |
Float |
Coefficient by which we want to multiply the width of the basic
image |
echelleYIni |
Float |
Coefficient by which we want to multiply the height of the basic
image |
ecartEchelleXIni |
Float |
Variation tolerated in the width of the particles during creation |
ecartEchelleYIni |
Float |
Variation tolerated in the height of the particles during creation |
dEchelleX |
Float |
Evolution of the width of the particle (0: remain stable, <0:
narrows, >0: grows) |
dEchelleY |
Float |
Evolution of the height of the particle (0: remain stable, <0:
narrows, >0: grows) |
P2D_ReglerAlpha(e,
alphaIni, ecartAlpha, dAlpha, ecartDAlpha)
Parameters alpha of the particles emitted by the emitter e.
e |
TEmetteur |
Emitter to which we want to apply the parameters |
alphaIni |
Float |
Alpha allotted to the creation of the particles |
ecartAlpha |
Float |
Variation tolerated in alpha allotted to the creation of the
particles |
dAlpha |
Float |
Evolution of alpha of the particle (0: remain stable, <0:
the transparency increases, >0: opacity increases) |
ecartDAlpha |
Float |
Variation tolerated in the evolution of alpha |
P2D_ReglerVie(e,
viePart, ecartViePart)
Parameters lifespan of the particles emitted by the emitter e.
e |
TEmetteur |
Emitter to which we want to apply the parameters |
viePart |
Int |
Basic lifespan of the particles (in milliseconds) |
ecartViePart |
Int |
Variation tolerated in the lifespan allotted to the creation
of the particles |
P2D_ReglerVelocite(e,
dx, dy, accX, accY)
Parameters displacements of the particles related to the transmitter
e.
e |
TEmetteur |
Emetteur sur lequel on veut appliquer les paramètres |
dx |
Float |
Speed of the particles on axis X |
dy |
Float |
Speed of the particles on axis Y |
accX |
Float |
Acceleration of the particles on axis X |
accY |
Float |
Acceleration of the particles on axis Y |
P2D_SupprEmt(e,
flag)
Removes a transmitter.
e |
TEmetteur |
Emitter which we want to remove |
flag |
Int |
0: Leave the particles emitted to go until their natural death.
1: Remove all the emitted particles. |
P2D_Update()
Updates all emitters, as well as the particles which are dependent
for them.
P2D_Afficher()
Displays all particles.