Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP is a network based multiplayer space shooter game.
branch: master
Failed to load latest commit information.
src Initial commit.
.gitignore Initial commit.
LICENSE Initial commit.
Makefile Initial commit. Adding instructions for running shooter-server and shooter-html5 with…
shooter.png Adding screenshot.

shooter is a network based multiplayer space shooter game.


The shooter-server is a Go program that runs a universe for space ships that can shoot and destroy each other.

It also accepts incoming websockets connections, assigns each connection its own ship, and lets the user control her ship.


The shooter-html5 repo is a HTML5 client that uses canvas, javascript and Websockets to render the game with instructions that arrive from the server.

How to run the server with vagrant?

cd ~/projects
git clone
vagrant up
# Go grab some coffee.

Open in your browser!

See shooter-vagrant.

How to run the server manually?

cd ~/projects
git clone
cd shooter-server
cd src
go get -d
MONGO_HOST="" ./shooter-server -listen

Now you have a running shooter-server that creates a virtual universe for space ships, see shooter-html5 for a client to interact with this universe.

Note that, in order to connect to the shooter-server, you may change a variable within the shooter-html5/src/js/main.js file. For instance, this line

var WEBSOCKET_SERVICE = 'ws://';

will instruct the client to connect to the shooter-server that is listening on

Current state

  • This a work in progress.
  • Code is still messy and undocumented.
  • I'd like to create a native client for mobile too.
  • I'd like to experiment with UDP messages instead of TCP websockets.
  • Server has been tested with go1.2 under Linux and OSX.


Copyright 2014 José Carlos Nieto

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.