I wanted a couple of small games for my portfolio that anyone could play in ten seconds, so I rebuilt two classics: Snake and Tank Wars. Everything lives in a single index.html, written in plain JavaScript on a , with no framework, no bundler and no dependencies. Play it: bryanhamilton.info/arcade.html Here are the parts that were more interesting to build than I expected. Tank Wars Terrain from three sine waves The ground is a height map: one y value per pixel column. I add thr...