SSH Tron Server (See https://github.com/jpillora/ssh-tron for more info)
1.2K
Multiplayer Tron (Light Cycles) over SSH, written in Go - ported from a telnet version I'd previously written in Node many years ago.

ssh tron.jpillora.com
:warning: This server is in Australia
#run on the host's port 22
docker run --name=tron -d -p 22:2200 jpillora/ssh-tron
#run on the host's port 22 and save player scores
touch /path/to/tron.db
docker run --name=tron -d -v /path/to/tron.db:/tron.db -p 22:2200 jpillora/ssh-tron --db-location /tron.db
See the latest release or install it now with curl i.jpillora.com/ssh-tron! | bash
$ go get -v github.com/jpillora/ssh-tron
Server:
$ tron --help
Usage: ssh-tron [options]
Options:
--port, -p Port to listen for TCP connections on (default 2200)
--width, -w Width of the game world (default 60)
--height, -h Height of the game world (default 60)
--max-players, -m Maximum number of simultaneous players (default 6)
--game-speed, -g Game tick interval, basically controls how fast each
player moves (default 40ms)
--respawn-delay, -r The time a player must wait before being able to
respawn (default 2s)
--db-location, -d Location of tron.db, stores game score and config (default /tmp/tron.db)
--db-reset Reset all scores in the database
--help
--version, -v
Author:
jpillora
Version:
3.0.1
Read more:
https://github.com/jpillora/ssh-tron
$ tron
tron: game started (#6 player slots)
server: up - join at
server: ○ ssh 127.0.0.1 -p 2200
server: ○ ssh 172.27.1.78 -p 2200
server: ○ ssh 192.168.136.1 -p 2200
server: ○ ssh 172.16.4.1 -p 2200
server: fingerprint - 5e:6b:8f:f5:39:af:57:84:3c:5a:a5:32:d7:41:04:b8
Players:
$ ssh 172.27.1.78 -p 2200
Press Enter to spawn
Create a /usr/lib/systemd/system/tron.service file:
[Unit]
Description=ssh-tron
[Service]
ExecStart=/path/to/my/ssh-tron -p 22 --join-address tron.company
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
Then:
systemctl enable tron
systemctl start tron
SPACE to invert colourskills)Copyright © 2014 <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Content type
Image
Digest
Size
6 MB
Last updated
over 10 years ago
docker pull jpillora/ssh-tron