No description
Find a file
2021-03-19 12:49:27 -04:00
assets squashme 2021-01-27 11:16:09 -06:00
docker modules: Fix server match module path 2021-02-01 19:41:07 -06:00
src progress on getting nakama_sdk integrated. 2021-03-19 12:49:27 -04:00
web Nakama credentials from environment variables 2021-02-03 21:05:42 -06:00
.gitattributes First try on bullets hit detection 2021-01-07 13:01:33 -06:00
.gitignore progress on getting nakama_sdk integrated. 2021-03-19 12:49:27 -04:00
build.rs Nakama credentials from environment variables 2021-02-03 21:05:42 -06:00
Cargo.lock progress on getting nakama_sdk integrated. 2021-03-19 12:49:27 -04:00
Cargo.toml progress on getting nakama_sdk integrated. 2021-03-19 12:49:27 -04:00
match.lua modules: Fix server match module path 2021-02-01 19:41:07 -06:00
match_rpc.lua modules: Fix server match module path 2021-02-01 19:41:07 -06:00
README.md Update README.md 2021-02-03 11:21:15 -06:00
test.sh progress on getting nakama_sdk integrated. 2021-03-19 12:49:27 -04:00

"Fish Game" for Macroquad

fishgame

"Fish Game" for Macroquad is an online multiplayer game, created as a demostration of Nakama, an open-source scalable game server, using Rust programming language and the Macroquad game engine.

Playing the game online

The latest web build for online play is available here.

Playing the game from source

Depedencies:

The main depdency: the rust compiler.
To get it, follow rustup.rs instructions.

On web, windows and mac os no other external depdendecies are required. On linux followed libs may be required:

apt install libx11-dev libxi-dev libgl1-mesa-dev

Running the game:

Native PC build:

note that nakama networking is not yet supported on PC and PC build is intenteded only for single player dev builds

cargo run --release

from this repo root.

Building HTML5 build:

cargo build --target wasm32-unknown-unknown --release
cp target/wasm32-unknown-unknown/release/fishgame.wasm web/fishgame.wasm
wasm-strip web/fishgame.wasm

To serve the web build some web server will be required. One of the options: devserver

cargo install devserver
cd web
devserver .

And than open http://localhost:8080