
Massive multiplayer galactic game written in Golang. It has been inspired by the old arcade space shooter called Asteroids.
Destroy moving objects and don’t get killed by other players and asteroids. You’ve got two resources – health points and energy points. You lose your health with every hit you get and every contact with the asteroid. Energy points are consumed when shooting and using a boost drive. The more objects you kill, the bigger your health bar grows. Good luck
https://medium.com/u2i-blogs/we-made-a-multiplayer-browser-game-in-go-for-fun-242a5990ce29/
$GOPATH/src directorycd to that directorygo getgo build && go install$GOPATH/bin/superstellar to run a server instancecd webrootnpm installnpm run devYou can run a stress test util that spawns any number of clients which connect to the server and send ramdomly correct user input messages.
cd superstellar_utilsgo build && go install$GOPATH/bin/superstellar_utils 127.0.0.1 100 50ms for spawning 100 clients, with 50 ms interval.It's possible to dump various information from the running server, e.g. stacktraces of all goroutines which might be useful in case of a deadlock.
__DEBUG__ flagIf you run DEBUG=true npm run dev you will see additional debugging informations. You can add your own debugging info in code. Just detect that we're in the debug mode:
if (__DEBUG__) {
console.log("I'm in debug mode!");
}
Run ./generateProto.sh