This is a starter pack for Dendry games. It includes a basic game structure, a sample story, and a few useful extensions.
First, duplicate (fork) this repository by clicking the "Use this template" button in the top right.
and choose "create a new repository".
If you have a working node environment, we recommand running it locally (see below). Otherwise, you can do everything in the browser.
In your forked repository, click the "Settings" button, then scroll down to the "Pages" section.
In the "Build and deploy" section, select the "Github Actions" option, then click "Save".
To open the github development environment by just pressing .
in the browser.
It will allow you to modify the files in the repository directly from the browser.
Each time you're satisfied with your changes, save (commit) them by clicking the "Commit and push" button in the source control menu. You'll need to add a "commit message" every time (it'll help you track your changes, but don't sweat it).
Each time you commit, it will automatically build the game and publish it on github pages (at the url https://YOURHANDLE.github.io/YOURREPONAME).
If an error occurs (because you made a mistake in your code), you can see the logs in the "Actions" tab.
First of all, clone your forked repository.
Run npm install
in the repository folder.
Run npm run dendry make-html
in the repository folder.
This will build the game and put the result in the out/html
folder.