Play game
Falling Letters's itch.io pageHow many characters of code did you use?
500
Include your code here, if you'd like to show it off!
<style>*{background:#111;color:#1d1;font-size:8.9vw;line-height:8.2vh}</style><pre id="a"></pre><script>g=String.fromCharCode,h=document,m=Math,i=1200,s=0,a=[],r=e=>m.floor(m.random()*e),d=e=>{h.getElementById("a").innerHTML=e||a.join("\n")},f=()=>{a.splice(0,0," ".repeat(r(18)+1)+g(r(26)+65)),d(),i-=10,a.length<13?setTimeout(f,i):(d("Game Over\n\nScore: "+s),a=[])},h.onkeydown=e=>{k=e.keyCode,c=g(k),a.length<1?8==k&&(s=0,i=1200,f()):32!=k&&a.at(-1).search(c)>-1&&(a.pop(),s++,d())},f();</script>
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet