diff --git a/coffee/light.coffee b/coffee/light.coffee index 8889a05..6e9db37 100644 --- a/coffee/light.coffee +++ b/coffee/light.coffee @@ -16,7 +16,7 @@ class Light extends Item # @specular_color = colors[KikiLight_specular_color] @point = new THREE.PointLight 0xffffff, @intensity, @radius, 2 @point.castShadow = true - @point.shadowDarkness = 0.5 + @point.shadow.darkness = 0.5 @point.shadow.mapSize = new THREE.Vector2 2048, 2048 @point.shadow.bias = 0.01 geom = new THREE.SphereGeometry 0.3, 16, 16 diff --git a/coffee/player.coffee b/coffee/player.coffee index eb5509e..2f0ddfd 100644 --- a/coffee/player.coffee +++ b/coffee/player.coffee @@ -408,7 +408,6 @@ class Player extends Bot when @key.jump @jump = false - # @jump_once = false return true when @key.left, @key.right diff --git a/coffee/pushable.coffee b/coffee/pushable.coffee index da2b9e5..f7ac929 100644 --- a/coffee/pushable.coffee +++ b/coffee/pushable.coffee @@ -62,7 +62,8 @@ class Pushable extends Item # log "Pushable.finishAction setPosition:", targetPos @setPosition targetPos - actionFinished: (action) -> + actionFinished: (action) -> + Bot = require './bot' if action.id in [Action.PUSH, Action.FALL] gravityDir = @direction