mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-19 23:14:05 +09:00
Romanian and Thai language support, GameFont: scaling
Former-commit-id: 960bbc00b2d16111b5b63fc31a71a8093bae9dc1 Former-commit-id: 159beb538d151a6b332809ddfeb66ce1e02be52d
This commit is contained in:
@@ -100,13 +100,13 @@ class Hitbox(x1: Double, y1: Double, width: Double, height: Double) {
|
||||
return this
|
||||
}
|
||||
|
||||
fun snapToPixel(): Hitbox {
|
||||
/*fun snapToPixel(): Hitbox {
|
||||
hitboxStart.x = Math.round(hitboxStart.x - HALF_PIXEL).toDouble()
|
||||
hitboxStart.y = Math.round(hitboxStart.y - HALF_PIXEL).toDouble()
|
||||
hitboxEnd.x = Math.round(hitboxEnd.x - HALF_PIXEL).toDouble()
|
||||
hitboxEnd.y = Math.round(hitboxEnd.y - HALF_PIXEL).toDouble()
|
||||
return this
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Returns x value of start point
|
||||
|
||||
Reference in New Issue
Block a user