mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fixed #1321.
This commit is contained in:
parent
d8d40ab0f6
commit
7b39bd06f3
1 changed files with 1 additions and 1 deletions
|
@ -66,10 +66,10 @@ module.exports = class Mark extends CocoClass
|
|||
@mark = new createjs.Container()
|
||||
@mark.mouseChildren = false
|
||||
style = @sprite.thang.drawsBoundsStyle
|
||||
@drawsBoundsIndex = @sprite.thang.drawsBoundsIndex
|
||||
return if style is 'corner-text' and @sprite.thang.world.age is 0
|
||||
|
||||
# Confusingly make some semi-random colors that'll be consistent based on the drawsBoundsIndex
|
||||
@drawsBoundsIndex = @sprite.thang.drawsBoundsIndex
|
||||
colors = (128 + Math.floor(('0.'+Math.sin(3 * @drawsBoundsIndex + i).toString().substr(6)) * 128) for i in [1 ... 4])
|
||||
color = "rgba(#{colors[0]}, #{colors[1]}, #{colors[2]}, 0.5)"
|
||||
[w, h] = [@sprite.thang.width * Camera.PPM, @sprite.thang.height * Camera.PPM * @camera.y2x]
|
||||
|
|
Loading…
Reference in a new issue