mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Cleaned up a couple things in LayerAdapter.
This commit is contained in:
parent
769a02eeeb
commit
cc255086f1
1 changed files with 1 additions and 4 deletions
|
@ -42,7 +42,7 @@ module.exports = LayerAdapter = class LayerAdapter extends CocoClass
|
|||
buildAutomatically: true
|
||||
buildAsync: true
|
||||
resolutionFactor: SPRITE_RESOLUTION_FACTOR
|
||||
defaultActions: ['idle', 'die', 'move', 'move', 'attack']
|
||||
defaultActions: ['idle', 'die', 'move', 'attack']
|
||||
numThingsLoading: 0
|
||||
lanks: null
|
||||
spriteSheet: null
|
||||
|
@ -147,9 +147,6 @@ module.exports = LayerAdapter = class LayerAdapter extends CocoClass
|
|||
#- Adding, removing children for WebGL layers.
|
||||
|
||||
addLank: (lank) ->
|
||||
# TODO: Move this into the production DB rather than setting it dynamically.
|
||||
if lank.thangType?.get('name') is 'Highlight'
|
||||
lank.thangType.set('spriteType', 'segmented')
|
||||
lank.options.resolutionFactor = @resolutionFactor
|
||||
|
||||
lank.layer = @
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue