HugoDzz's picture
feat: update game
b64c993
raw
history blame
5.35 kB
import{S as Q,i as X,s as Y,k as o,q as I,a as D,l as c,m as f,r as P,h as a,c as S,n as s,b as F,G as t,H as K,I as Z,o as $,J as W,K as ee,L as te,u as se}from"../chunks/index.0d3f7c7a.js";import{p as le}from"../chunks/stores.e628b955.js";const re=""+new URL("../assets/preview.69504cb0.png",import.meta.url).href;function N(V){let e,l,_,E,n,m,b,g,h,k,v,u,y,i,p;return{c(){e=o("div"),l=o("iframe"),E=D(),n=o("div"),m=D(),b=o("div"),g=D(),h=o("div"),k=D(),v=o("div"),u=D(),y=o("div"),i=o("p"),p=I("Use arrow keys. SPACE to fire."),this.h()},l(d){e=c(d,"DIV",{class:!0});var r=f(e);l=c(r,"IFRAME",{src:!0,frameborder:!0,title:!0,height:!0,width:!0,class:!0}),f(l).forEach(a),E=S(r),n=c(r,"DIV",{class:!0}),f(n).forEach(a),m=S(r),b=c(r,"DIV",{class:!0}),f(b).forEach(a),g=S(r),h=c(r,"DIV",{class:!0}),f(h).forEach(a),k=S(r),v=c(r,"DIV",{class:!0}),f(v).forEach(a),r.forEach(a),u=S(d),y=c(d,"DIV",{class:!0});var z=f(y);i=c(z,"P",{});var T=f(i);p=P(T,"Use arrow keys. SPACE to fire."),T.forEach(a),z.forEach(a),this.h()},h(){W(l.src,_="game/index.html")||s(l,"src",_),s(l,"frameborder","0"),s(l,"title","Spaceship Drift"),s(l,"height","512"),s(l,"width","512"),s(l,"class",""),s(n,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -top-[3px] -left-[3px]"),s(b,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -bottom-[3px] -left-[3px]"),s(h,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -top-[3px] -right-[3px]"),s(v,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -bottom-[3px] -right-[3px]"),s(e,"class","relative mt-10 border-slate-800 border-[3px]"),s(y,"class","flex flex-row justify-center items-center text-[9px] mt-4 text-slate-500")},m(d,r){F(d,e,r),t(e,l),t(e,E),t(e,n),t(e,m),t(e,b),t(e,g),t(e,h),t(e,k),t(e,v),F(d,u,r),F(d,y,r),t(y,i),t(i,p)},d(d){d&&a(e),d&&a(u),d&&a(y)}}}function O(V){let e,l,_,E,n,m,b,g,h,k=V[1]?"Copied!":"Copy the link for later",v,u,y;return{c(){e=o("div"),l=o("img"),E=D(),n=o("p"),m=I("Looks like you're on mobile! Please visit on your laptop."),b=D(),g=o("button"),h=o("p"),v=I(k),this.h()},l(i){e=c(i,"DIV",{class:!0});var p=f(e);l=c(p,"IMG",{src:!0,alt:!0,class:!0,height:!0,width:!0}),E=S(p),n=c(p,"P",{class:!0});var d=f(n);m=P(d,"Looks like you're on mobile! Please visit on your laptop."),d.forEach(a),b=S(p),g=c(p,"BUTTON",{class:!0});var r=f(g);h=c(r,"P",{class:!0});var z=f(h);v=P(z,k),z.forEach(a),r.forEach(a),p.forEach(a),this.h()},h(){W(l.src,_=re)||s(l,"src",_),s(l,"alt","Preview of the game"),s(l,"class","w-60 border-slate-800 border-[2px]"),s(l,"height","64"),s(l,"width","64"),s(n,"class","text-xs text-slate-500 mt-6"),s(h,"class","mt-1"),s(g,"class","flex flex-row justify-center items-center px-3 py-5 text-xs w-full bg-slate-800 mt-6"),s(e,"class","flex flex-col justify-center items-center mt-10 text-center")},m(i,p){F(i,e,p),t(e,l),t(e,E),t(e,n),t(n,m),t(e,b),t(e,g),t(g,h),t(h,v),u||(y=ee(g,"click",te(V[2])),u=!0)},p(i,p){p&2&&k!==(k=i[1]?"Copied!":"Copy the link for later")&&se(v,k)},d(i){i&&a(e),u=!1,y()}}}function ae(V){let e,l,_,E,n,m,b,g,h,k,v,u,y,i,p,d,r,z,T,A,G,w=!V[0]&&N(),x=V[0]&&O(V);return{c(){e=o("div"),l=o("div"),_=o("h1"),E=I("Spaceship freeride"),n=D(),m=o("p"),b=I("Take a break and enjoy a little freeride."),g=D(),w&&w.c(),h=D(),x&&x.c(),k=D(),v=o("div"),u=o("p"),y=I("Made with "),i=o("a"),p=I("Godot"),d=I(`,
`),r=o("a"),z=I("Svelte"),T=I(`, and
`),A=o("a"),G=I("Pixelicious"),this.h()},l(j){e=c(j,"DIV",{class:!0});var C=f(e);l=c(C,"DIV",{class:!0});var L=f(l);_=c(L,"H1",{class:!0});var U=f(_);E=P(U,"Spaceship freeride"),U.forEach(a),n=S(L),m=c(L,"P",{class:!0});var q=f(m);b=P(q,"Take a break and enjoy a little freeride."),q.forEach(a),L.forEach(a),g=S(C),w&&w.l(C),h=S(C),x&&x.l(C),k=S(C),v=c(C,"DIV",{class:!0});var H=f(v);u=c(H,"P",{});var M=f(u);y=P(M,"Made with "),i=c(M,"A",{href:!0,target:!0,class:!0});var R=f(i);p=P(R,"Godot"),R.forEach(a),d=P(M,`,
`),r=c(M,"A",{href:!0,target:!0,class:!0});var B=f(r);z=P(B,"Svelte"),B.forEach(a),T=P(M,`, and
`),A=c(M,"A",{href:!0,target:!0,class:!0});var J=f(A);G=P(J,"Pixelicious"),J.forEach(a),M.forEach(a),H.forEach(a),C.forEach(a),this.h()},h(){s(_,"class","text-xl capitalize"),s(m,"class","text-xs"),s(l,"class","flex flex-col justify-center items-center space-y-4 text-center sm:mt-20 mt-12"),s(i,"href","https://godotengine.org/"),s(i,"target","_blank"),s(i,"class","underline"),s(r,"href","https://svelte.dev/"),s(r,"target","_blank"),s(r,"class","underline"),s(A,"href","https://www.pixelicious.xyz/"),s(A,"target","_blank"),s(A,"class","underline"),s(v,"class","flex flex-row justify-center items-center fixed bottom-6 text-[9px] text-slate-500"),s(e,"class","flex flex-col justify-center text-slate-100 font-Hellovetica items-center p-4 w-full")},m(j,C){F(j,e,C),t(e,l),t(l,_),t(_,E),t(l,n),t(l,m),t(m,b),t(e,g),w&&w.m(e,null),t(e,h),x&&x.m(e,null),t(e,k),t(e,v),t(v,u),t(u,y),t(u,i),t(i,p),t(u,d),t(u,r),t(r,z),t(u,T),t(u,A),t(A,G)},p(j,[C]){j[0]?w&&(w.d(1),w=null):w||(w=N(),w.c(),w.m(e,h)),j[0]?x?x.p(j,C):(x=O(j),x.c(),x.m(e,k)):x&&(x.d(1),x=null)},i:K,o:K,d(j){j&&a(e),w&&w.d(),x&&x.d()}}}function ie(V,e,l){let _;Z(V,le,b=>l(3,_=b));let E=!1,n=!1;$(()=>{window.innerWidth<768&&l(0,E=!0)});function m(){navigator.clipboard.writeText(_.url.toString()),l(1,n=!0)}return[E,n,m]}class fe extends Q{constructor(e){super(),X(this,e,ie,ae,Y,{})}}export{fe as component};