【文件属性】:
文件名称:hyperspace:实时多人太空射击游戏
文件大小:38KB
文件格式:ZIP
更新时间:2021-05-13 06:26:25
JavaScript
超空间
实时多人太空射击游戏。
发展
运行make在上运行本地副本。
运行./watch运行本地副本,该本地副本在更改服务器文件时自动重新启动(需要fswatch- brew install fswatch )
安装
添加到Nginx配置
添加到http块的底部:
include /home/hyperspace/hyperspace/etc/nginx.conf;
添加系统服务:
sudo ln -s /home/hyperspace/hyperspace/etc/hyperspace.service /etc/systemd/system/
sudo systemctl start hyperspace
添加重新启动服务器的功能:
sudo EDITOR=emacs visudo
hyperspace ALL=(ALL) NOPASSWD: /home/hyperspace/h
【文件预览】:
hyperspace-master
----.gitignore(297B)
----Makefile(390B)
----server()
--------game_history.go(2KB)
--------color.go(212B)
--------asteroid.go(5KB)
--------ai.go(171B)
--------ship.go(2KB)
--------game.go(3KB)
--------events.go(3KB)
--------game_state.go(4KB)
--------conn.go(3KB)
--------main.go(631B)
--------projectile.go(1KB)
--------client.go(4KB)
--------maths.go(2KB)
--------lzw.go(2KB)
--------messages.go(969B)
----etc()
--------hyperspace.service(285B)
--------nginx.conf(848B)
----bin()
--------start(48B)
--------stop(47B)
--------restart(49B)
----LICENSE(1KB)
----public()
--------js()
--------style.css(747B)
--------index.html(2KB)
--------favicon.ico(318B)
----README.md(953B)
----deploy(145B)
----TODO.org(3KB)
----tmp()
--------.gitignore(6B)
----watch(24B)