sorta works?

This commit is contained in:
minjaesong
2017-05-07 00:24:00 +09:00
parent 25e93b2552
commit 1f1fcfdf5f
3 changed files with 166 additions and 341 deletions

View File

@@ -67,23 +67,22 @@ class BasicDebugInfoWindow : UICanvas {
g.color = GameFontBase.codeToCol["y"]
val hitbox = player?.hitbox
val nextHitbox = player?.nextHitbox
/**
* First column
*/
printLine(g, 1, "posX "
printLine(g, 1, "pointedX "
+ ccG
+ "${hitbox?.pointedX}"
+ " ("
+ "${(hitbox?.pointedX?.div(FeaturesDrawer.TILE_SIZE))?.toInt()}"
+ ")")
printLine(g, 2, "posY "
printLine(g, 2, "endY "
+ ccG
+ hitbox?.pointedY.toString()
+ hitbox?.endPointY.toString()
+ " ("
+ (hitbox?.pointedY?.div(FeaturesDrawer.TILE_SIZE))?.toInt().toString()
+ (hitbox?.endPointY?.div(FeaturesDrawer.TILE_SIZE))?.toInt().toString()
+ ")")
printLine(g, 3, "veloX reported $ccG${player?.moveDelta?.x}")
@@ -95,6 +94,14 @@ class BasicDebugInfoWindow : UICanvas {
printLine(g, 5, "grounded $ccG${player?.grounded}")
printLine(g, 6, "noClip $ccG${player?.noClip}")
if (player != null) {
printLine(g, 7,
"walled ${if (player.walledLeft) "$ccR" else "$ccG"}L" +
"${if (player.walledRight) "$ccR" else "$ccG"}R"
)
}
//printLine(g, 7, "jump $ccG${player.jumpAcc}")
val lightVal: String