mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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) ->
|
||||
spriteOptions = thangID: "Beginner Wizard", resolutionFactor: scale
|
||||
@wizardSprite = new WizardSprite @wizardType, spriteOptions
|
||||
@wizardSprite.update()
|
||||
wizardDisplayObject = @wizardSprite.displayObject
|
||||
wizardDisplayObject.x = 70
|
||||
wizardDisplayObject.y = 120
|
||||
wizardDisplayObject.scaleX = wizardDisplayObject.scaleY = scale
|
||||
wizardDisplayObject.scaleX *= -1
|
||||
@wizardSprite.queueAction 'idle'
|
||||
@wizardSprite.update()
|
||||
@stage.addChild wizardDisplayObject
|
||||
@stage.update()
|
||||
|
||||
|
|
Loading…
Reference in a new issue