Fixed initial wizard position.

This commit is contained in:
Scott Erickson 2014-03-13 11:07:08 -07:00
parent 485b179f5d
commit c238b49f52

View file

@ -67,12 +67,13 @@ module.exports = class HomeView extends View
createWizard: (scale=3.7) -> createWizard: (scale=3.7) ->
spriteOptions = thangID: "Beginner Wizard", resolutionFactor: scale spriteOptions = thangID: "Beginner Wizard", resolutionFactor: scale
@wizardSprite = new WizardSprite @wizardType, spriteOptions @wizardSprite = new WizardSprite @wizardType, spriteOptions
@wizardSprite.update()
wizardDisplayObject = @wizardSprite.displayObject wizardDisplayObject = @wizardSprite.displayObject
wizardDisplayObject.x = 70 wizardDisplayObject.x = 70
wizardDisplayObject.y = 120 wizardDisplayObject.y = 120
wizardDisplayObject.scaleX = wizardDisplayObject.scaleY = scale wizardDisplayObject.scaleX = wizardDisplayObject.scaleY = scale
wizardDisplayObject.scaleX *= -1 wizardDisplayObject.scaleX *= -1
@wizardSprite.queueAction 'idle'
@wizardSprite.update()
@stage.addChild wizardDisplayObject @stage.addChild wizardDisplayObject
@stage.update() @stage.update()