actors now use 'updateImpl'; static sound for smelter and furnace

This commit is contained in:
minjaesong
2024-02-12 05:04:52 +09:00
parent 7d871c5d49
commit a14f2697fb
3 changed files with 6 additions and 0 deletions

View File

@@ -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)
}

View File

@@ -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

View File

@@ -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
}