This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'), | |
sys = require('sys'); | |
var result = function (file) { | |
fs.readFile(file, "utf-8", function (err, data) { | |
err && sys.print(err) | |
r = ''; | |
n = +data.split('\r\n')[0]; | |
max = +data.split('\r\n')[1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Boku2D = (function() { | |
// RDC | |
var RDC = (function() { | |
var Entity = function (type, pos, obj) { | |
this.type = type; | |
this.pos = pos; | |
this.obj = obj; | |
}; | |
var RDC = function (collide) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Boku2D = (function() { | |
// RDC | |
var RDC = (function() { | |
var Entity = function (type, pos, obj) { | |
this.type = type; | |
this.pos = pos; | |
this.obj = obj; | |
}; | |
var RDC = function (collide) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Boku2D = (function() { | |
// RDC | |
var RDC = (function() { | |
var Entity = function (type, pos, obj) { | |
this.type = type; | |
this.pos = pos; | |
this.obj = obj; | |
}; | |
var RDC = function (collide) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Boku2D = (function() { | |
// RDC | |
var RDC = (function() { | |
var Entity = function (type, pos, obj) { | |
this.type = type; | |
this.pos = pos; | |
this.obj = obj; | |
}; | |
var RDC = function (collide) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Boku2D = (function() { | |
/* | |
Recursive Dimensional Clustering | |
http://lab.polygonal.de/articles/recursive-dimensional-clustering/ | |
*/ | |
var RDC = function (collide) { | |
this.collide = collide; | |
}; | |
// RDC.SUBDIVISION_THRESHOLD = 4; | |
// RDC.CONTACT_THRESHOLD = 0.1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (function() { | |
/* | |
Recursive Dimensional Clustering | |
http://lab.polygonal.de/articles/recursive-dimensional-clustering/ | |
*/ | |
var RDC = function (collide) { | |
this.collide = collide; | |
}; | |
// RDC.SUBDIVISION_THRESHOLD = 4; | |
// RDC.CONTACT_THRESHOLD = 0.1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang='ja'> | |
<head> | |
<meta charset='utf-8' /> | |
<title>socket.io client test</title> | |
<script src="/json.js"></script> <!-- for ie --> | |
<script src="/socket.io/socket.io.js"></script> | |
<script src='http://www.google.com/jsapi'></script> | |
<script> | |
google.load('jquery', '1'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Boku2D = (function() { | |
/* | |
Recursive Dimensional Clustering | |
http://lab.polygonal.de/articles/recursive-dimensional-clustering/ | |
*/ | |
var RDC = function (collide) { | |
this.collide = collide; | |
}; | |
// RDC.SUBDIVISION_THRESHOLD = 4; | |
// RDC.CONTACT_THRESHOLD = 0.1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Boku2D = (function() { | |
/* | |
Recursive Dimensional Clustering | |
http://lab.polygonal.de/articles/recursive-dimensional-clustering/ | |
*/ | |
var RDC = function (collide) { | |
this.collide = collide; | |
}; | |
// RDC.SUBDIVISION_THRESHOLD = 4; | |
// RDC.CONTACT_THRESHOLD = 0.1; |