Skip to content

Instantly share code, notes, and snippets.

<canvas id='world' width="465" height="465"></canvas>
<div id="fps"></div>
<style>
body {
margin:0;
padding:0;
overflow:hidden;
background:#666;
}
canvas{
var Model = (function() {
var _fromGetInstance = false;
var _instance;
function _construct() {
if (_fromGetInstance !== true) {
throw new Error("must use the getInstance.");
}
_fromGetInstance = false;