mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
backend stuffs in the Terrarum moved to the AppLoader
This commit is contained in:
@@ -101,8 +101,8 @@ internal object WeatherMixer : RNGConsumer {
|
||||
val playerPosY = player.hitbox.centeredY
|
||||
kotlin.repeat(7) {
|
||||
val rainParticle = ParticleMegaRain(
|
||||
playerPosX + HQRNG().nextInt(Terrarum.WIDTH) - Terrarum.HALFW,
|
||||
playerPosY - Terrarum.HEIGHT
|
||||
playerPosX + HQRNG().nextInt(AppLoader.screenW) - AppLoader.halfScreenW,
|
||||
playerPosY - AppLoader.screenH
|
||||
)
|
||||
(Terrarum.ingame!! as TerrarumIngame).addParticle(rainParticle)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user