Tech
Classic Snake and Tank Wars!
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...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to