Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sile/pagurus
🐚+🦞 Ultra-portable Rust game engine suited for offline 2D games powered by WebAssembly
https://github.com/sile/pagurus
android browser game-engine rust sdl2 tui webassembly
Last synced: 6 days ago
JSON representation
🐚+🦞 Ultra-portable Rust game engine suited for offline 2D games powered by WebAssembly
- Host: GitHub
- URL: https://github.com/sile/pagurus
- Owner: sile
- License: apache-2.0
- Created: 2022-07-03T13:36:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T06:11:56.000Z (8 months ago)
- Last Synced: 2024-10-06T02:17:50.739Z (about 1 month ago)
- Topics: android, browser, game-engine, rust, sdl2, tui, webassembly
- Language: Rust
- Homepage:
- Size: 507 KB
- Stars: 28
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
pagurus
========[![pagurus](https://img.shields.io/crates/v/pagurus.svg)](https://crates.io/crates/pagurus)
[![Documentation](https://docs.rs/pagurus/badge.svg)](https://docs.rs/pagurus)
[![Actions Status](https://github.com/sile/pagurus/workflows/CI/badge.svg)](https://github.com/sile/pagurus/actions)
![License](https://img.shields.io/crates/l/pagurus)🐚+🦞 Ultra-portable Rust game engine suited for offline 2D games powered by WebAssembly.
Examples
--------### Snake
Traditional snake game: [examples/snake_game](examples/snake_game)
#### How to build and run locally
Build the game:
```console
$ 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:
```console
$ cargo run --release -p snake_game --features tui
```Run the game on a Web Browser:
```console
$ 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
-------------------------- [sile/pixcil](https://github.com/sile/pixcil): Pixel Art Editor
- [sile/ffmml](https://github.com/sile/ffmml): An MML(Music Macro Language) Implementation
- [sile/mineplacer](https://github.com/sile/mineplacer): A variant of Minesweeper game