
Description
my last mod of the year... exam coming up. ```(()=>{if(window.sn){sn();return}const D={37:[-1,0],38:[0,-1],39:[1,0],40:[0,1]};let a,f,d,n,w,t=0,A=0,X=0;function B(v){copyLevel(thisLevel.map(r=>r.map(()=>v)));tileDepths=[[],[],[],[]];getTileDepths();calculateShadowsAndBorders();for(const[o,c]of[[osc1,osctx1],[osc2,osctx2]]){o.width=levelWidth*30*pixelRatio|0;o.height=levelHeight*30*pixelRatio|0;c.setTransform(pixelRatio,0,0,pixelRatio,0,0)}drawStaticTiles();w=[]}function P(){w.forEach(c=>thisLevel[c.y][c.x]=67);w=[...a,f];a.forEach((c,i)=>thisLevel[c.y][c.x]=i%2?60:65);thisLevel[f.y][f.x]=12;tileDepths[1]=w;locations[2]=f.x;locations[3]=f.y}function L(){do f={x:Math.random()*levelWidth|0,y:Math.random()*levelHeight|0};while(a.some(c=>c.x==f.x&&c.y==f.y))}function S(){d=n;let h={x:a[0].x+d[0],y:a[0].y+d[1]},g=h.x==f.x&&h.y==f.y;if(h.x<0||h.y<0||h.x>=levelWidth||h.y>=levelHeight||(g?a:a.slice(0,-1)).some(c=>c.x==h.x&&c.y==h.y)){X=1;B(72);return}g||a.pop();a.unshift(h);g&&L();P()}function R(){char.forEach(c=>c.charState=0);control=10000;B(67);a=[{x:levelWidth/2|0,y:levelHeight/2|0}];d=n=[1,0];X=0;A=1;L();P()}const r=draw;draw=function(){if(menuScreen!=3)A=0;if(A&&!X){if(!wipeTimer&&++t%8==0)S();locations[4]=0;coinAlpha=100;char[0].x=a[0].x*30+15;char[0].y=a[0].y*30+15;control=0;setCamera();control=10000}r()};const e=resetLevel;resetLevel=function(){e();A&&R()};addEventListener('keydown',k=>{let m=D[k.keyCode];A&&m&&(m[0]+d[0]||m[1]+d[1])&&(n=m)});window.sn=R;R()})()``` PLEASE DO NOT ALSO PASTE THE THREE BACKTICK AT THE START AND THE END!! and this notice too ig