minor bugfixes

This commit is contained in:
minjaesong
2024-09-03 15:39:11 +09:00
parent f5f1f536cf
commit 3fcb2f9996
2 changed files with 10 additions and 1 deletions

View File

@@ -919,6 +919,15 @@ class YamlCommandNewFlatTerrain : YamlInvokable {
val timeNow = System.currentTimeMillis() / 1000
ui.gameWorld = GameWorld(90*12, 90*4, timeNow, timeNow)
// remove null tiles
for (y in 0 until ui.gameWorld.height) {
for (x in 0 until ui.gameWorld.width) {
ui.gameWorld.setTileWall(x, y, Block.AIR, true)
ui.gameWorld.setTileTerrain(x, y, Block.AIR, true)
}
}
// fill with stuffs
for (y in 0 until ui.gameWorld.height) {
ui.gameWorld.setTileWall(0, y, Block.ILLUMINATOR_RED, true)
ui.gameWorld.setTileWall(ui.gameWorld.width - 1, y, Block.ILLUMINATOR_RED, true)

View File

@@ -40,7 +40,7 @@ open class ActorLobbed(throwPitch: Float) : ActorWithBody() {
super.updateImpl(delta)
if (!soundFired) {
soundFired = true
val amp = 1.65 * (pitch - 0.495)
val amp = 6.0 * (pitch.sqrt() - 0.495)
startAudio(whooshSound, amp)
}
}