Skip to content

Commit

Permalink
refactor: 캐릭터의 최대 높이를 줄인다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Apr 19, 2024
1 parent 3c0c66c commit baf029c
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 baf029c

Please sign in to comment.