web-text-adventure
v1.10.5
Published
This is a text adventure game engine built with React.
Downloads
14
Readme
Web Text Adventure
This is a text adventure game engine built with React.
to get started:
- install nodejs and npm
- run
npx web-text-adventure
- run
cd adventure
- run
npm i -D
- npm
npm start
- a live development server is now running
- edit stuff
you can run npm start
at any point to start
To make production build
- run
npm build
- your build is inside
dist
Concepts
Scenes
A scene is a single screen of information, it contains one or more options. These options will link you to other scenes.
Flags
Flags are essentially just global variables, but the system will keep track of their initial value
so you can reset them with resetFlags()
, and whenever a change is made to the flag, it reupdates the
UI on screen.
Single Instance
You can only run one instance of the game engine per page, as it sets global variables.