Skip to content

Instantly share code, notes, and snippets.

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];
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) {
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) {
@tyage
tyage / boku2d-base.js
Created April 5, 2011 13:28
givemac2用
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) {
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) {
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;
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;
<!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');
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;
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;