Basic multiplayer 2D shooter game using websockets.
This is a bare-bones games that only supports player movement. It is designed to be easily understood.
Can be deployed directly on Heroku.
See explanation.md for an explanation of how the game works.
All of the serverside code is in one file (main.go
).
To be done in next version:
- Breaking up
main.go
into separate packages - Clientside interpolation using ping + tick numbers + server timestamps
- Show players' orientation
- Shooting bullets that can collide with players
- Killing / dying / health
- Sending a different subset of game state to each player
To be done in next next version:
- Add obstacles
- Add raycasting so players can't see behind obstacles