prep for draw glow

This commit is contained in:
minjaesong
2017-07-09 20:29:35 +09:00
parent 5a5fb45c3b
commit 3ffdd7233f
8 changed files with 253 additions and 123 deletions

View File

@@ -1150,7 +1150,7 @@ open class ActorWithPhysics(renderOrder: RenderOrder, val immobileBody: Boolean
override fun drawGlow(batch: SpriteBatch) {
if (isVisible && spriteGlow != null) {
blendLightenOnly()
blendNormal()
val offsetX = hitboxTranslateX * scale
val offsetY = spriteGlow!!.cellHeight * scale - hitbox.height - hitboxTranslateY * scale - 1