Sure! Here's a playable sample game of Text-based Deltarune, implemented as a single HTML file with JavaScript code enclosed in script tags:
This game provides a simple text-based interface where the player can choose between different actions: Fight, Talk, or Spare. The game is initiated when the `startGame()` function is called, and the player's name is obtained through a prompt. Then, the `playGame()` function is executed in a loop until the player decides to quit the game. Each choice leads to a different action, but in this sample game, the actions themselves are not implemented. You can add your own game logic and actions based on the player's choices within the respective conditions.