https://github.com/hugojosefson/rust-fire
Fire in Rust
https://github.com/hugojosefson/rust-fire
fire graphics learning-by-doing rust rust-lang sdl2
Last synced: 9 months ago
JSON representation
Fire in Rust
- Host: GitHub
- URL: https://github.com/hugojosefson/rust-fire
- Owner: hugojosefson
- Created: 2019-03-22T17:20:14.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-05-09T22:39:47.000Z (about 3 years ago)
- Last Synced: 2025-03-26T15:55:18.024Z (over 1 year ago)
- Topics: fire, graphics, learning-by-doing, rust, rust-lang, sdl2
- Language: Rust
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rust-fire

Reviving an old childhood memory, where I implemented a fire in
`mov ax,13h; int 10h` graphics mode (320x200 at 8 bit indexed colors).
A fun way to attempt learning Rust!
## Prerequisites
### Cargo and Rust
### Libraries
- sdl2
- sdl2-gfx
On Ubuntu, you can install the libraries with:
```bash
sudo apt install -y libsdl2-dev libsdl2-gfx-dev
```
On Fedora, install the libraries with:
```bash
sudo dnf install -y SDL2-devel SDL2_gfx-devel
```
## Usage
```bash
cargo run --release
```
You may resize the window.
Keys:
- `Alt-Enter`: Toggle maximized window
- `Esc`: Exit