Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove update

  • Loading branch information...
commit 759038296881859bee2c64cd2a9f9a81330cd2a0 1 parent 2649384
@Raynos authored
Showing with 0 additions and 34 deletions.
  1. +0 −14 map/index.js
  2. +0 −20 player/attribute.js
View
14 map/index.js
@@ -72,20 +72,6 @@ function Map() {
}
})
}
-
- function update(stream, data) {
- var changes = data[0]
- , diffX = changes.x || 0
- , diffY = changes.y || 0
-
- entity.x += diffX
- entity.y += diffY
-
- stream.emit("data", [{
- x: entity.x
- , y: entity.y
- }, data[1], data[2]])
- }
}
function addBlock(block) {
View
20 player/attribute.js
@@ -1,20 +0,0 @@
-var forEach = require("iterators").forEachSync
- , through = require("through")
-
-module.exports = AttributeStream
-
-function AttributeStream(elem) {
- var stream = through(updateAttribute)
-
- return stream
-
- function updateAttribute(data) {
- var changes = data[0]
-
- forEach(changes, setAttribute)
- }
-
- function setAttribute(value, key) {
- elem.setAttribute(key, value)
- }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.