physics objects (ActorWithBody) will now sleep if ||v|| < 0.5, faction ID is now positive integer (64-bit) only

Former-commit-id: 437cff82cf5748c36c5ad72bc43b4fc172b168c8
Former-commit-id: 3ab0500f83da229ec77b85c09ec42fd332ef62ce
This commit is contained in:
Song Minjae
2016-04-26 14:36:21 +09:00
parent 6ae31f1858
commit 7d804f24e7
8 changed files with 104 additions and 49 deletions

View File

@@ -331,17 +331,13 @@ object MapCamera {
tilesetBook[mode].endUse()
}
private fun getGrassInfo(x: Int, y: Int, from: Int, to: Int): Int {
return 0
}
/**
* @param x
* *
* @param y
* *
* @return [0-15] 1: up, 2: right, 4: down, 8: left
* @return binary [0-15] 1: up, 2: right, 4: down, 8: left
*/
private fun getNearbyTilesInfo(x: Int, y: Int, mode: Int, mark: Int?): Int {
val nearbyTiles = IntArray(4)
@@ -415,7 +411,6 @@ object MapCamera {
// has tile on the bottom
3 else 0
}
}
private fun drawTile(mode: Int, tilewisePosX: Int, tilewisePosY: Int, sheetX: Int, sheetY: Int) {