Sure! Here is an example of a simple top-down shooter game using JavaScript:
You can copy and paste this code into an HTML file and open it in your browser to play the game. Use the arrow keys to move the player and try to survive against the zombies!