mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-06 08:38:30 +09:00
updating TODO tags
Former-commit-id: f0ce830cc72911b9c1974a394581003726dfc4e1 Former-commit-id: dfc012568d8362de583b7efa95fd79e35a22b83a
This commit is contained in:
@@ -283,7 +283,6 @@ constructor() : BasicGameState() {
|
|||||||
//g.translate(-MapCamera.cameraX * screenZoom, -MapCamera.cameraY * screenZoom)
|
//g.translate(-MapCamera.cameraX * screenZoom, -MapCamera.cameraY * screenZoom)
|
||||||
tilesDrawFrameBuffer.graphics.translate(-MapCamera.cameraX.toFloat(), -MapCamera.cameraY.toFloat())
|
tilesDrawFrameBuffer.graphics.translate(-MapCamera.cameraX.toFloat(), -MapCamera.cameraY.toFloat())
|
||||||
actorsDrawFrameBuffer.graphics.translate(-MapCamera.cameraX.toFloat(), -MapCamera.cameraY.toFloat())
|
actorsDrawFrameBuffer.graphics.translate(-MapCamera.cameraX.toFloat(), -MapCamera.cameraY.toFloat())
|
||||||
// TODO add new framebuffer so that whole map is zoomed at once, yet not the UI
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ class StateNoiseTexGen : BasicGameState() {
|
|||||||
println("Press SPACE to generate new noise")
|
println("Press SPACE to generate new noise")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO multithreaded
|
||||||
|
|
||||||
private fun noiseRidged(): Joise {
|
private fun noiseRidged(): Joise {
|
||||||
val ridged = ModuleFractal()
|
val ridged = ModuleFractal()
|
||||||
ridged.setType(ModuleFractal.FractalType.RIDGEMULTI)
|
ridged.setType(ModuleFractal.FractalType.RIDGEMULTI)
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ open class ActorWithBody : Actor() {
|
|||||||
hitAndForciblyReflectY()
|
hitAndForciblyReflectY()
|
||||||
grounded = false
|
grounded = false
|
||||||
}
|
}
|
||||||
else if (isColliding(nextHitbox)) { // FIXME if standing: standard box, if walking: top-squished box
|
else if (isColliding(nextHitbox)) {
|
||||||
hitAndReflectY()
|
hitAndReflectY()
|
||||||
grounded = true
|
grounded = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -540,13 +540,6 @@ object LightmapRenderer {
|
|||||||
return constructRGBFromInt(newR, newG, newB)
|
return constructRGBFromInt(newR, newG, newB)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO LUT of 1024 entries (int resulting light, int rectified light)
|
|
||||||
val compLut = floatArrayOf(0f, 0.61328125f, 0.6875f, 0.68359375f, 0.66015625f, 0.62109375f, 0.56640625f, 0.515625f, 0.46484375f, 0.40625f, 0.3515625f, 0.29296875f, 0.234375f, 0.17578125f, 0.1171875f, 0.0546875f, 0f)
|
|
||||||
fun getComp(lum: Float) = FastMath.interpolateLinear(
|
|
||||||
lum.mod(1f / compLut.size),
|
|
||||||
compLut[lum.times(compLut.size).toInt() / compLut.size],
|
|
||||||
compLut[lum.times(compLut.size).toInt() / compLut.size + 1])
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deprecated: Fuck it, this vittupää just doesn't want to work
|
* Deprecated: Fuck it, this vittupää just doesn't want to work
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -103,8 +103,8 @@ object WorldGenerator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Done: more perturbed overworld (harder to supra-navigate)
|
* Done: more perturbed overworld (harder to supra-navigate)
|
||||||
* Todo: veined ore distribution (metals) -- use veined simplex noise
|
* Done: veined ore distribution (metals) -- use veined simplex noise
|
||||||
* Todo: clustered gem distribution (clusters: [Ruby, Sapphire], Amethyst, Yellow topaz, emerald, diamond) -- use regular simplex noise
|
* Done: clustered gem distribution (clusters: [Ruby, Sapphire], Amethyst, Yellow topaz, emerald, diamond) -- use regular simplex noise
|
||||||
* Todo: Lakes! Aquifers! Lava chambers!
|
* Todo: Lakes! Aquifers! Lava chambers!
|
||||||
* Todo: deserts (variants: SAND_DESERT, SAND_RED)
|
* Todo: deserts (variants: SAND_DESERT, SAND_RED)
|
||||||
* Todo: volcano(es?)
|
* Todo: volcano(es?)
|
||||||
@@ -260,9 +260,6 @@ object WorldGenerator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* http://accidentalnoise.sourceforge.net/minecraftworlds.html
|
* http://accidentalnoise.sourceforge.net/minecraftworlds.html
|
||||||
*
|
|
||||||
* TODO have it seamless
|
|
||||||
* use MappingMode.SEAMLESS_XY ?
|
|
||||||
*/
|
*/
|
||||||
private fun raise3(): Array<BitSet> {
|
private fun raise3(): Array<BitSet> {
|
||||||
val noiseMap = Array(HEIGHT, { BitSet(WIDTH) })
|
val noiseMap = Array(HEIGHT, { BitSet(WIDTH) })
|
||||||
|
|||||||
Reference in New Issue
Block a user