Sure! Here's an example of a simple Kirby game implemented as a single HTML file using JavaScript:
This is a simplified example and does not include the game logic for eating enemies or spitting apples, or the fight with Whispy Woods, but it provides a starting point for you to expand upon and add more features to the game.