A generic template to use as a basis for demos
- Once the game loads, click inside of it once to capture your mouse.
- Press escape to get the mouse back. If you intend to press escape in the game, you will need to press escape twice.
This repo serves as an example of the requirements and standards necessary for creating a demo.
README.md is well written:
<kbd> tags, like this: Z. For controllers, you can use AlphaNumeric Enclosed UTF8 chars (see below for a list of useful ones)staticexport_presets.cfg that you tested locally or does not have an export_presets.cfg at all (it will be generated)LICENSE fileEither:
ITCHIO_GAME, ITCHIO_USER and ITCHIO_API_KEY.env file (don't forget to exclude it from git)ITCHIO_API_KEY, but have an itch url in your frontmatterbin and exports to your project's .gitignore (not necessary, but recommended)gwee build \
-b beta9 . \
-d \
-p x11,win,osx,web \
&& \
notify-send "build finished" && \
npx local-web-server \
--https \
--cors.embedder-policy "require-corp" \
--cors.opener-policy "same-origin" \
--directory exports/public
#!/usr/bin/env bash
export BUILD_DIR="exports/public"
export RELEASE_BRANCH="gh-pages"
# if first time:
# git checkout -b $RELEASE_BRANCH
# otherwise:
git fetch origin $RELEASE_BRANCH
git add -f $BUILD_DIR
tree=$(git write-tree --prefix=$BUILD_DIR)
git reset -- $BUILD_DIR
export identifier=$(git describe --dirty --always)
# if first time:
# git push -u origin $RELEASE_BRANCH
export commit=$(git commit-tree -p refs/remotes/origin/$RELEASE_BRANCH -m "Deploy $identifier" $tree)
git update-ref refs/heads/$RELEASE_BRANCH $commit
git push origin refs/heads/$RELEASE_BRANCH
git checkout main
Commonly used sentences:
- Move with <kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> or the <kbd>🕹 left stick</kbd>.
- Move the camera with <kbd>🖱 Mouse</kbd> or the <kbd>🕹 right stick</kbd>.
- Jump with <kbd>␣ Space</kbd> or <kbd>XBox Ⓐ</kbd>.
- Shoot with <kbd>Left Mouse</kbd> or <kbd>XBox Ⓑ</kbd>.
- Aim with <kbd>Right Mouse</kbd> or <kbd>XBox RT</kbd>.
- Cycle weapons with <kbd>⇥ Tab</kbd> or <kbd>Xbox Ⓧ</kbd>.