markcornwell / spacewar

Javascript implementation of 1962 game Spacewar! originally developed for the PDP-1
MIT License
0 stars 0 forks source link

Clean up client/server coms using async/await to manage promises #40

Open markcornwell opened 4 years ago

markcornwell commented 4 years ago

The node.js client/server comms using setInterval are wasteful. No need to keep sending state of controls when controls are not changing. Can eliminate this by being smarter with ansych.

markcornwell commented 4 years ago

Calling this an enhancement. The code works as is, but this change could make it more maintainable and simpler to understand.