{"repo":"topheman/bevy-rust-wasm-experiments","free":true,"listed":false,"github":"https://github.com/topheman/bevy-rust-wasm-experiments","clone":"git clone https://github.com/topheman/bevy-rust-wasm-experiments.git","description":"🦀 A small video game developed in Rust with Bevy framework targeting both desktop and WebAssembly (browser)","language":"Rust","stars":46,"topics":["bevy","rust","wasm","webassembly"],"license":"MIT","category":"game-templates","readme_excerpt":"bevy-rust-wasm-experiments This project is a proof of concept that aims to demonstrate how to code a video game in rust that compiles both to: - a binary executable on OS desktop such as MacOS, Linux or Windows ... - a web site, that you could access with any browser (via WebAssembly) The web version is shipping with some features in addition, such as accelerometer support (if you load it on your smartphone 📱), which should integrate seemlessly into the rust source code. Previous work In the last five years I've done a few projects involving rust and WebAssembly: - topheman/webassembly-wasi-experiments: Discover WebAssembly System Interface (WASI) with C/Rust targetting NodeJS, python, Wasmtime and the browser - topheman/rust-wasm-experiments: Discover how to use Rust to generate WebAssembly, called by JavaScript - 📺🇫🇷 Utiliser WebAssembly, dès aujourd'hui - ParisJS #86 Ten years ago, I made a small video game in JavaScript that you can play on your smartphone's browser: topheman/bombs which inspired this current project. Summary - Contributing - Prerequisites - Setup - Folder organization - Development - Desktop - WebAssembly - Web part - Production - CI/CD - https - Assets - Resources Contributing A Makefile is available with a list of tasks. Prerequisites - node@ =18 - rust@ =1.67.0 Setup Folder organization Development Desktop You can compile in watch mode, thanks to cargo-watch and bevy dynamic linking feature: WebAssembly The following will compile the project in We","default_branch":null,"files":null,"tree":[],"storefront":"/r/topheman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/topheman/bevy-rust-wasm-experiments/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}