This commit is contained in:
monsterkodi 2016-08-17 01:03:22 +02:00
parent 4a0985f2a0
commit a8b4438c58
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class Light extends Item
# @specular_color = colors[KikiLight_specular_color] # @specular_color = colors[KikiLight_specular_color]
@point = new THREE.PointLight 0xffffff, @intensity, @radius, 2 @point = new THREE.PointLight 0xffffff, @intensity, @radius, 2
@point.castShadow = true @point.castShadow = true
@point.shadowDarkness = 0.5 @point.shadow.darkness = 0.5
@point.shadow.mapSize = new THREE.Vector2 2048, 2048 @point.shadow.mapSize = new THREE.Vector2 2048, 2048
@point.shadow.bias = 0.01 @point.shadow.bias = 0.01
geom = new THREE.SphereGeometry 0.3, 16, 16 geom = new THREE.SphereGeometry 0.3, 16, 16

View File

@ -408,7 +408,6 @@ class Player extends Bot
when @key.jump when @key.jump
@jump = false @jump = false
# @jump_once = false
return true return true
when @key.left, @key.right when @key.left, @key.right

View File

@ -63,6 +63,7 @@ class Pushable extends Item
@setPosition targetPos @setPosition targetPos
actionFinished: (action) -> actionFinished: (action) ->
Bot = require './bot'
if action.id in [Action.PUSH, Action.FALL] if action.id in [Action.PUSH, Action.FALL]
gravityDir = @direction gravityDir = @direction