mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
d5b0a83186
1 changed files with 2 additions and 1 deletions
|
@ -93,6 +93,7 @@ module.exports = class Mark extends CocoClass
|
|||
@lastHeight = @sprite.thang.height
|
||||
|
||||
buildShadow: ->
|
||||
alpha = @sprite.thang?.alpha ? 1
|
||||
width = (@sprite.thang?.width ? 0) + 0.5
|
||||
height = (@sprite.thang?.height ? 0) + 0.5
|
||||
longest = Math.max width, height
|
||||
|
@ -103,7 +104,7 @@ module.exports = class Mark extends CocoClass
|
|||
height *= Camera.PPM * @camera.y2x # TODO: doesn't work with rotation
|
||||
@mark = new createjs.Shape()
|
||||
@mark.mouseEnabled = false
|
||||
@mark.graphics.beginFill "black"
|
||||
@mark.graphics.beginFill "rgba(0, 0, 0, #{alpha})"
|
||||
if @sprite.thang.shape in ['ellipsoid', 'disc']
|
||||
@mark.graphics.drawEllipse 0, 0, width, height
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue