Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vanflux/google-snake-multiplayer-mod
A mod for google snake game to add multiplayer support.
https://github.com/vanflux/google-snake-multiplayer-mod
game google multiplayer snake
Last synced: about 1 month ago
JSON representation
A mod for google snake game to add multiplayer support.
- Host: GitHub
- URL: https://github.com/vanflux/google-snake-multiplayer-mod
- Owner: vanflux
- Created: 2022-08-31T17:59:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-12T02:08:01.000Z (over 1 year ago)
- Last Synced: 2023-05-12T03:22:25.636Z (over 1 year ago)
- Topics: game, google, multiplayer, snake
- Language: TypeScript
- Homepage:
- Size: 2.44 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GSM Mod (no longer working 2023)
Google Snake Multiplayer Mod
A mod that makes google snake game multiplayer!
AD time: This project uses vf-ext to create browser extensions.
If you want to create extensions like this, take a look.# Usage, Play the game
- Download the `gsm-bookmark.html` file from the [latest release](https://github.com/vanflux/google-snake-multiplayer-mod/releases/latest)
- Open `chrome://bookmarks/` on google chrome (sorry, firefox is not supported now)
- At the top on the right, click on the three-dots icon > `Import bookmarks` > select the downloaded `gsm-bookmark.html` file
- Open snake game
- At the top on the right, click on the three-dots icon > Bookmarks > GSM Mod
- Enjoy# Demo
![Demo gif](docs/gifs/demo.gif)
# Host my own server
- Install Node 16
- Clone repository: `git clone [email protected]:vanflux/google-snake-multiplayer-mod.git`
- Go to repository folder: `cd google-snake-multiplayer-mod`
- Install dependencies: `npm i`
- Run server: `npm run server`# Development
- Install Node 16
- Clone repository
- Install dependencies: `npm i`
- Run browser code as an auto reload extension: `npm start `
- Load the extension located on `build/dev` on your browser
- Run server with `npm run server`# Network
The networking has been optimized since v0.1.2, we are not serializing the entire game instance, we are sending only the needed data, thanks to the linker by making the class field names more friendly.
- 2 Players playing an hour:
- Each player uploads 200 B/packet * 5 packets/s = 1kB/s
- Total download and upload(SEPARATELY) = (200 * 5 * 2 * 60 * 60) / 1000000 = 7.2 MB/hour# Errors
I can't connect to my own server(IP address is not 127.0.0.1 or localhost):
You will need to do the following to disable secure content:
![Insecure content step 1](docs/images/insecure-content-1.png)
![Insecure content step 2](docs/images/insecure-content-2.png)