BlueGit

timfa raytracer

Files

raytracer / build / shot-pd-occluded.html

shot-pd-occluded.html

shot-pd-occluded.html 720 B Download Raw
1<html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</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 NpcSystem!=='undefined' && NpcSystem.ready && typeof Player!=='undefined'){
12 Player.x=48; Player.y=48; Player.rotation=0.4; Player.pitch=0;
13 if(n>30){ document.title='READY'; clearInterval(id); }
14 }
15 if(n>250){ document.title='TIMEOUT'; clearInterval(id); }
16 },100);
17})();
18</script>
19</body></html>