lone leaves decaying

This commit is contained in:
minjaesong
2024-01-28 20:14:48 +09:00
parent 6e69fb3872
commit d3cd3465c7
6 changed files with 52 additions and 15 deletions

View File

@@ -2068,7 +2068,7 @@ open class ActorWithBody : Actor {
private fun makeDust(collisionDamage: Double, vecSum: Vector2) {
val particleCount = (collisionDamage / 24.0).pow(0.75)
val trueParticleCount = particleCount.toInt() + (Math.random() < (particleCount % 1.0)).toInt()
val trueParticleCount = particleCount.ditherToInt()
val feetTiles = getFeetTiles()