Skip to content

Commit

Permalink
release: 0.2.7 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Apr 19, 2024
2 parents 3c0c66c + baf029c commit ec2210d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ enum class PersonaType(private val weight: Double) {
duration: String,
personaWidth: Long,
): StringBuilder {
var currentY = Random.nextInt(10, 90)
var currentY = Random.nextInt(30, 80)
var currentX = Random.nextInt(10, 90)
var currentAngle = (Random.nextDouble() * 10).toInt()
var currentScale = Random.nextInt(0, 2) - 1
Expand All @@ -1037,7 +1037,7 @@ enum class PersonaType(private val weight: Double) {
val beforeAnimationPercentage = animationPercentage
animationPercentage += Random.nextInt(2, 6)
val nextY =
Random.nextInt(max(10, min(79, currentY - speed)), min(80, currentY + speed))
Random.nextInt(max(20, min(79, currentY - speed)), min(80, currentY + speed))
val nextX =
Random.nextInt(max(10, min(79, currentX - speed)), min(80, currentX + speed))
val nextAngle = (atan2(
Expand Down

0 comments on commit ec2210d

Please sign in to comment.