Template for a Game using the awesome Bevy engine featuring out of the box builds for Windows, Linux, macOS and Web (WASM).
- basic setup with an executable crate on the root level and your game as a Bevy plugin in a library
- small example game (warning: biased; e.g. split into a lot of plugins and using
bevy_kira_audio
for sound) - workflow for GitHub actions creating releases for Windows, Linux, macOS and Web (WASM) ready for distribution
- push a tag in the form of
v[0-9]+.[0-9]+.[0-9]+*
(e.g.v1.1.42
) to trigger the flow
- push a tag in the form of
- Create a repository based on this template
- Look for
ToDo
to use your own game name everywhere - Update the icons as described below
- Start coding 🎉
- Start the native app:
cargo run --features native
- Start the web build:
cargo make serve
(requirescargo-make
; to install runcargo install cargo-make
)
- Start the native app:
You should keep the credits
directory up to date. The release workflow automatically includes the directory.
- Replace
build/windows/icon.ico
(icon used for windows executable and as favicon for the web-builds) - Replace
build/macos/icon_1024x1024.png
with a1024
times1024
pixel png icon and runcreate_icns.sh
(make sure to run the script inside themacos
directory) - Warning: sadly this seems to require a mac...
You should checkout the bevy website for links to resources. I can also recommend the official Discord server as a place to keep up to date with the development and get feedback + help from other Bevy users.
- Audio in web-builds currently comes with some issues. In some browsers it might not work or sound bad.
This project is licensed under CC0 1.0 Universal except some content of assets
and the Bevy icons in the build
directory (see Credits). Go crazy and feel free to show me whatever you build with this (@nikl_me).