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