3
stars
0
forks
source link
Getting started
Create a new project
- Clone this template:
git clone --depth 1 https://github.com/benfrankel/bevy_jam_template.git
- Create a new project:
- Copy
bevy_jam_template
to a new project path (with a valid Rust package name).
- Navigate into the new project path.
- Remove template files:
.git
, create.sh
, Cargo.lock
, LICENSE-0BSD
, LICENSE-CC0-1.0
, README.md
.
- Search and replace instances of
bevy_jam_template
with your project name.
- Initialize git repo:
git init && git add . && git commit -m 'Initial commit'
Enable CI / CD
- Create a GitHub repo for your project.
- Link your local repo to the GitHub repo.
- Configure the GitHub repo:
- Settings > General > Default branch =
main
- Settings > Secrets and variables > Actions > New repository secret
- Name =
BUTLER_CREDENTIALS
- Secret =
<itch.io API key>
- Create an itch.io page for your project.
- Point the
ITCH_TARGET
value in .github/workflows/release.yaml
to your itch.io page.
- To trigger CI, push a commit to
main
.
- To trigger CD, push a release tag in the format
v1.2.3
. Consider releasing daily during a game jam!
Build your project
- Use
cargo build
for native dev builds (or cargo run
, etc.).
- (Linux) Use
./build.sh
to cross-compile release builds and package for itch.io (can't build for Mac; trigger CD for that instead).
- (Non-Linux) Replicate the steps in
build.sh
by hand.
- For VS Code users,
.vscode/tasks.json
provides IDE integration.
Features
Credit
- The splash screen image belongs to the Bevy Foundation and is not covered by any of the licenses in this repository.
- The pixel fonts are CC0-licensed.
- The remainder of this template is made available under CC0 or 0BSD at your choice.