Play thingamajing
Hit The Numbers's itch.io pageHow many characters did you use?
442
Include your code here, if you'd like to show it off!
<html><b></b><script>b=document.getElementsByTagName("b")[0];l=0;d="";t=0;r=0;e=Date.now();s="Type the character scrolling on screen.GLHF!<br/><br/>Score:";document.onkeydown=(e)=>{if(e.key==l){d="";l=0;t+=1}};setInterval(_=>{f=Date.now();if(t>19){d="Congrats!"}else if(t<-19){d="Failure!"}else{if(!l)l=f.toString()[12];d+=l;if(d.length>90){t-=1;l=0;d=""}r=f-e}b.innerHTML=s+t+"<br/>"+d+"<br/><br/>Elapsed:"+(r/1000)+"s";},9)</script></html>
Leave a comment
Log in with itch.io to leave a comment.
Comments
Nice little game! I included it in my TweetTweetJam 2 compilation video series, if you’d like to take a look. :)