mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-04 17:19:47 -04:00
Moved createMarks() to setupSprite() to optimize loading
This commit is contained in:
parent
d186ae0a15
commit
005a91cec2
1 changed files with 1 additions and 1 deletions
|
@ -71,12 +71,12 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
@stillLoading = true
|
||||
@thangType.fetch()
|
||||
@thangType.once 'sync', @setupSprite, @
|
||||
@createMarks()
|
||||
|
||||
setupSprite: ->
|
||||
@stillLoading = false
|
||||
@actions = @thangType.getActions()
|
||||
@buildFromSpriteSheet @buildSpriteSheet()
|
||||
@createMarks()
|
||||
|
||||
destroy: ->
|
||||
mark.destroy() for name, mark of @marks
|
||||
|
|
Loading…
Add table
Reference in a new issue