mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 05:24:06 +09:00
24 lines
591 B
Kotlin
24 lines
591 B
Kotlin
package net.torvald.terrarum.gameactors
|
|
|
|
import org.dyn4j.geometry.Vector2
|
|
import org.newdawn.slick.Image
|
|
|
|
/**
|
|
* Created by minjaesong on 2017-01-20.
|
|
*/
|
|
class ParticleTestRain(posX: Double, posY: Double) : ParticleBase(Actor.RenderOrder.BEHIND, 6000) {
|
|
|
|
init {
|
|
body = Image("./assets/modules/basegame/weathers/raindrop.tga")
|
|
val w = body.width.toDouble()
|
|
val h = body.height.toDouble()
|
|
hitbox.setFromWidthHeight(
|
|
posX - w.times(0.5),
|
|
posY - h.times(0.5),
|
|
w, h
|
|
)
|
|
|
|
velocity.y = 10.0
|
|
}
|
|
|
|
} |