Skip to content

hugojosefson/rust-fire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-fire

fire-1 0 1

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

https://www.rust-lang.org/tools/install

Libraries

  • sdl2
  • sdl2-gfx

On Ubuntu, you can install the libraries with:

sudo apt install -y libsdl2-dev libsdl2-gfx-dev

On Fedora, install the libraries with:

sudo dnf install -y SDL2-devel SDL2_gfx-devel

Usage

cargo run --release

You may resize the window.

Keys:

  • Alt-Enter: Toggle maximized window
  • Esc: Exit