mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-13 07:06:06 +09:00
some minor touches
This commit is contained in:
10
build.gradle
10
build.gradle
@@ -49,28 +49,28 @@ task game(type: JavaExec) {
|
|||||||
classpath sourceSets.main.runtimeClasspath
|
classpath sourceSets.main.runtimeClasspath
|
||||||
main = 'net.torvald.terrarum.AppLoader'
|
main = 'net.torvald.terrarum.AppLoader'
|
||||||
group = "Application"
|
group = "Application"
|
||||||
description = "Launches the game. Should be the same as 'gradlew run'."
|
description = "Launches the game. Should be the same as 'gradlew run'"
|
||||||
}
|
}
|
||||||
|
|
||||||
task gamedebug(type: JavaExec) {
|
task gamedebug(type: JavaExec) {
|
||||||
classpath sourceSets.main.runtimeClasspath
|
classpath sourceSets.main.runtimeClasspath
|
||||||
main = 'net.torvald.terrarum.AppLoader'
|
main = 'net.torvald.terrarum.AppLoader'
|
||||||
group = "Application"
|
group = "Application"
|
||||||
description = "Launches the game with the debug key."
|
description = "Launches the game with the debug key"
|
||||||
args = ["isdev=true"]
|
args = ["isdev=true"]
|
||||||
jvmArgs = ["-ea"]
|
jvmArgs = ["-ea"] // make assert functions work
|
||||||
}
|
}
|
||||||
|
|
||||||
task spriteassembler(type: JavaExec) {
|
task spriteassembler(type: JavaExec) {
|
||||||
classpath sourceSets.main.runtimeClasspath
|
classpath sourceSets.main.runtimeClasspath
|
||||||
main = 'net.torvald.spriteassembler.SpriteAssemblerAppKt'
|
main = 'net.torvald.spriteassembler.SpriteAssemblerAppKt'
|
||||||
group = "Application"
|
group = "Application"
|
||||||
description = "Launches the Sprite Assembler."
|
description = "Launches the Sprite Assembler"
|
||||||
}
|
}
|
||||||
|
|
||||||
task csveditor(type: JavaExec) {
|
task csveditor(type: JavaExec) {
|
||||||
classpath sourceSets.main.runtimeClasspath
|
classpath sourceSets.main.runtimeClasspath
|
||||||
main = 'net.torvald.terrarum.debuggerapp.CSVEditor'
|
main = 'net.torvald.terrarum.debuggerapp.CSVEditor'
|
||||||
group = "Application"
|
group = "Application"
|
||||||
description = "Launches the CSV Editor. (for Blocks?)"
|
description = "Launches the CSV Editor for in-game Blocks"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ interface NoiseMaker {
|
|||||||
|
|
||||||
object BiomeMaker : NoiseMaker {
|
object BiomeMaker : NoiseMaker {
|
||||||
|
|
||||||
override val sampleDensity = HEIGHT.toDouble() // 24: magic number from old code
|
override val sampleDensity = 24.0 // 24: magic number from old code
|
||||||
|
|
||||||
override fun draw(x: Int, y: Int, noiseValue: Double, outTex: Pixmap) {
|
override fun draw(x: Int, y: Int, noiseValue: Double, outTex: Pixmap) {
|
||||||
val colPal = biomeColors
|
val colPal = biomeColors
|
||||||
|
|||||||
Reference in New Issue
Block a user