Play game
Tiny Emoji-venture's itch.io pageHow many characters of code did you use?
500
Include your code here, if you'd like to show it off!
<p><h1><script src="j.js"></script><script>s=[["๐",3],["๐ง ",3],["๐ช",3],["๐ฐ",0]],L=0,x="๐41๐ถ01๐ฆฃ11๐ฟ42๐ซ02๐ป43๐ฟ12๐น12๐32๐ฆ43๐21๐41๐บ44๐บ31",y=x.match(/.{1,4}/g),c={1:0,2:1,3:2},u=h=>{null!=h&&L>=0&&(a=y[L+h],i=+a[2],v=+a[3],4==i&&(i=0,v=-v),s[i][1]+=v,L+=h+1,d())},d=()=>{for(h="",j=-1;j++<3;)h+=s[j][0]+s[j][1]+" ";if(h+="<br>",j=0,s[0][1]<=0)h+="๐",L=-1;else if(L+3>y.length)h+="โญ",L=-1;else for(;j++<3;)h+=y[L+j-1].substring(0,2);$("h1").html(h)},k=h=>{u(c[h.key])},$(document).on("keydown",k),d()</script>
Leave a comment
Log in with itch.io to leave a comment.