Spaces:
Running
Running
import{S as $,i as ee,s as te,k as i,q as C,a as S,l as o,m as n,r as I,h as r,c as D,n as s,b as L,G as t,H as Q,I as se,o as le,J as Z,K as re,L as ae,u as ie}from"../chunks/index.0d3f7c7a.js";import{p as oe}from"../chunks/stores.1ae6aa42.js";const ce=""+new URL("../assets/preview.69504cb0.png",import.meta.url).href;function X(V){let e,l,_,E,u,m,b,w,h,k,v,f,y,c,d;return{c(){e=i("div"),l=i("iframe"),E=S(),u=i("div"),m=S(),b=i("div"),w=S(),h=i("div"),k=S(),v=i("div"),f=S(),y=i("div"),c=i("p"),d=C("Use arrow keys. SPACE to fire."),this.h()},l(p){e=o(p,"DIV",{class:!0});var a=n(e);l=o(a,"IFRAME",{src:!0,frameborder:!0,title:!0,height:!0,width:!0,class:!0}),n(l).forEach(r),E=D(a),u=o(a,"DIV",{class:!0}),n(u).forEach(r),m=D(a),b=o(a,"DIV",{class:!0}),n(b).forEach(r),w=D(a),h=o(a,"DIV",{class:!0}),n(h).forEach(r),k=D(a),v=o(a,"DIV",{class:!0}),n(v).forEach(r),a.forEach(r),f=D(p),y=o(p,"DIV",{class:!0});var A=n(y);c=o(A,"P",{});var F=n(c);d=I(F,"Use arrow keys. SPACE to fire."),F.forEach(r),A.forEach(r),this.h()},h(){Z(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(u,"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(p,a){L(p,e,a),t(e,l),t(e,E),t(e,u),t(e,m),t(e,b),t(e,w),t(e,h),t(e,k),t(e,v),L(p,f,a),L(p,y,a),t(y,c),t(c,d)},d(p){p&&r(e),p&&r(f),p&&r(y)}}}function Y(V){let e,l,_,E,u,m,b,w,h,k=V[1]?"Copied!":"Copy the link for later",v,f,y;return{c(){e=i("div"),l=i("img"),E=S(),u=i("p"),m=C("Looks like you're on mobile! Please visit on your laptop."),b=S(),w=i("button"),h=i("p"),v=C(k),this.h()},l(c){e=o(c,"DIV",{class:!0});var d=n(e);l=o(d,"IMG",{src:!0,alt:!0,class:!0,height:!0,width:!0}),E=D(d),u=o(d,"P",{class:!0});var p=n(u);m=I(p,"Looks like you're on mobile! Please visit on your laptop."),p.forEach(r),b=D(d),w=o(d,"BUTTON",{class:!0});var a=n(w);h=o(a,"P",{class:!0});var A=n(h);v=I(A,k),A.forEach(r),a.forEach(r),d.forEach(r),this.h()},h(){Z(l.src,_=ce)||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(u,"class","text-xs text-slate-500 mt-6"),s(h,"class","mt-1"),s(w,"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(c,d){L(c,e,d),t(e,l),t(e,E),t(e,u),t(u,m),t(e,b),t(e,w),t(w,h),t(h,v),f||(y=re(w,"click",ae(V[2])),f=!0)},p(c,d){d&2&&k!==(k=c[1]?"Copied!":"Copy the link for later")&&ie(v,k)},d(c){c&&r(e),f=!1,y()}}}function ne(V){let e,l,_,E,u,m,b,w,h,k,v,f,y,c,d,p,a,A,F,M,U,q,T,H,g=!V[0]&&X(),x=V[0]&&Y(V);return{c(){e=i("div"),l=i("div"),_=i("h1"),E=C("Spaceship freeride"),u=S(),m=i("p"),b=C("Take a break and enjoy a little freeride."),w=S(),g&&g.c(),h=S(),x&&x.c(),k=S(),v=i("div"),f=i("p"),y=C("Made with "),c=i("a"),d=C("Godot"),p=C(`, | |
`),a=i("a"),A=C("Svelte"),F=C(`, | |
`),M=i("a"),U=C("Scenario"),q=C(`, and | |
`),T=i("a"),H=C("Pixelicious"),this.h()},l(j){e=o(j,"DIV",{class:!0});var P=n(e);l=o(P,"DIV",{class:!0});var G=n(l);_=o(G,"H1",{class:!0});var R=n(_);E=I(R,"Spaceship freeride"),R.forEach(r),u=D(G),m=o(G,"P",{class:!0});var B=n(m);b=I(B,"Take a break and enjoy a little freeride."),B.forEach(r),G.forEach(r),w=D(P),g&&g.l(P),h=D(P),x&&x.l(P),k=D(P),v=o(P,"DIV",{class:!0});var J=n(v);f=o(J,"P",{});var z=n(f);y=I(z,"Made with "),c=o(z,"A",{href:!0,target:!0,class:!0});var K=n(c);d=I(K,"Godot"),K.forEach(r),p=I(z,`, | |
`),a=o(z,"A",{href:!0,target:!0,class:!0});var N=n(a);A=I(N,"Svelte"),N.forEach(r),F=I(z,`, | |
`),M=o(z,"A",{href:!0,target:!0,class:!0});var O=n(M);U=I(O,"Scenario"),O.forEach(r),q=I(z,`, and | |
`),T=o(z,"A",{href:!0,target:!0,class:!0});var W=n(T);H=I(W,"Pixelicious"),W.forEach(r),z.forEach(r),J.forEach(r),P.forEach(r),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(c,"href","https://godotengine.org/"),s(c,"target","_blank"),s(c,"class","underline"),s(a,"href","https://svelte.dev/"),s(a,"target","_blank"),s(a,"class","underline"),s(M,"href","https://www.scenario.com/"),s(M,"target","_blank"),s(M,"class","underline"),s(T,"href","https://www.pixelicious.xyz/"),s(T,"target","_blank"),s(T,"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,P){L(j,e,P),t(e,l),t(l,_),t(_,E),t(l,u),t(l,m),t(m,b),t(e,w),g&&g.m(e,null),t(e,h),x&&x.m(e,null),t(e,k),t(e,v),t(v,f),t(f,y),t(f,c),t(c,d),t(f,p),t(f,a),t(a,A),t(f,F),t(f,M),t(M,U),t(f,q),t(f,T),t(T,H)},p(j,[P]){j[0]?g&&(g.d(1),g=null):g||(g=X(),g.c(),g.m(e,h)),j[0]?x?x.p(j,P):(x=Y(j),x.c(),x.m(e,k)):x&&(x.d(1),x=null)},i:Q,o:Q,d(j){j&&r(e),g&&g.d(),x&&x.d()}}}function fe(V,e,l){let _;se(V,oe,b=>l(3,_=b));let E=!1,u=!1;le(()=>{window.innerWidth<768&&l(0,E=!0)});function m(){navigator.clipboard.writeText(_.url.toString()),l(1,u=!0)}return[E,u,m]}class pe extends ${constructor(e){super(),ee(this,e,fe,ne,te,{})}}export{pe as component}; | |