3 ms·
Whoa. I'm the author of this 2048-game.el (the one in MELPA; there are many implementations), located at https://bitbucket.org/zck/2048.el https://bitbucket.org
by zck 12y ago
Whoa. I'm the author of this 2048-game.el (the one in MELPA; there are many implementations), located at https://bitbucket.org/zck/2048.el https://bitbucket.org/zck/2048.el. The coloring is definitely something I've wanted to add to the game, but was holding off on for the moment.
Why? Scoring. 2048 has a score that's also a number. So if you colorize only based on keywords, you'll color the score too. And that's bad.
Edit: I'd happily take patches, suggestions, or pointers to documentation on how to do the colorization properly. Email in profile.
- astine 12y agoJust use `font-lock-unfontify-region' https://www.gnu.org/software/emacs/manual/html_node/elisp/Other-Font-Lock-Variables.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Ot...
- sachac 12y agoThanks for working on this! I didn't send a patch because I have terrible colour sense and haven't bothered checking for light backgrounds. I figured you knew about defface and already had plans for that at some point. I haven't played with faces much myself, so it was more of an excuse to share what I was learning with people. =) Looking forward to the upstream-colorized version!