mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
wip?
This commit is contained in:
@@ -1,16 +1,24 @@
|
||||
package net.torvald.terrarum.modulebasegame.gameactors
|
||||
|
||||
import net.torvald.terrarum.TerrarumAppConfiguration.TILE_SIZE
|
||||
import net.torvald.terrarum.gameactors.ActorID
|
||||
import net.torvald.terrarum.gameactors.ActorWithBody
|
||||
import net.torvald.terrarum.gameactors.PhysProperties
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 2022-02-28.
|
||||
*/
|
||||
class ActorMovingPlatform() : ActorWithBody() {
|
||||
open class ActorMovingPlatform() : ActorWithBody() {
|
||||
|
||||
private val tilewiseLength = 3
|
||||
protected var tilewiseWidth = 3
|
||||
protected val actorsRiding = ArrayList<ActorID>() // saving actorID due to serialisation issues
|
||||
|
||||
init {
|
||||
physProp = PhysProperties.PHYSICS_OBJECT
|
||||
|
||||
setHitboxDimension(TILE_SIZE * tilewiseWidth, TILE_SIZE, 0, 0)
|
||||
}
|
||||
|
||||
private val actorsRiding = ArrayList<ActorID>() // saving actorID due to serialisation issues
|
||||
|
||||
/**
|
||||
* Make the actor its externalV controlled by this platform
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package net.torvald.terrarum.modulebasegame.gameactors
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 2022-03-02.
|
||||
*/
|
||||
class ActorTestPlatform : ActorMovingPlatform() {
|
||||
}
|
||||
Reference in New Issue
Block a user