-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* snakegame: refactor GlobalKeyWatcher to use a key_map each key maps to an event, dispatched on the frontend instead of a single key handler. this allows the keys and mapping to be defined in one place rather than in two places, and gives flexibility about how events are dispatched (whether they include the key or other args). * snakegame: refactor grid and color handling reduce event delta payload from 4k to 1k for better performance
- Loading branch information
Showing
1 changed file
with
73 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters