mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-04 01:43:40 -04:00
Removed some logs.
This commit is contained in:
parent
4371873d41
commit
9392100d3b
1 changed files with 1 additions and 5 deletions
|
@ -237,14 +237,12 @@ module.exports = class Mark extends CocoClass
|
||||||
@sprite.scaleY = h / (@layer.resolutionFactor * DEBUG_SIZE)
|
@sprite.scaleY = h / (@layer.resolutionFactor * DEBUG_SIZE)
|
||||||
|
|
||||||
buildSprite: ->
|
buildSprite: ->
|
||||||
console.log 'build sprite?'
|
|
||||||
if _.isString @thangType
|
if _.isString @thangType
|
||||||
thangType = markThangTypes[@thangType]
|
thangType = markThangTypes[@thangType]
|
||||||
return @loadThangType() if not thangType
|
return @loadThangType() if not thangType
|
||||||
@thangType = thangType
|
@thangType = thangType
|
||||||
|
|
||||||
return @listenToOnce(@thangType, 'sync', @onLoadedThangType) if not @thangType.loaded
|
return @listenToOnce(@thangType, 'sync', @onLoadedThangType) if not @thangType.loaded
|
||||||
console.log 'loaded, so go ahead!'
|
|
||||||
Lank = require './Lank'
|
Lank = require './Lank'
|
||||||
# don't bother with making these render async for now, but maybe later for fun and more complexity of code
|
# don't bother with making these render async for now, but maybe later for fun and more complexity of code
|
||||||
markLank = new Lank @thangType
|
markLank = new Lank @thangType
|
||||||
|
@ -252,8 +250,7 @@ module.exports = class Mark extends CocoClass
|
||||||
@sprite = markLank.sprite
|
@sprite = markLank.sprite
|
||||||
@markLank = markLank
|
@markLank = markLank
|
||||||
@listenTo @markLank, 'new-sprite', (@sprite) ->
|
@listenTo @markLank, 'new-sprite', (@sprite) ->
|
||||||
console.log 'oh yes, all done', markLank, @markLank
|
|
||||||
|
|
||||||
loadThangType: ->
|
loadThangType: ->
|
||||||
name = @thangType
|
name = @thangType
|
||||||
@thangType = new ThangType()
|
@thangType = new ThangType()
|
||||||
|
@ -263,7 +260,6 @@ module.exports = class Mark extends CocoClass
|
||||||
markThangTypes[name] = @thangType
|
markThangTypes[name] = @thangType
|
||||||
|
|
||||||
onLoadedThangType: ->
|
onLoadedThangType: ->
|
||||||
console.log 'on loaded thang type...', @name
|
|
||||||
@build()
|
@build()
|
||||||
@update() if @markLank
|
@update() if @markLank
|
||||||
@toggle(@toggleTo) if @toggleTo?
|
@toggle(@toggleTo) if @toggleTo?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue