This template is optimized for game jams, with 3rd-party dependencies and some more opinionated patterns.
You can try this template in your browser!
This template builds on top of Bevy New 2D with a few additions:
Features
- Hot-reloaded config files
- Screen transition animations (fade in / out)
- Fancy buttons (drop shadow, hover offset)
- Press P or Escape to pause
- Restart game from pause menu
- Basic rich text parsing
- Dynamic font size
3rd-party crates
avian2dfor 2D physicsbevy_asset_loaderfor asset loading ergonomicsbevy_common_assetsfor loading.ronassetsbevy_editor_plsfor a live inspector windowbevy_mod_debugdumpfor inspecting the system graphbevy_simple_prefsfor remembering settingsiyes_progressfor loading bar progress trackingleafwing-input-managerfor input-to-action mappingpyri_statefor more flexible game statespyri_tooltipfor tooltipstiny_bailfor error handling ergonomics
Assets
Use Bevy CLI to create a new game:
bevy new game -t benfrankel/pyri_new_jam
cd game
git commit -am 'Initial commit'Next, create a new GitHub repository and upload your game to it. Set up GitHub workflows by following the steps described in Bevy New 2D's documentation.
Use any of the following commands to run your game:
bevy run
bevy run web
bevy run --release
bevy run --release webFor VS Code users, .vscode/tasks.json provides IDE integration.
To trigger a full release, navigate to Actions > Release > Run workflow in your GitHub repository.
Note
A web release runs automatically on every commit to main.
The source code in this repository is licensed under either of the following at your option:
- The splash screen image belongs to the Bevy Foundation.
- The pixel fonts are CC0.
- The click and hover sound effects are CC0.
- The title and gameplay music tracks are CC0.