Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

okaybenji/text-engine

Repository files navigation

######## ####### ## ## ########
## ## ## ## ##
## ##### ### ## #####
## ## ## ## ##
## ####### ## ## ##

####### ### ## ###### ## ### ## #######
## #### ## ## ## #### ## ##
##### ## ## ## ## ### ## ## ## ## #####
## ## ## ## ## ## ## ## ## ## ##
####### ## #### ###### ## ## #### #######

An HTML-based text adventure game engine. Small and easy to use with no dependencies. Highly customizable.

Very little programming is required, but several JavaScript hooks are provided if you are inclined to use them!

How do I use it?

To create your own adventure, you can use one of the files in the game-disks folder as a template. For example, take a look at the disk called newDiskTemplate.

Include your "game disk" (a function returning JSON data) in index.html and load it with loadDisk(myGameData). (Look at index.html in the repo for an example.)

The end product will be your very own text adventure game, similar to this one. It's a good idea to give that game a try to get introduced to the engine.

text-engine uses a disk metaphor for the data which represents your game, like the floppy disks of yore.

Including index.js from this repository in your index.html