mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 13:04:05 +09:00
fucked up while making ActorValue delegated – not applicable; can't have default value
making commits for files to keep so that I can discard changes
This commit is contained in:
@@ -133,4 +133,8 @@ class Hitbox(x1: Double, y1: Double, width: Double, height: Double) {
|
||||
fun fromTwoPoints(x1: Double, y1: Double, x2: Double, y2: Double) =
|
||||
Hitbox(x1, y1, x2 - x1, y2 - y1)
|
||||
}
|
||||
|
||||
operator fun minus(other: Hitbox): Vector2 {
|
||||
return Vector2(other.centeredX - this.centeredX, other.centeredY - this.centeredY)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user