mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
Fixed initial wizard position.
This commit is contained in:
parent
485b179f5d
commit
c238b49f52
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue