mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Enabled the Surface's normalStage and all its layers.
This commit is contained in:
parent
c1e7423a64
commit
37e9d7bb2d
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ module.exports = Surface = class Surface extends CocoClass
|
|||
@normalLayers.push @screenLayer = new Layer name: 'Screen', layerPriority: 3, transform: Layer.TRANSFORM_SCREEN, camera: @camera
|
||||
@normalLayers.push @cameraBorderLayer = new Layer name: 'Camera Border', layerPriority: 4, transform: Layer.TRANSFORM_SURFACE, camera: @camera
|
||||
@cameraBorderLayer.addChild @cameraBorder = new CameraBorder(bounds: @camera.bounds)
|
||||
@normalStage.addChild @normalLayers...
|
||||
@normalStage.addChild (layer.container for layer in @normalLayers)...
|
||||
|
||||
canvasWidth = parseInt @normalCanvas.attr('width'), 10
|
||||
canvasHeight = parseInt @normalCanvas.attr('height'), 10
|
||||
|
@ -234,7 +234,7 @@ module.exports = Surface = class Surface extends CocoClass
|
|||
|
||||
drawCurrentFrame: (e) ->
|
||||
++@totalFramesDrawn
|
||||
# @normalStage.update e
|
||||
@normalStage.update e
|
||||
@webGLStage.update e
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue