BlueGit

timfa raytracer

Files

raytracer / build / shot-floor.html

shot-floor.html

shot-floor.html 812 B Download Raw
1<html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}#hud{display:none!important}</style></head>
2<body>
3<script>Object.defineProperty(window,'innerWidth',{get:()=>960});Object.defineProperty(window,'innerHeight',{get:()=>540});</script>
4<script src="framework.js"></script>
5<script src="game.js"></script>
6<script>
7(function(){
8 var n=0;
9 var id=setInterval(function(){
10 n++;
11 if(typeof Player!=='undefined' && typeof World!=='undefined' && World.level){
12 Player.x=48; Player.y=48; Player.rotation=0.35; Player.pitch=0.15;
13 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && n>40){
14 document.title='READY'; clearInterval(id);
15 }
16 }
17 if(n>300){ document.title='TIMEOUT'; clearInterval(id); }
18 },100);
19})();
20</script>
21</body></html>