Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olahol/pocketplace
:fireworks: Draw pixels on a canvas with friends.
https://github.com/olahol/pocketplace
golang multiplayer place websocket
Last synced: 2 months ago
JSON representation
:fireworks: Draw pixels on a canvas with friends.
- Host: GitHub
- URL: https://github.com/olahol/pocketplace
- Owner: olahol
- License: mit
- Created: 2017-04-04T00:59:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-15T02:24:49.000Z (over 7 years ago)
- Last Synced: 2024-06-20T12:43:24.604Z (8 months ago)
- Topics: golang, multiplayer, place, websocket
- Language: Go
- Size: 83 KB
- Stars: 79
- Watchers: 5
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pocketplace
> :fireworks: Draw pixels on a canvas with friends.
![Demo](https://cdn.rawgit.com/olahol/pocketplace/master/demo.gif "Demo")
* [x] Completely in-memory, no need for a database.
* [x] Statically linked, everything you need in one binary, including the frontend.# Install
```bash
$ go get github.com/olahol/pocketplace
```# Example
```bash
$ pocketplace -port 8080 -size 200 -cooldown 0
Canvas pixel size 200x200
Drawing cooldown 0s
Listening on port 8080
```# Development
To build the frontend into the binary I use [`file2const`](https://github.com/bouk/file2const)
and `go:generate` directives. So if you are modifying the frontend don't forget to:```bash
$ go generate
$ go build
```to build the binary correctly with the updated frontend.