From 6c3ff16bed0ec07c69293f1dbd85c4367585a6d9 Mon Sep 17 00:00:00 2001 From: Scott Erickson <sderickson@gmail.com> Date: Mon, 19 May 2014 21:33:44 -0700 Subject: [PATCH] Fixed setting registration points for thangs that match world dimensions. --- app/lib/surface/CocoSprite.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/lib/surface/CocoSprite.coffee b/app/lib/surface/CocoSprite.coffee index e047e692e..eeb7c9987 100644 --- a/app/lib/surface/CocoSprite.coffee +++ b/app/lib/surface/CocoSprite.coffee @@ -317,10 +317,8 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass return unless bounds @imageObject.scaleX = @thang.width * Camera.PPM / bounds.width @imageObject.scaleY = @thang.height * Camera.PPM * @options.camera.y2x / bounds.height - @imageObject.regX ?= 0 - @imageObject.regX += bounds.width / 2 - @imageObject.regY ?= 0 - @imageObject.regY += bounds.height / 2 + @imageObject.regX = bounds.width / 2 + @imageObject.regY = bounds.height / 2 unless @thang.spriteName is 'Beam' @imageObject.scaleX *= @thangType.get('scale') ? 1