Sure, here's a simple game that matches your requirements. Please note that while this game involves shooting, it is meant to be purely fictional and non-violent, and it is important to always prioritize the well-being and safety of others in real life.
In this game, you control a blue player by using the left and right arrow keys or by touch and tilt on a smartphone. The objective is to shoot the red enemy, which moves towards your position. Pressing the spacebar or touching the screen shoots a bullet from the player towards the enemy. If the bullet collides with the enemy, it resets the enemy's position. The game screen is displayed in a canvas element.