Skip to main content
Photography of Alvaro Montoro being a doofus
Alvaro Montoro

Terrible Singer

person walking the plank on a pirate ship

CSS game: Plankman

css html webdev codepen

Ahoy, mateys! Do you like games? "Arrr" you "hooked" into movies? Here is a pirated-themed version of the Hangman game developed using only HTML and CSS (no JavaScript and no images):

The topic is "movie titles"

For this game, I chose to not use SCSS or Pug (or any other preprocessor) as the logic is fairly simple... a decision I'd regret soon enough later, as it is really tedious too (using preprocessors would make adding new movie titles so much easier.)

There are 10 movie titles that are "randomized" for the game using the CSS pseudo-randomization algorithm explained in this article. It would have been easier to have them in order, but the "random" factor makes it more interesting.

The images are not really images –not even inline SVGs–, it's all cartoons done with CSS and styled using shadows, clip paths, and border-radius. Developing the shark was fun, and I'm particularly happy with how it looks.


If you like CSS games like this one, check this CodePen collection or visit this GitHub repo.

Article originally published on