mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
some changes
This commit is contained in:
@@ -685,9 +685,6 @@ open class ActorWithBody : Actor {
|
||||
// isStationary = (hitbox - oldHitbox).magnitudeSquared < PHYS_EPSILON_VELO
|
||||
isStationary = isCloseEnough(hitbox.startX, oldHitbox.startX) && // this is supposed to be more accurate, idk
|
||||
isCloseEnough(hitbox.startY, oldHitbox.startY)
|
||||
|
||||
|
||||
printdbg(this, tooltipShowing.keys.sorted())
|
||||
}
|
||||
|
||||
fun getDrag(externalForce: Vector2): Vector2 {
|
||||
|
||||
@@ -21,8 +21,9 @@ internal class FixtureTapestry : FixtureBase {
|
||||
@Transient override val spawnNeedsWall = true
|
||||
@Transient override val spawnNeedsFloor = false
|
||||
|
||||
var artName = ""; private set
|
||||
var artAuthor = ""; private set
|
||||
// these properties are transient as they are filled in by reading a binary file
|
||||
@Transient var artName = ""; private set
|
||||
@Transient var artAuthor = ""; private set
|
||||
|
||||
// val tw = 1
|
||||
// val th = 1
|
||||
@@ -109,6 +110,7 @@ internal class FixtureTapestry : FixtureBase {
|
||||
App.disposables.add(texture)
|
||||
|
||||
|
||||
// must be re-spawned on reload to make it visible after load
|
||||
spawn(
|
||||
intTilewiseHitbox.canonicalX.toInt(),
|
||||
intTilewiseHitbox.canonicalY.toInt(),
|
||||
@@ -118,5 +120,5 @@ internal class FixtureTapestry : FixtureBase {
|
||||
)
|
||||
}
|
||||
|
||||
override var tooltipText: String? = "TEST\nSTRING"//if (artName.length + artAuthor.length > 0) "$artName\n$artAuthor" else null
|
||||
override var tooltipText: String? = if (artName.length + artAuthor.length > 0) "$artName\n$artAuthor" else null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user