CREATING EFFECTS LIBRARIES
Once you designed a cool particle type or effective combination of several particle types, you might want to re-use it in a later project. You can simply automatize the process of creating particle types using a function:
Function CreateEmitter_Smoke% ()

 	EM% = CreateEmitter()
	; SMOKE
	P1% = CreateParticleType()
	ParticleType_SetImage         P1,5
	ParticleType_SetSpeed         P1,5,2
	ParticleType_SetSize          P1,1,1,2,3
	ParticleType_SetAlpha         P1,.7,.5,-.8
	ParticleType_SetWeight        P1,-1,.5
	ParticleType_SetRotation      P1,1,90
	ParticleType_SetColor         P1,125,125,140,60,-50,-50,-55
	ParticleType_SetEmissionAngle P1,0,75
	ParticleType_SetLifeTime      P1,1500
	ParticleType_SetAddedBlend    P1,0

	Emitter_SetSound EM,"smoke.mp3",1
	Emitter_AddParticleType EM, P1, 0,5000,75

	Return EM

End Function
This re-usable function creates a new emitter, feeds it with smoke particles, attaches an emitter sound and returns the emitter handle each time it is called. You can store such functions in a seperate file (your particle library) and re-use it at any time.