mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
spawn points are auto selected to be good starting point
This commit is contained in:
@@ -167,7 +167,7 @@ class BasicDebugInfoWindow : UICanvas() {
|
||||
val ppos = ingame?.actorNowPlaying?.centrePosVector
|
||||
val pcx = (ppos?.x?.div(TILE_SIZED)?.fmod(world.width.toDouble())?.div(CHUNK_W)?.toInt() ?: -999)
|
||||
val pcy = (ppos?.y?.div(TILE_SIZED)?.fmod(world.height.toDouble())?.div(CHUNK_H)?.toInt() ?: -999)
|
||||
|
||||
|
||||
for (y in 0 until world.height / CHUNK_H) {
|
||||
for (x in 0 until world.width / CHUNK_W) {
|
||||
val chunkStat = world.chunkFlags[y][x].toUint()
|
||||
|
||||
Reference in New Issue
Block a user