spawn points are auto selected to be good starting point

This commit is contained in:
minjaesong
2024-01-18 16:11:38 +09:00
parent 51287173ea
commit 2dbf7215a9
2 changed files with 82 additions and 19 deletions

View File

@@ -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()