blob: cdb99083054c94c212a06a5e0be872d49e1e353b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# ![SSHTron](https://cdn.rawgit.com/zachlatta/sshtron/master/logo.svg)
SSHTron is a multiplayer lightcycle game that runs through SSH. Just run the
command below and you'll be playing in seconds:
$ ssh sshtron.zachlatta.com
_Controls: WASD or vim keybindings to move (**do not use your arrow keys**).
Escape or Ctrl+C to exit._
![Demo](static/img/gameplay.gif)
**Code quality disclaimer:** _SSHTron was built in ~20 hours at
[BrickHack 2](https://brickhack.io/). Here be dragons._
## Alternate Servers
### Europe (Frankfurt)
$ ssh eu.sshtron.zachlatta.com
_Kindly provided by [@klausenbusk](https://github.com/klausenbusk)._
### Providing a Server
Want to provide a server for SSHTron? Open up an issue saying so and we'll make
it happen :-).
## Running Your Own Copy
Clone the project and `cd` into its directory. These instructions assume that
you have your `GOPATH` setup correctly.
```sh
# Create an RSA public/private keypair in the current directory for the server
# to use. Don't give it a passphrase.
$ ssh-keygen -t rsa -f id_rsa
# Download dependencies and compile the project
$ go get && go build
# Run it! You can set PORT to customize the HTTP port it serves on and SSH_PORT
# to customize the SSH port it serves on.
$ ./sshtron
```
## License
SSHTron is licensed under the MIT License. See the full license text in
[`LICENSE`](LICENSE).
|