| Crates.io | rezcraft |
| lib.rs | rezcraft |
| version | 0.2.0 |
| created_at | 2024-01-17 14:15:25.263554+00 |
| updated_at | 2024-01-24 14:43:52.05072+00 |
| description | Minecraft like game written in rust using wgpu, supporting both native and wasm |
| homepage | |
| repository | https://github.com/Shapur1234/Rezcraft |
| max_upload_size | |
| id | 1102995 |
| size | 459,814 |

Run the web version without installing anything
Precompiled binaries can be found under releases, these binaries have all assets baked into themselves, so you need no resource directory
Alternatively, if you compile rezcraft without the portable feature enabled, setup your file structure like this:
rezcraft (or rezcraft.exe on windows) and the res directory are in the same directory├── res
│ ├── block
│ │ └── ...
│ ├── icon.png
│ ├── shader
│ │ └── ...
│ └── texture
│ └── ...
└── rezcraft (rezcraft.exe on windows)
./saves and ./res) can be change by setting the SAVES_PATH and RESOURCE_PATH enviromental variable.png image to ./res/texture/, it will be loaded after programm restart.yaml block describing file to ./res/block/, use one of the exisitng files as a tempalteEdit block menu while paused)| Key | Action |
|---|---|
| Mouse motion | Rotate camera |
| W / ArrowUp | Move forward |
| S / ArrowDown | Move back |
| A / ArrowLeft | Move left |
| D / ArrowRight | Move right |
| Space / K | Move up |
| LShift / J | Move down |
| X / MouseRight | Delete block |
| C / MouseLeft | Place block |
| V / MouseMiddle | Pick block |
| M | Reload chunk at players position |
| F5 | Save |
| F9 | Load |
| F11 | Toggle fullscreen |
| F12 | Reload settings from config file |
| Tab | Pause / Resume |
| Escape | Exit |
nix develop| Feature | Description | Notes |
|---|---|---|
| portable | Doesn't read resources (textures, shaders...) from disk, but instead bakes them into the binary | Must be enabled when compiling for wasm |
| save_system | Allow for saving and olding of the world | Doesn't work with wasm |
| rayon | Extra pararelism for loading the world and saving | Doesn't work with wasm |
cargo build --no-default-features --release --features "Feature1 Feature2"cargo run --no-default-features --release --features "Feature1 Feature2"wasm-pack build --release --no-default-features --features portable --target web --features wasm_thread/es_modules