littlekt
0.6.0
common
core
/
com.lehaine.littlekt.graphics.g2d
/
ParticleSimulator
Particle
Simulator
class
ParticleSimulator
(
maxParticles
:
Int
)
Author
Colton Daily
Constructors
Functions
Properties
Extensions
Constructors
Particle
Simulator
Link copied to clipboard
fun
ParticleSimulator
(
maxParticles
:
Int
)
Functions
alloc
Link copied to clipboard
fun
alloc
(
slice
:
TextureSlice
,
x
:
Float
,
y
:
Float
)
:
Particle
update
Link copied to clipboard
fun
update
(
dt
:
Duration
,
optionalTmod
:
Float
=
-1f
)
Properties
num
Alloc
Link copied to clipboard
var
numAlloc
:
Int
=
0
particles
Link copied to clipboard
val
particles
:
List
<
Particle
>
total
Alive
Link copied to clipboard
var
totalAlive
:
Int
=
0
Extensions
draw
Link copied to clipboard
fun
ParticleSimulator
.
draw
(
batch
:
Batch
)