Skip to content

Instantly share code, notes, and snippets.

@lewdev
Last active September 23, 2024 01:42
Show Gist options
  • Select an option

  • Save lewdev/b990d08f507422bfec09f7cf2170055e to your computer and use it in GitHub Desktop.

Select an option

Save lewdev/b990d08f507422bfec09f7cf2170055e to your computer and use it in GitHub Desktop.
πŸ’€ Dweetegem Hero #helldivers #strategem as a Dweet

πŸ’€ Dweetegem Hero #helldivers #strategem as a Dweet

I love the new Helldivers 2 game and made a Dweet-sized version of Strategem Hero.

a="β¬…β¬†βž‘β¬‡"
t?c.width=99:n=b=0
x.fillText((s=[...Object.keys(this)[n]].map(v=>a[v.charCodeAt()%4]).join``).substr(b),1,9)
onkeyup=e=>a[(e.keyCode-5)%4]==s[b]&&++b>=s.length&&(b=0,n++)

πŸ’€ Strategem Hero in a bookmark (bookmarklet)

Of course, I had to make it into bookmarklet:

data:text/html,<meta charset=utf8><body id=o onload="a='β¬…β¬†βž‘β¬‡';n=b=0;r=_=>o.innerHTML=(s=[...Object.keys(this)[n]].map(v=>a[v.charCodeAt()%4]).join``).substr(b)+'<div align=center>'+[...a].map((d,i)=>`<button onclick=k({keyCode:${i+5}}) style=font:9vw'>${d}</button>`).join``;onkeyup=k=e=>((a[(e.keyCode-5)%4]==s[b]&&++b>=s.length?(b=0,n++):0),r());r();"style=overflow:hidden;font:27vw'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment