mchesser / snake-rs

A simple Rust SDL2 snake game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Rust

A simple game to test some graphics stuff with Rust.

Screenshot

Compiling

Simple

  1. Install SDL 2.0.1 dev
  2. Compile and install rust-sdl2
  3. In /src/ run rustc -O main.rs

Windows

The easiest way to compile on windows is to do the following:

  1. Install SDL2-devel-2.0.1-mingw
  2. Download rust-sdl2
  3. Navigate to /rust-sdl2-master/src/sdl2/
  4. Then run rustc -O --rlib lib.rs
  5. Copy libsdl-*.rlib to /snake-game/src
  6. Compile using rustc -O -L . main.rs

Plans

  • Basic network multiplayer (waiting on #11165 )
  • Swap from SFML to SDL2
  • Basic Menu

About

A simple Rust SDL2 snake game

License:MIT License


Languages

Language:Rust 100.0%