Particle

class Particle(var slice: TextureSlice)

Author

Colton Daily

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun moveAwayFrom(x: Float, y: Float, speed: Float)
Link copied to clipboard
fun scale(value: Float)
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var alphaDelta: Float = 0.0f
Link copied to clipboard
var anchorX: Float = 0.0f
Link copied to clipboard
var anchorY: Float = 0.0f
Link copied to clipboard
Link copied to clipboard
var colorBdelta: Float = 0.0f
Link copied to clipboard
var colorGdelta: Float = 0.0f
Link copied to clipboard
var colorRdelta: Float = 0.0f
Link copied to clipboard
var data0: Float = 0.0f
Link copied to clipboard
var data1: Float = 0.0f
Link copied to clipboard
var data2: Float = 0.0f
Link copied to clipboard
var data3: Float = 0.0f
Link copied to clipboard
var data4: Float = 0.0f
Link copied to clipboard
var data5: Float = 0.0f
Link copied to clipboard
var data6: Float = 0.0f
Link copied to clipboard
var data7: Float = 0.0f
Link copied to clipboard

Time to delay the particle from starting updates

Link copied to clipboard
var fadeOutSpeed: Float = 0.1f

The speed to fade out the particle after remainingLife is 0

Link copied to clipboard
Link copied to clipboard
var frictionX: Float = 1.0f
Link copied to clipboard
var frictionY: Float = 1.0f
Link copied to clipboard
var gravityX: Float = 0.0f
Link copied to clipboard
var gravityY: Float = 0.0f
Link copied to clipboard
var index: Int = 0
Link copied to clipboard
var killed: Boolean = false
Link copied to clipboard

Total particle life

Link copied to clipboard
var onKill: () -> Unit? = null
Link copied to clipboard
var onStart: () -> Unit? = null
Link copied to clipboard
var onUpdate: (Particle) -> Unit? = null
Link copied to clipboard

Life remaining before being killed

Link copied to clipboard
Link copied to clipboard
var rotationDelta: Float = 0.0f
Link copied to clipboard
Link copied to clipboard
var scaleDelta: Float = 0.0f
Link copied to clipboard
var scaleDeltaX: Float = 0.0f
Link copied to clipboard
var scaleDeltaY: Float = 0.0f
Link copied to clipboard
var scaleFriction: Float = 1.0f
Link copied to clipboard
Link copied to clipboard
var scaleX: Float = 0.0f
Link copied to clipboard
Link copied to clipboard
var scaleY: Float = 0.0f
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var timeStamp: Double = 0.0
Link copied to clipboard
var visible: Boolean = true
Link copied to clipboard
var x: Float = 0.0f
Link copied to clipboard
var xDelta: Float = 0.0f
Link copied to clipboard
var y: Float = 0.0f
Link copied to clipboard
var yDelta: Float = 0.0f

Extensions

Link copied to clipboard
fun Particle.draw(batch: Batch)