Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dom96/snake
A little snake game in Nim
https://github.com/dom96/snake
2d canvas javascript multiplayer
Last synced: about 2 months ago
JSON representation
A little snake game in Nim
- Host: GitHub
- URL: https://github.com/dom96/snake
- Owner: dom96
- License: mit
- Created: 2017-03-19T20:15:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-27T19:56:21.000Z (almost 6 years ago)
- Last Synced: 2024-10-25T09:21:05.591Z (2 months ago)
- Topics: 2d, canvas, javascript, multiplayer
- Language: Nim
- Homepage: http://picheta.me/snake/
- Size: 120 KB
- Stars: 209
- Watchers: 5
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Snake
A Snake game written in Nim targetting JavaScript in a web browser:
http://picheta.me/snake/.## Systemd setup
Create a ``snake.service`` file in ``/lib/systemd/system/`` (or any of the other locations described [here](https://askubuntu.com/questions/876733/where-are-the-systemd-units-services-located-in-ubuntu)), put this in it:
```systemd
[Unit]
Description=snake
After=network.target httpd.service
Wants=network-online.target[Service]
Environment=IPSTACK_KEY=
Type=simple
WorkingDirectory=/home/user/dev/snake/
ExecStart=/usr/bin/stdbuf -oL /home/user/dev/snake/snake/server
Restart=always
RestartSec=2User=dom
[Install]
WantedBy=multi-user.target
```