From 1a45b4e4290583499696041f56b4c97f0450f9f1 Mon Sep 17 00:00:00 2001 From: zstenger93 <115490237+zstenger93@users.noreply.github.com> Date: Thu, 14 Mar 2024 10:13:13 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20zstenger?= =?UTF-8?q?93/Transcendence@c9df4914e50cb82efdc91ec47910e7521903d482=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asset-manifest.json | 12 ++++++------ index.html | 2 +- static/css/main.3d5b820c.css | 5 +++++ static/css/main.3d5b820c.css.map | 1 + static/css/main.7a3e1e74.css | 5 ----- static/css/main.7a3e1e74.css.map | 1 - static/js/main.5fd8cb80.js | 3 --- static/js/main.62ef345e.js | 3 +++ ...0.js.LICENSE.txt => main.62ef345e.js.LICENSE.txt} | 0 .../{main.5fd8cb80.js.map => main.62ef345e.js.map} | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 static/css/main.3d5b820c.css create mode 100644 static/css/main.3d5b820c.css.map delete mode 100644 static/css/main.7a3e1e74.css delete mode 100644 static/css/main.7a3e1e74.css.map delete mode 100644 static/js/main.5fd8cb80.js create mode 100644 static/js/main.62ef345e.js rename static/js/{main.5fd8cb80.js.LICENSE.txt => main.62ef345e.js.LICENSE.txt} (100%) rename static/js/{main.5fd8cb80.js.map => main.62ef345e.js.map} (67%) diff --git a/asset-manifest.json b/asset-manifest.json index 0ff06f756..396a45f3c 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.css": "/Transcendence/static/css/main.7a3e1e74.css", - "main.js": "/Transcendence/static/js/main.5fd8cb80.js", + "main.css": "/Transcendence/static/css/main.3d5b820c.css", + "main.js": "/Transcendence/static/js/main.62ef345e.js", "static/js/496.b48b2ec3.chunk.js": "/Transcendence/static/js/496.b48b2ec3.chunk.js", "static/media/404.mp4": "/Transcendence/static/media/404.036827f1db48d0ae1d47.mp4", "static/media/welcomebg.jpg": "/Transcendence/static/media/welcomebg.e865aad312e9f209a8e9.jpg", @@ -28,12 +28,12 @@ "static/media/slick.ttf": "/Transcendence/static/media/slick.c94f7671dcc99dce43e2.ttf", "static/media/slick.woff": "/Transcendence/static/media/slick.295183786cd8a1389865.woff", "index.html": "/Transcendence/index.html", - "main.7a3e1e74.css.map": "/Transcendence/static/css/main.7a3e1e74.css.map", - "main.5fd8cb80.js.map": "/Transcendence/static/js/main.5fd8cb80.js.map", + "main.3d5b820c.css.map": "/Transcendence/static/css/main.3d5b820c.css.map", + "main.62ef345e.js.map": "/Transcendence/static/js/main.62ef345e.js.map", "496.b48b2ec3.chunk.js.map": "/Transcendence/static/js/496.b48b2ec3.chunk.js.map" }, "entrypoints": [ - "static/css/main.7a3e1e74.css", - "static/js/main.5fd8cb80.js" + "static/css/main.3d5b820c.css", + "static/js/main.62ef345e.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 64129a7f2..c2d2f014c 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
p+d/2?r+=n*b*x:m
{let n=p;m>p+d/2?n+=440*b*x:m
{let n=Math.abs((t.width-Math.abs(f))/g),r=m+v*n;r=r>t.height?Math.abs(t.height-r%t.height):r<0?Math.abs(r%t.height):Math.abs(r);let i=p;r>p+d/2+10?i+=500*b*x:r
{let n=p;n=m-d/2,n=Math.max(0,Math.min(n,t.height-d)),p=n,e.fillRect(t.width-u,p,u,d)})(a,r),(e=>{if(f+=g*b*x,m+=v*b*x,m<0?(m=2,v=-v):m>e.height&&(m=e.height-2,v=-v),fh&&m e.width&&(f=e.width/2,m=e.height/2,g=-300,v=-20,s+=1,n=5,i(s))})(r),(e=>{e.beginPath(),e.arc(f,m,8*x,0,2*Math.PI),e.fillStyle="#00FF00",e.fill(),e.closePath()})(a),((e,t)=>{e.fillStyle="#FFFFFF",e.font="80px Helvetica",e.fillText("".concat(s),t.width/2-100,100),e.fillText("".concat(l),t.width/2+60,100)})(a,r),requestAnimationFrame(w),c.current&&(S.ArrowUp||S.w?h-=n*x:(S.ArrowDown||S.s)&&(h+=n*x),h=Math.max(0,Math.min(h,c.current.height-d)))};return(0,t.useEffect)((()=>{const e=e=>{S[e.key]=!0},t=e=>{if(c.current&&e.touches.length>0){const t=c.current.getBoundingClientRect(),n=e.touches[0].clientY-t.top-window.scrollY;h=n-d/2,h=Math.max(0,Math.min(h,c.current.height-d))}};return window.addEventListener("keydown",e),window.addEventListener("keyup",(e=>{S[e.key]=!1})),document.addEventListener("touchmove",t),window.addEventListener("resize",(()=>Hi(c,true,u,d,x,y,f,m,h,p))),Hi(c,true,u,d,x,y,f,m,h,p),w(0),()=>{document.removeEventListener("keydown",e),document.removeEventListener("touchmove",t),window.removeEventListener("resize",Hi)}}),[c]),(0,he.jsx)("div",{className:"flex justify-center items-center h-screen",children:10===r||10===a?10===r?(0,he.jsx)(Bi,{GameCanvas:Yi,backgroundImage:zi,WelcomeButtonStyle:ri,BackButton:ii}):(0,he.jsx)(ji,{GameCanvas:Yi,backgroundImage:zi,WelcomeButtonStyle:ri,BackButton:ii}):(0,he.jsx)(he.Fragment,{children:(0,he.jsx)("canvas",{ref:c,className:"border-8 border-solid border-white",style:{backgroundColor:"#0F0F0F"}})})})},Ki=()=>{const{t:e}=x(),n=ht(),r=ut(),[i,a]=(0,t.useState)(!1),[o,s]=(0,t.useState)(0);return(0,he.jsxs)("div",{id:"aiP",className:"flex justify-center items-center h-screen",children:[(0,he.jsx)(Wi,{location:r,page:"aiP"}),i?(0,he.jsx)(Yi,{className:"m-4",t:e,navigate:n,aiDifficulty:o}):(0,he.jsxs)("div",{className:"relative",children:[(0,he.jsx)("img",{src:zi,style:{width:"80vw",height:"45vw",objectFit:"cover"},alt:"Background",className:"rounded-xl shadow-lg"}),(0,he.jsxs)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center",children:[(0,he.jsx)("button",{onClick:()=>{a(!0)},className:ri,children:e("Start Game")}),(0,he.jsxs)("div",{className:"relative",children:["Level: ",o]}),(0,he.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,he.jsx)("input",{type:"range",min:"0",max:"3",value:o,onChange:e=>s(parseInt(e.target.value)),style:{width:"150px",height:"25px"}})})]}),(0,he.jsx)(ii,{navigate:n,t:e})]})]})},Ji="160",Zi=1,$i=2,Qi=3,ea=0,ta=1,na=100,ra=0,ia=1,aa=2,oa=0,sa=1,la=2,ca=3,ua=4,da=5,ha=6,pa=301,fa=302,ma=303,ga=304,va=306,ya=1e3,xa=1001,_a=1002,ba=1003,Sa=1004,wa=1005,Ea=1006,Ma=1008,Ta=1009,Aa=1012,Ra=1013,Ca=1014,Pa=1015,La=1016,Na=1020,Oa=1023,Ua=1026,Da=1027,ka=33776,Ia=33777,Fa=33778,za=33779,ja=36492,Ba=2300,Ha=2301,Va=2302,Ga=2400,Wa=2401,Xa=2402,qa=3001,Ya="",Ka="srgb",Ja="srgb-linear",Za="display-p3",$a="display-p3-linear",Qa="linear",eo="srgb",to="rec709",no="p3",ro=7680,io=35044,ao="300 es",oo=1035,so=2e3,lo=2001;class co{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,r=n.length;t