mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
fixture will drop itself when mined
This commit is contained in:
@@ -16,7 +16,7 @@ internal object KillActor : ConsoleCommand {
|
||||
if (args.size == 2) {
|
||||
try {
|
||||
val actorid = args[1].toInt()
|
||||
INGAME.removeActor(actorid)
|
||||
INGAME.queueActorRemoval(actorid)
|
||||
}
|
||||
catch (e: NumberFormatException) {
|
||||
EchoError("Wrong number input.")
|
||||
|
||||
@@ -27,7 +27,7 @@ internal object SpawnPhysTestBall : ConsoleCommand {
|
||||
ball.elasticity = elasticity
|
||||
ball.applyForce(Vector2(xvel, yvel))
|
||||
|
||||
INGAME.addNewActor(ball)
|
||||
INGAME.queueActorAddition(ball)
|
||||
}
|
||||
else if (args.size == 2) {
|
||||
val elasticity = args[1].toDouble()
|
||||
@@ -36,7 +36,7 @@ internal object SpawnPhysTestBall : ConsoleCommand {
|
||||
ball.setPosition(mouseX, mouseY)
|
||||
ball.elasticity = elasticity
|
||||
|
||||
INGAME.addNewActor(ball)
|
||||
INGAME.queueActorAddition(ball)
|
||||
}
|
||||
else {
|
||||
printUsage()
|
||||
|
||||
@@ -17,7 +17,7 @@ internal object SpawnPhysTestLunarLander : ConsoleCommand {
|
||||
|
||||
lander.setPosition(mouseX, mouseY)
|
||||
|
||||
INGAME.addNewActor(lander)
|
||||
INGAME.queueActorAddition(lander)
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
|
||||
@@ -17,7 +17,7 @@ internal object SpawnTapestry : ConsoleCommand {
|
||||
}
|
||||
|
||||
val tapestry = DecodeTapestry(File(args[1]))
|
||||
INGAME.addNewActor(tapestry)
|
||||
INGAME.queueActorAddition(tapestry)
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
|
||||
@@ -16,7 +16,7 @@ internal object SpawnTikiTorch : ConsoleCommand {
|
||||
val torch = FixtureTikiTorch()
|
||||
torch.setPosition(Terrarum.mouseX, Terrarum.mouseY)
|
||||
|
||||
INGAME.addNewActor(torch)
|
||||
INGAME.queueActorAddition(torch)
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
|
||||
Reference in New Issue
Block a user