A browser-based text adventure game engine and sample game
GPL-3.0 License
text-engine has been updated to version 3.0.
There are several new features, but the one I'm most excited about is the new command-replay save system. Game saves are now just a list of commands entered by the player, and loading a save instantly plays back every command. This makes developing games with text-engine way more fun! Iterating goes like this:
Additionally, players can now save their game state to disk in a simple, readable (and editable!) text file to load back up at any time. This is also great for developers, because if someone encounters a bug in your game, they can send you their save file so you can reproduce it effortlessly.
In order to support this, text-engine now expects your disk to be a function returning an object rather than just an object. However, the old disk format is still supported, and happily, migration is a breeze.
Since the save system has changed, you should check the updated notes on the system and verify your game is compatible before upgrading to text-engine 3.
Here's a list of the major changes:
getItem
function which searches player inventory and the current room.text-engine has been updated to version 2.0, and it includes a ton of new features! A new demo has been added showing off what you can do, so be sure to try it out.
onLook
, onTalk
callbacksblock
property for blocked exitsprintln
accepts optional CSS class nameprintln
accepts optional array to randomize outputI hope you'll try it out!