#offline #game-engine #2d-game #wasm #powered #suited #ultra-portable

pagurus

Ultra-portable game engine suited for offline 2D games powered by WebAssembly

16 releases

0.7.4 Dec 10, 2023
0.7.3 Aug 18, 2023
0.6.4 Jun 4, 2023
0.6.3 Mar 11, 2023
0.1.1 Jul 18, 2022

#201 in Game dev

Download history 1/week @ 2023-12-18 11/week @ 2023-12-25 40/week @ 2024-01-08 121/week @ 2024-01-15 74/week @ 2024-01-22 14/week @ 2024-01-29 14/week @ 2024-02-05 15/week @ 2024-02-12 121/week @ 2024-02-19 125/week @ 2024-02-26 105/week @ 2024-03-04 37/week @ 2024-03-11 56/week @ 2024-03-18 67/week @ 2024-04-01

164 downloads per month
Used in 9 crates

MIT/Apache

69KB
2K SLoC

Rust 1.5K SLoC // 0.0% comments TypeScript 515 SLoC

pagurus

pagurus Documentation Actions Status License

🐚+🦞 Ultra-portable Rust game engine suited for offline 2D games powered by WebAssembly.

Examples

Snake

Traditional snake game: examples/snake_game

How to build and run locally

Build the game:

$ cargo build --release -p snake_game --target wasm32-unknown-unknown
$ ls target/wasm32-unknown-unknown/release/snake_game.wasm

Run the game on the terminal:

$ cargo run --release -p snake_game --features tui

Run the game on a Web Browser:

$ cd web/
$ npm install
$ npm run build

// A HTTP server listening on 8000 port will start
$ cd ../
$ python3 -m http.server
$ open http://localhost:8000/examples/snake_game/web/

Projects that use Pagurus

Dependencies

~10–435KB