An open API service indexing awesome lists of open source software.

https://github.com/okayama-daiki/snake-game

Online PvP snake game
https://github.com/okayama-daiki/snake-game

rust snake-game webassembly websocket

Last synced: over 1 year ago
JSON representation

Online PvP snake game

Awesome Lists containing this project

README

          







Online PvP Snake Game :snake:



Open in Visual Studio Code


CI/CD









## Demo

You can have fun from [this link](https://okayama-daiki.github.io/snake-game/).

## Screenshots

![Title](/screenshots/title.webp)
![Playing](/screenshots/playing.webp)

## Prerequisite

Install wasm-pack for Rust builds to webassebmly.

```bash
cargo install wasm-pack
```

## Installation

```bash
git clone https://github.com/okayama-daiki/snake-game
```

## Setup

```bash
cd snake-game
npm install && npm run build
```

## Run

```bash
npm run start
```

## Tech Stack

### Frontend

- [Vite](https://vitejs.dev) - Build tool that aims to provide a faster and leaner development experience for modern web projects
- [React](https://react.dev) - The library for web and native user interfaces
- [wasm-pack](https://github.com/rustwasm/wasm-pack) - A one-stop shop for building and working with rust- generated WebAssembly
- [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) - Facilitating high-level interactions between Wasm modules and JavaScript

### Backend

- [Actix Web](https://actix.rs) - A powerful, pragmatic, and extremely fast web framework for Rust

## Credit and references

- [slither.io](https://slither.io/) - A smash hit multiplayer online video game