wall block item to use its own texture (for real)

This commit is contained in:
minjaesong
2019-02-01 17:28:08 +09:00
parent 7d3bf0eece
commit 01094d49eb
3 changed files with 32 additions and 5 deletions

View File

@@ -535,6 +535,14 @@ fun SpriteBatch.drawStraightLine(x: Float, y: Float, otherEnd: Float, thickness:
infix fun Color.mul(other: Color): Color = this.cpy().mul(other)
infix fun Color.mulAndAssign(other: Color): Color {
this.r *= other.r
this.g *= other.g
this.b *= other.b
this.a *= other.a
return this
}
fun blendMul(batch: SpriteBatch) {