mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
actors now use 'updateImpl'; static sound for smelter and furnace
This commit is contained in:
@@ -689,6 +689,8 @@ class MovableWorldCamera(val parent: BuildingMaker) : ActorHumanoid(0, physProp
|
||||
)
|
||||
|
||||
override fun updateImpl(delta: Float) {
|
||||
super.updateImpl(delta)
|
||||
|
||||
// confine the camera so it won't wrap
|
||||
this.hitbox.hitboxStart.setCoerceIn(coerceInStart, coerceInEnd)
|
||||
}
|
||||
|
||||
@@ -147,6 +147,8 @@ open class DroppedItem : ActorWithBody {
|
||||
this.lightBoxList[0].light = getLum(this.itemID)
|
||||
}
|
||||
|
||||
super.updateImpl(delta)
|
||||
|
||||
timeSinceSpawned += delta
|
||||
|
||||
// merge into the already existing droppeditem with isStationary==true if one is detected
|
||||
|
||||
@@ -30,6 +30,8 @@ class PhysTestLuarLander : ActorWithBody(RenderOrder.MIDTOP, PhysProperties.PHYS
|
||||
}
|
||||
|
||||
override fun updateImpl(delta: Float) {
|
||||
super.updateImpl(delta)
|
||||
|
||||
if (Gdx.input.isKeyPressed(Input.Keys.UP)) {
|
||||
controllerV!!.y = avSpeedCap
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user