Skip to content

Redfox/arena-gungeon

Repository files navigation

Arena Gungeon

Open Source PVP arena 2d game cross-platform written in Rust.

TODO Features

  • Single Player

    • Choose class
    • Spawn enemies
    • Add Levels
  • Multi Player

    • Connect to Server
    • Choose class
    • Spawn other Players

Commands

# run
cargo run

# build
cargo build

# build release
cargo build --release

Dependecies

Arena Gungeon is made with Macroquad, to run need install some libs

# Linux system dependencies
apt install libx11-dev libxi-dev libgl1-mesa-dev libasound2-dev

Building to WebAssembly

Add build target for webassembly

rustup target add wasm32-unknown-unknown

There is a script in utils/wasm/build.sh.

./build.sh

This script compiles the program with cargo, takes the generated arena_gungeon.wasm file, and the files in utils/wasm/ and moves them into a new folder called static/. To run it in the browser I'm, using basic-http-server.

cargo install basic-http-server

start the server by using the correct path

basic-http-server . # starts server based on current directory
basic-http-server static # start server in the folder /static

Credits

  • Tileset created by 0x72