I'm glad to hear that you're a programmer and looking to create a game! Here's a simple example of a game implemented in a single HTML file with JavaScript enclosed in script tags:
This is a very simple game where you control a red square using the arrow keys on your keyboard. The square can move in all directions within the canvas. You can expand on this by adding more features, levels, enemies, etc. Enjoy creating your game!