CSS game: Plankman

alvaromontoro

Alvaro Montoro

Posted on August 6, 2020

CSS game: Plankman

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.

💖 💪 🙅 🚩
alvaromontoro
Alvaro Montoro

Posted on August 6, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related