kiki/coffee/stone.coffee
monsterkodi 24315c0ed2 levels
2016-08-10 01:25:54 +02:00

21 lines
612 B
CoffeeScript

# 0000000 000000000 0000000 000 000 00000000
# 000 000 000 000 0000 000 000
# 0000000 000 000 000 000 0 000 0000000
# 000 000 000 000 000 0000 000
# 0000000 000 0000000 000 000 00000000
Item = require './item'
class Stone extends Item
constructor: ->
@geom = new THREE.BoxGeometry 1,1,1
@mat = new THREE.MeshBasicMaterial color: 0x0000ff
@mesh = new THREE.Mesh @geom, @mat
world.scene.add @mesh
@mesh.matrixAutoUpdate = true
super
module.exports = Stone