minimap barely working

This commit is contained in:
minjaesong
2021-12-16 16:40:53 +09:00
parent ff848c7c3a
commit fc61bf1da5
3 changed files with 113 additions and 41 deletions

View File

@@ -171,6 +171,8 @@ open class GameWorld() : Disposable {
}
}
fun coordInWorld(x: Int, y: Int) = y in 0 until height // ROUNDWORLD implementation
fun coordInWorldStrict(x: Int, y: Int) = x in 0 until width && y in 0 until height // ROUNDWORLD implementation
fun renumberTilesAfterLoad() {
// before the renaming, update the name maps