mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
minor bugfixes
This commit is contained in:
@@ -919,6 +919,15 @@ class YamlCommandNewFlatTerrain : YamlInvokable {
|
|||||||
val timeNow = System.currentTimeMillis() / 1000
|
val timeNow = System.currentTimeMillis() / 1000
|
||||||
ui.gameWorld = GameWorld(90*12, 90*4, timeNow, timeNow)
|
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) {
|
for (y in 0 until ui.gameWorld.height) {
|
||||||
ui.gameWorld.setTileWall(0, y, Block.ILLUMINATOR_RED, true)
|
ui.gameWorld.setTileWall(0, y, Block.ILLUMINATOR_RED, true)
|
||||||
ui.gameWorld.setTileWall(ui.gameWorld.width - 1, y, Block.ILLUMINATOR_RED, true)
|
ui.gameWorld.setTileWall(ui.gameWorld.width - 1, y, Block.ILLUMINATOR_RED, true)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ open class ActorLobbed(throwPitch: Float) : ActorWithBody() {
|
|||||||
super.updateImpl(delta)
|
super.updateImpl(delta)
|
||||||
if (!soundFired) {
|
if (!soundFired) {
|
||||||
soundFired = true
|
soundFired = true
|
||||||
val amp = 1.65 * (pitch - 0.495)
|
val amp = 6.0 * (pitch.sqrt() - 0.495)
|
||||||
startAudio(whooshSound, amp)
|
startAudio(whooshSound, amp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user