mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Interactive Fiction player for the web
https://he4et.github.io/elseifplayer/
- JavaScript 60.8%
- CSS 27.5%
- SCSS 10%
- HTML 1.2%
- Shell 0.5%
| src | ||
| .editorconfig | ||
| .eslintrc.js | ||
| .gitignore | ||
| .parcelrc | ||
| gh.release.sh | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
ElseIFPlayer
Interactive Fiction player for the web. Powered by cheap-glkote and Emglken.
To see a live demo, check out https://he4et.github.io/elseifplayer/.
Getting Started
- Make shure that you have NodeJS and NPM installed
- Install required packages with
npm install - Run local development server with
npm run dev
Build
For making a production build use
npm run build <public-url>
- If you want to host player on
https://your.domain/usenpm run build / - For
https://your.domain/some-directory/usenpm run build /some-derectory
Direct links
You can provide the direct link to your game:
/#/mode/encodedURL/[theme]/
mode— player interface mode:play— default multi-window modefocus— single window mode without additional windows, such as the status bar
encodedURL— storyfile location encoded withencodeURIComponenttheme— UI theme, optional
CORS
If the player and your storyfile located on different domains you shoud set appropriate CORS settings.
In case you cannot change the server settings Parchment Proxy can be used.