Sure! Here's a simple game called "Training Grounds" inspired by Doom Slayer. Please note that this code is just a basic implementation and may not be a fully functional game. You can save the code in a single HTML file and open it in a web browser to play.
In this game, you control a blue player character using the arrow keys. The player can move within the boundaries of the canvas. The game continuously updates the player's position and redraws the canvas to create the illusion of movement.
Remember that this is just a basic starting point, and you can enhance it further by adding enemies, collectibles or any other features inspired by Doom Slayer or any other game.