Template

A generic template to use as a basis for demos

Playable Demo

- 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.

Videos

thumbnail for youtube video

An example Demo repo

This repo serves as an example of the requirements and standards necessary for creating a demo.

Checklist:

To upload to Itch

Either:

  1. specify the environment variables ITCHIO_GAME, ITCHIO_USER and ITCHIO_API_KEY
  2. put those variables in a .env file (don't forget to exclude it from git)
  3. Only specify ITCHIO_API_KEY, but have an itch url in your frontmatter

To test locally:

To push the build to gh-pages

#!/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

Useful Symbols for documenting keys & buttons

Commonly used sentences:

source
- 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>.
Fork me on GitHub