Skip to content

coredump-ch/rpsrtsrs

Repository files navigation

Travis Build Status AppVeyor Build Status

rpsrtsrs

Rock-Paper-Scissors-Real-Time-Strategy game written in Rust 😉

The game is to be played by at least 3 players. Like in Rock-Paper-Scissors, each player has an advantage against one of the players and a disadvantage against the other one (A > B > C > A).

The user therefore has to decide whether to defend his units against the stronger user for survival, or whether to attack the weaker user for fame and glory.

Two units (represented as triangles) can be combined to a building (a square). In that form, they cannot attack anymore, but have a defense bonus.

screenshot

Development Docs

Prequisites

  • SDL 2 (libsdl2-dev on Ubuntu)
  • Latest Rust stable version

Building

Linux

Install SDL 2

$ # ArchLinux
$ sudo pacman -S sdl2
$ # Ubuntu
$ sudo apt install libsdl2-dev

Just run

$ cargo build

To build with the default configuration. If you want to change the window backend use any of the following:

$ cargo build --no-default-features --features include_glutin
$ cargo build --no-default-features --features include_glfw
$ cargo build --no-default-features --features include_sdl2

Windows

On windows currently the glutin backend is the easiest to get started with:

$ cargo build --no-default-features --features include_glutin

Running

If everything built fine you can use cargo to run the client or the server:

$ cargo run --bin client
$ cargo run --bin server

Ideas

See ideas.

Design

See docs/design.

About

Rock-Paper-Scissors-Real-Time-Strategy game written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages