Sure! Here's a sample implementation of the classic game "Snake" that incorporates shooting elements.
This implementation can be saved as a single HTML file and can be executed on any browser. It incorporates tap event shooting using a smartphone touchscreen. The snake moves using the arrow keys on a keyboard. Shooting bullets at the food doubles the size of the snake, and the score increases accordingly. The game ends when the snake collides with the walls or with itself, and the final score is displayed.