Version 0.3.0
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Type
ParticleSystem
The particle systems are created and drawn on the screen using functions in love.graphics. They also need to be updated in the update(dt) callback for you to see any changes in the particles emitted
Functions
setBufferSize( size )Sets the size of the buffer (the max allowed amount of particles in the system).
setSprite( sprite )Sets the image which is to be emitted.
setEmissionRate( rate )Sets the amount of particles emitted per second.
setLifetime( life )Sets how long the particle system should emit particles (if -1 then it emits particles forever).
setParticleLife( life )Sets the life of the particles.
setParticleLife( min, max )Sets the minimum and maximum life of the particles.
setPosition( x, y )Sets the position of the emitter.
setDirection( direction )Sets the direction the particles will be emitted in (in degrees).
setDirection( direction, spread )Sets the direction the particles will be emitted in (in degrees).
setSpeed( speed )Sets the speed of the particles.
setSpeed( min, max )Sets the minimum and maximum speed of the particles.
setGravity( gravity )Sets the gravity affecting the particles (acceleration along the y-axis).
setGravity( min, max )Sets the minimum and maximum gravity affecting the particles (acceleration along the y-axis).
setRadialAcceleration( acceleration )Sets the radial acceleration (acceleration towards the emitter).
setRadialAcceleration( min, max )Sets the minimum and maximum radial acceleration (acceleration towards the emitter).
setTangentialAcceleration( acceleration )Sets the tangential acceleration (acceleration perpendicular to the particle's direction).
setTangentialAcceleration( min, max )Sets the minimum and maximum tangential acceleration (acceleration perpendicular to the particle's direction).
setSize( size )Sets the size of the image (1.0 being normal size).
setSize( start, end )Sets the size of the image upon particle creation and death (1.0 being normal size).
setSize( start, end, variation )Sets the size of the image upon particle creation and death and the degree of variation (1.0 being normal size).
setSizeVariation( variation )Sets the degree of variation (0 meaning no variation and 1 meaning full variation between start and end).
setRotation( rotation )Sets the rotation of the image upon particle creation (in degrees).
setRotation( min, max )Sets the range of rotation upon particle creation (in degrees).
setSpin( size )Sets the spin of the sprite.
setSpin( start, end )Sets the spin of the sprite upon particle creation and death.
setSpin( start, end, variation )Sets the spin of the sprite upon particle creation and death and the degree of variation.
setSpinVariation( variation )Sets the degree of variation (0 meaning no variation and 1 meaning full variation between start and end).
setColor( color )Sets the color of the image (color modulation needs to be activated for it to have any effect).
setColor( start, end )Sets the color of the image upon creation and death (color modulation needs to be activated for it to have any effect).
getX( )Gets the x-coordinate of the particle emitter's position.
getY( )Gets the y-coordinate of the particle emitter's position.
getDirection( )Gets the direction of the particle emitter (in degrees).
getSpread( )Gets the amount of directional spread of the particle emitter (in degrees).
count( )Gets the amount of particles that are currently in the system.
start( )Starts the particle emitter.
stop( )Stops the particle emitter, resetting the lifetime counter.
pause( )Pauses the particle emitter.
reset( )Resets the particle emitter, removing any existing particles and resetting the lifetime counter.
isActive( )Checks whether the particle system is actively emitting particles.
isEmpty( )Checks whether the particle system is empty of particles.
isFull( )Checks whether the particle system is full of particles.
update( dt )Updates the particle system; moving, creating and killing particles.