Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 6, 2020 05:17 pm GMT

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.


Original Link: https://dev.to/alvaromontoro/css-game-plankman-356m

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To