https://github.com/casey/pxl
🕹 A simple framework for making games in Rust
https://github.com/casey/pxl
Last synced: over 1 year ago
JSON representation
🕹 A simple framework for making games in Rust
- Host: GitHub
- URL: https://github.com/casey/pxl
- Owner: casey
- License: cc0-1.0
- Created: 2018-06-21T19:42:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T23:38:14.000Z (almost 8 years ago)
- Last Synced: 2024-10-11T23:57:44.973Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 94.7 KB
- Stars: 29
- Watchers: 5
- Forks: 2
- Open Issues: 89
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# pxl
A simple framework for writing graphical programs and games in Rust.
## Crates
This repository is a cargo workspace consisting of a number of crates:
- `pxl`: The library and runtime. Start here!
- `pxl-build`: A compile-time resource loader. Check this out if you want to use static assets, like images and sounds.
- `pxl-build-test`: Tests and usage example for `pxl-build`.
- `pxl-mono`: Mono and sometimes chromatic audio-reactive visuals built using `pxl`
## Building
Since `pxl` programs use per-pixel rendering, building in release mode can yield dramatically improved performance. Do `cargo run --release` to build in release mode.
## Dependencies
The `pxl` runtime plays audio using `cpal`, which requires ALSA headers/libraries on Linux;
On Ubuntu, you can install them with:
```sh
sudo apt install libasound2-dev
```