If you’re looking for good examples of how to build games in Excalibur, please visit the official sample gallery.
We don’t recommend using this game’s source code as an example for your own work
- it was built quickly during a game jam; the code likely cuts a few corners and is a bit messy in some places
- the version of Excalibur it's using is out-of-date; the API may have changed, and there are newer, better design patterns for building games using the Excalibur engine.
If you’d like to explore for curiosity’s sake, go on ahead, and good luck!
- the Excalibur.js team
Visit https://excaliburjs.com/ludum-50/ to play!
- NodeJS 16.x
- Git
Updating your local copy with git pull -r to rebase your local commits on top of upstream, makes the main easy to follow and merges less difficult.
-
Clone the repo
git clone https://github.com/excaliburjs/ludum-50.git -
Navigate into the root directory
ludum-50in your favorite command line tool -
Run the install to download the tools:
npm install -
Run the following (only needed once or if the submodule is changed) commands to setup the git submodule:
git submodule init git submodule update -
Build excalibur (takes a while the first time). This only needs to be re run if core excalibur changes.
npm run build:excalibur -
Build the project:
npm run build -
Run the game locally with parcel:
npm start -
Make your changes, commit directly to the 'main' branch, update your local copy with
git pull -r, and then push to the remote repository.
We have excalibur dev-tools running by default. It shows up in the top right corner of the browser tab.
- Pressing
pon the keyboard will toggle pause/resume of the game. - Pressing
;will toggle excalibur debug mode (this won't update unless game is running). This can also be toggled at the top of the excalibur dev-tools window.