Skip to content

Latest commit

 

History

History
101 lines (80 loc) · 2.29 KB

README.md

File metadata and controls

101 lines (80 loc) · 2.29 KB

About


🧝Roguelike Multiplayer Game🧙‍♂️ written on Rust and C++

In the game you can:

  1. fight monsters
  2. team up and play together with your friends
  3. pass an infinite number of levels
  4. use a huge number of weapons and spells: swords, health potions, fireballs and more
  5. save the game and load saving
  6. see players rating

The game starts with entering name: Entering Name

Single Game: Single Game

Multiplayer: Multiplayer Game * Blue entity is a player from another computer

Main menu: Main menu

Rating: Rating

Installing


For players

  • Make sure you have the rust compiler installed
cargo --version

if you do not have a compiler, download it

* If it does not work after this step, try this:

export PATH="~/.cargo/bin"
export PATH="~/.cargo/env"
  • Enter:
cargo run

from the directory where the Cargo.toml file is


For developers

  • Make sure you have the rust compiler installed
rustc --version

if you do not have a compiler, download it

To check enter:

cmake --version
  • From the src/ directory:
cd server/server
mkdir build
cd build
cmake ..
make
./server
  • Change url address in main.rs on "ws://127.0.0.1:6881":
// initialize game state
    let mut gs = State{
        ecs : World::new(),
        game_client : ClientHandler::new(Url::parse("ws://127.0.0.1:6881").expect("Address error")),
        player_name : String::new(),
        enemies : Vec::<String>::new(),
    };
  • Enter:
cargo run

from the directory where the Cargo.toml file is

Now experiment with client and server! 🧑‍🔬

Licence


Licensed under: