Difference between revisions of "ParticleSystem"
Line 19: | Line 19: | ||
[[Category:Types]] | [[Category:Types]] | ||
{{#set:Description=Used to create cool effects, like fire.}} | {{#set:Description=Used to create cool effects, like fire.}} | ||
+ | {{#set:Since=000}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|ParticleSystem}} | {{i18n|ParticleSystem}} |
Revision as of 21:35, 26 May 2011
Used to create cool effects, like fire. 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.
Constructors
love.graphics.newParticleSystem | Creates a new ParticleSystem. |
Functions
Body | Bodies are objects with velocity and position. |
Canvas | Off-screen render target. |
Canvas (Nederlands) | Off-screen render target. |
CircleShape | Circle extends Shape and adds a radius and a local position. |
Contact | Contacts are objects created to manage collisions in worlds. |
Data | The superclass of all data. |
Decoder | An object which can gradually decode a sound file. |
DistanceJoint | Keeps two bodies at the same distance. |
Drawable | Superclass for all things that can be drawn on screen. |
File | Represents a file on the filesystem. |
FileData | Data representing the contents of a file. |
Font | Defines the shape of characters than can be drawn onto the screen. |
FontData | A FontData represents a font. |
Framebuffer | Off-screen render target. |
GearJoint | Keeps bodies together in such a way that they act like gears. |
GlyphData | A GlyphData represents a drawable symbol of a font. |
Image | Drawable image type. |
ImageData | Raw (decoded) image data. |
Joint | Attach multiple bodies together to interact in unique ways. |
Mesh | A 2D polygon mesh used for drawing arbitrary textured shapes. |
MouseJoint | For controlling objects with the mouse. |
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
ParticleSystem | Used to create cool effects, like fire. |
ParticleSystem:clone | Creates an identical copy of the ParticleSystem in the stopped state. |
ParticleSystem:count | Gets the amount of particles that are currently in the system. |
ParticleSystem:emit | Emits a burst of particles from the particle emitter. |
ParticleSystem:getAreaSpread | Gets the area-based spawn parameters for the particles. |
ParticleSystem:getBufferSize | Gets the maximum number of particles the ParticleSystem can have at once. |
ParticleSystem:getColors | Gets the colors to apply to the particle sprite. |
ParticleSystem:getCount | Gets the number of particles that are currently in the system. |
ParticleSystem:getDirection | Gets the direction of the particle emitter (in radians). |
ParticleSystem:getEmissionArea | Gets the area-based spawn parameters for the particles. |
ParticleSystem:getEmissionRate | Gets the amount of particles emitted per second. |
ParticleSystem:getEmitterLifetime | Gets how long the particle system will emit particles |
ParticleSystem:getImage | Gets the image used for the particles. |
ParticleSystem:getInsertMode | Gets the mode used when the ParticleSystem adds new particles. |
ParticleSystem:getLinearAcceleration | Gets the linear acceleration (acceleration along the x and y axes) for particles. |
ParticleSystem:getLinearDamping | Gets the amount of linear damping (constant deceleration) for particles. |
ParticleSystem:getOffset | Gets the particle image's draw offset. |
ParticleSystem:getOffsetX | Get the x coordinate of the particle rotation offset. |
ParticleSystem:getOffsetY | Get the y coordinate of the particle rotation offset. |
ParticleSystem:getParticleLifetime | Gets the lifetime of the particles. |
ParticleSystem:getPosition | Gets the position of the emitter. |
ParticleSystem:getQuads | Gets a series of Quads used for the particle sprites. |
ParticleSystem:getRadialAcceleration | Gets the radial acceleration (away from the emitter). |
ParticleSystem:getRotation | Gets the rotation of the image upon particle creation (in radians). |
ParticleSystem:getSizeVariation | Gets the amount of size variation. |
ParticleSystem:getSizes | Gets the sizes of the particle over its lifetime. |
ParticleSystem:getSpeed | Gets the speed of the particles. |
... further results |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info