https://github.com/manevillef/bevy_xtemplate
Cross Platform App bevy template
https://github.com/manevillef/bevy_xtemplate
Last synced: 8 months ago
JSON representation
Cross Platform App bevy template
- Host: GitHub
- URL: https://github.com/manevillef/bevy_xtemplate
- Owner: ManevilleF
- License: gpl-3.0
- Created: 2022-06-08T14:24:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T07:23:07.000Z (about 3 years ago)
- Last Synced: 2025-02-14T18:44:15.481Z (8 months ago)
- Language: Shell
- Size: 331 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bevy_xtemplate
Cross Platform App bevy template
## Usage
Install [cargo-generate](https://crates.io/crates/cargo-generate):
`cargo install cargo-generate`
Run the template:
`cargo generate --git https://github.com/ManevilleF/bevy_xtemplate`
## Cross platform targets
### WASM
Run the `build_wasm.sh` script. a `public` folder containing everything required to run the game in the browser.
### iOS (Requires Xcode)
You need to install the correct rust targets:
- `aarch64-apple-ios`: iOS devices
- `x86_64-apple-ios`: iOS simulator on x86 processors
- `aarch64-apple-ios-sim`: iOS simulator on Apple processors```sh
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
```#### Build & Run
Using bash:
```sh
cd apple
make run
```In an ideal world, this will boot up, install and run the app for the first
iOS simulator in your `xcrun simctl devices list`. If this fails, you can
specify the simulator device UUID via:```sh
DEVICE_ID=${YOUR_DEVICE_ID} make run
```You can also open the `xcodeproj` with `Xcode`
### Android
- Install [cargo-apk](https://crates.io/crates/cargo-apk):
`cargo install cargo-apk`
- Install the desired android targets for `rustup`:
`rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android`
#### Build & Run
Run `cargo apk build` to generate the `apk` file.
Run `cargo apk run` to run the app on your connected emulator/device