Playing the interesting 2048 game right inside atom.
You can install
atom-2048 either use the Atom package manager, which can be found in the Settings view, or run
apm install atom-2048 from the command line.
After installation, you can find the toggle in menu
Packages -> atom-2048, or you can simple press
ctrl-alt-a to start and stop the game.
Once the view is loaded as demonstrated in the gif animation above, you can play the game simply as you are in a browser. You'll see your high scores, and you can reset the game by hit
spacebar. Go wild!
NOTE: all the directions arrows can cause the cursor move around the editor view, so they are disabled in
atom-2048, you can use direction keys,
WASD keys or
vim keys to move the tiles!
We all know what
boss-is-coming mode is! :P
While playing the game, you simply hit
esc, and everything will be gone! But don't worry, your progress is not destoryed. Wherever you feel safe, simple press
ctrl-alt-c, and everything will show up again. A little heads up, if you accidentally hit
ctrl-alt-a, your progress will not be preserved, so, use carefully!
Inspired by activate-power-mode, you can enable power mode in package settings. Check out the demo gif:
NOTE: to get achievements, you have to install achievements package first!
boss-is-comingmode as proposed by @christhekeele in issue #1
achievementsystem using achievements package developed by @rgbkrk. Reference issue #2
boss-is-comingmode as discussed in issue #3
Power Modeinspired by activate-power-mode, you can enable power mode or set power level in package settings
With new atom, I can't use
document.addEventListener, but using
atom.views.getView(atom.workspace).addEventListener "keydown" will not prevent keydown event to atom workspace. So, when you play the game with editor view open, you can see the cursor is moving when you press direction keys.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.