mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 13:04:05 +09:00
35 lines
735 B
Kotlin
35 lines
735 B
Kotlin
package net.torvald.terrarum.gameactors
|
|
|
|
import net.torvald.terrarum.gameworld.GameWorld
|
|
|
|
|
|
/**
|
|
* Game player (YOU!)
|
|
*
|
|
* Created by minjaesong on 2015-12-31.
|
|
*/
|
|
|
|
class Player(world: GameWorld, born: GameDate) : ActorHumanoid(world, born) {
|
|
|
|
companion object {
|
|
@Transient const val PLAYER_REF_ID: Int = 0x91A7E2
|
|
}
|
|
|
|
/**
|
|
* Creates new Player instance with empty elements (sprites, actorvalue, etc.).
|
|
|
|
* **Use PlayerFactory to build player!**
|
|
|
|
* @throws SlickException
|
|
*/
|
|
init {
|
|
referenceID = PLAYER_REF_ID // forcibly set ID
|
|
density = BASE_DENSITY
|
|
collisionType = COLLISION_KINEMATIC
|
|
}
|
|
|
|
override fun update(delta: Float) {
|
|
super.update(delta)
|
|
}
|
|
|
|
} |