├── .gitignore ├── heroku.yml ├── resources ├── frontend │ ├── kick.png │ ├── plop.wav │ ├── end-turn.wav │ ├── favicon.png │ ├── vanilla-js.png │ ├── your-turn.wav │ ├── Montserrat-Bold.otf │ ├── Montserrat-Italic.otf │ ├── Montserrat-Medium.otf │ ├── Montserrat-Regular.otf │ ├── user.svg │ ├── error.css │ ├── no-sound.svg │ ├── lobby_create.css │ ├── sound.svg │ ├── rubber.svg │ ├── fill.svg │ ├── base.css │ ├── floodfill.js │ └── lobby.css └── words │ ├── nl │ └── fr ├── app.json ├── Makefile ├── templates ├── error.html ├── footer.html └── lobby_create.html ├── Dockerfile ├── communication ├── http.go ├── init.go ├── ws.go ├── publiccreate.go ├── lobbycreateparse_test.go ├── lobby.go └── create.go ├── .github └── workflows │ └── scribble-rs.yml ├── main.go ├── go.mod ├── game ├── lobby_test.go ├── rocketchat.go ├── words.go ├── words_test.go ├── data.go └── lobby.go ├── tools └── translate.sh ├── LICENSE ├── README.md └── go.sum /.gitignore: -------------------------------------------------------------------------------- 1 | pkged.go 2 | scribblers 3 | .vscode/ 4 | *-packr.go -------------------------------------------------------------------------------- /heroku.yml: -------------------------------------------------------------------------------- 1 | build: 2 | docker: 3 | web: Dockerfile 4 | -------------------------------------------------------------------------------- /resources/frontend/kick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/kick.png -------------------------------------------------------------------------------- /resources/frontend/plop.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/plop.wav -------------------------------------------------------------------------------- /resources/frontend/end-turn.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/end-turn.wav -------------------------------------------------------------------------------- /resources/frontend/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/favicon.png -------------------------------------------------------------------------------- /resources/frontend/vanilla-js.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/vanilla-js.png -------------------------------------------------------------------------------- /resources/frontend/your-turn.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/your-turn.wav -------------------------------------------------------------------------------- /resources/frontend/Montserrat-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/Montserrat-Bold.otf -------------------------------------------------------------------------------- /resources/frontend/Montserrat-Italic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/Montserrat-Italic.otf -------------------------------------------------------------------------------- /resources/frontend/Montserrat-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/Montserrat-Medium.otf -------------------------------------------------------------------------------- /resources/frontend/Montserrat-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shubham8550/scribble.rs/master/resources/frontend/Montserrat-Regular.otf -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Scribble.rs", 3 | "description": "A multiplayer drawing game for the browser", 4 | "repository": "https://github.com/scribble-rs/scribble.rs", 5 | "keywords": [ 6 | "game", 7 | "multiplayer", 8 | "ephemeral" 9 | ], 10 | "stack": "container" 11 | } -------------------------------------------------------------------------------- /resources/frontend/user.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/frontend/error.css: -------------------------------------------------------------------------------- 1 | .error-title, .error-message { 2 | display: block; 3 | } 4 | 5 | .error-title { 6 | font-size: 13rem; 7 | } 8 | 9 | .error-message { 10 | font-size: 4rem; 11 | margin: 2vw; 12 | } 13 | 14 | .go-back, .go-back:link, .go-back:visited { 15 | display: block; 16 | font-size: 3rem; 17 | color: rgb(248, 148, 164); 18 | text-align: center; 19 | } 20 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .DEFAULT: help 2 | .SILENT: 3 | SHELL=bash 4 | 5 | help: ## Display usage 6 | printf "\033[96mScribble.rs\033[0m\n\n" 7 | grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' 8 | 9 | is-go-installed: 10 | which go >/dev/null 2>&1 || { echo >&2 "'go' is required.\nPlease install it."; exit 1; } 11 | 12 | build: is-go-installed ## Build binary file 13 | go run github.com/gobuffalo/packr/v2/packr2 14 | CGO_ENABLED=0 go build -ldflags="-w -s" -o scribblers . 15 | printf "\033[32mBuild done!\033[0m\n" 16 | -------------------------------------------------------------------------------- /templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |