Skip to content

Commit

Permalink
rafactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
awcz committed Jun 26, 2024
1 parent e13b5c8 commit 2242681
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,11 @@ class GameScene : Scene() {
private fun getCurrentMillis() = PerformanceCounter.milliseconds.toLong()

private fun setupStars() {
val width = mapView.size.width.roundToLong()
listOf(
StarFactory().generate(mapView.size.width.roundToLong(), 0, 30, count = 150),
StarFactory().generate(mapView.size.width.roundToLong(), 0, 70, count = 150),
StarFactory().generate(mapView.size.width.roundToLong(), 0, 120)
StarFactory().generate(width, 0, 30, 150),
StarFactory().generate(width, 0, 70, 150),
StarFactory().generate(width, 0, 120)
).forEach {
registerStar(it)
}
Expand Down

0 comments on commit 2242681

Please sign in to comment.