Multiplayer Cosmic Drift
- Arrow Keys turn
- Forward applies thrust
- Spacebar shoots
- That's it! There's no braking in space!
Stay alive as long as possible, and destroy asteroids to rack up your score.
- The object is to outlast your opponent.
- If your opponent dies before you, you have 10 seconds to score bonus points.
- Your victory (or defeat) will be measured by score differential.
Good Stuff/ Technical Features
- Trig functions to determine rotation of ships and asteroids.
- Finite State Machine handles game state transitions.
- Predictive analysis used to minimize lag/number of packets transmitted over websockets.
- Server-side data structures allow multiple concurrent multiplayer games.
- HTML5 Canvas
- Websockets (socket.io library)
This app is hosted on Heroku, using their websockets add-on