mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fix for WizardSprite scale thing.
This commit is contained in:
parent
86736d8f4a
commit
88a5685c37
1 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,13 @@ module.exports = class WizardSprite extends IndieSprite
|
|||
thang.pos.z += thang.bobHeight
|
||||
thang
|
||||
|
||||
finishSetup: ->
|
||||
@updateBaseScale()
|
||||
@scaleFactor = @thang.scaleFactor if @thang?.scaleFactor
|
||||
@updateScale()
|
||||
@updateRotation()
|
||||
# Don't call general update() because Thang isn't built yet
|
||||
|
||||
onPlayerStatesChanged: (e) ->
|
||||
for playerID, state of e.states
|
||||
continue unless playerID is @thang.id
|
||||
|
|
Loading…
Reference in a new issue