This is a simple example of using slang-native-playground. See that repo for more information. The voxel engine for this originally comes from my voxel-game project.
This app can be run by cloning the repository and then executing cargo run from the root folder.
This app supports building for web. To do so run:
cargo build --target wasm32-unknown-unknown
wasm-bindgen --out-dir target/generated/ --web target/wasm32-unknown-unknown/debug/slang-voxels.wasm The web build should then be accessible from index.html. To see the current web deploy see the Github Pages Deploy.
- Healthbar
- Cooldown display
- Cooldown implementation
- Projectiles
- Player rendering
- Multiplayer
- GameSettings
- delta_time
- render_size
- game_mode
- max_loaded_chunks
- max_worldgen_rate
- max_update_rate
- world_gen
- Deck picker
