An open API service indexing awesome lists of open source software.

https://github.com/aarongarciah/shoot-target-css-game

🎯 Pure HTML/CSS game. Shoot as many targets as you can!
https://github.com/aarongarciah/shoot-target-css-game

animation bullseye css game html target transition

Last synced: 10 months ago
JSON representation

🎯 Pure HTML/CSS game. Shoot as many targets as you can!

Awesome Lists containing this project

README

          

[![Shoot the Target! Pure HTML/CSS Game](.github/shoot-the-target.jpg)](https://shoot-target-css-game.netlify.com)

[![Netlify Status](https://api.netlify.com/api/v1/badges/9fcb8ff9-c803-40e2-a93f-4bfa94143e8a/deploy-status)](https://app.netlify.com/sites/shoot-target-css-game/deploys)

Try it! https://shoot-target-css-game.netlify.com

This game is made entirely with HTML and CSS. Shoot as many targets as you can!

It has been made thanks to this amazing CSS features:

- [Counters](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters)
- [Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/--*)
- [Custom cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Basic_User_Interface/Using_URL_values_for_the_cursor_property) using an [SVG data url](https://stackoverflow.com/a/46017733/2767771)
- [Animations](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations) and the ability to pause them with [`animation-play-state`](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-play-state)
- [`:target`](https://developer.mozilla.org/en-US/docs/Web/CSS/:target) pseudo-class
- [Radial Gradients](https://developer.mozilla.org/en-US/docs/Web/CSS/radial-gradient)
- [`pointer-events`](https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events)

If you wanna read how to build this game step by step read [the post](https://octuweb.com/html-css-dan-mucho-juego/) I wrote for Octuweb 2018 (in spanish).

> I made the first version of this game for the [Alicante Codepen Meetup](https://www.meetup.com/Alicante-Frontend/events/243642935/) on December 12, 2017. It's hosted [on CodePen](https://codepen.io/aarongarciah/pen/ypBoVm).
>
> Then, I made a second and improved version of the game on October 1, 2018 for the ["🎯 HTML + CSS dan mucho juego"](https://octuweb.com/html-css-dan-mucho-juego/) (in spanish) article published in [Octuweb](https://octuweb.com) 2018. It's hosted [on CodePen](https://codepen.io/aarongarciah/pen/BOEZvY).
>
> This final versions has a couple of tweaks but it's pretty much the same version than 2018.

## Improvements

- [ ] Add link to restart game

## License

MIT

Made with ♥️ by [Aarón García Hervás](https://aarongarciah.com)