mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Possibly hooked up scaleFactorX and scaleFactorY.
This commit is contained in:
parent
2a8d0eb694
commit
847faf4d10
1 changed files with 4 additions and 2 deletions
|
@ -187,8 +187,10 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
scaleX = if @getActionProp 'flipX' then -1 else 1
|
||||
scaleY = if @getActionProp 'flipY' then -1 else 1
|
||||
scaleFactor = @thang.scaleFactor ? 1
|
||||
@imageObject.scaleX = @originalScaleX * scaleX * scaleFactor
|
||||
@imageObject.scaleY = @originalScaleY * scaleY * scaleFactor
|
||||
scaleFactorX = @thang.scaleFactorX ? scaleFactor
|
||||
scaleFactorY = @thang.scaleFactorY ? scaleFactor
|
||||
@imageObject.scaleX = @originalScaleX * scaleX * scaleFactorX
|
||||
@imageObject.scaleY = @originalScaleY * scaleY * scaleFactorY
|
||||
|
||||
updateAlpha: ->
|
||||
return unless @thang?.alpha?
|
||||
|
|
Loading…
Reference in a new issue