• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

snake

Snake game for Github's Atom text editor
maxwells
0.2.0 3,067
5
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Snake atom package

Snake game for Github's Atom text editor. Just a weekend project - no real plans to make it awesome.

Installing

Use the Atom package manager, which can be found in the Settings view or run apm install vim-mode from the command line.

Configuration

Supports the following configuration options (in your global Config file):

'snake':
 
  # width of the game board 
  # -> defaults to 20 
  'width': 40
 
  # height of the game board 
  # -> defaults to 20 
  'height': 10
 
  # interval in ms between snake movements 
  # -> defaults to 200 
  'startingInterval': 150
 
  # interval multiplier upon eating food 
  # -> higher means slower speed increase 
  # -> defaults to 0.95 
  'intervalMultiplier': 0.93
 
  # number of food pieces on the board at any point in time. 
  # -> defaults to 1 
  'numFood': 2

Running it

Default keybindings are:

  • 'cmd-alt-shift-s': 'snake:toggle' - to start/stop
  • 'cmd-alt-shift-r': 'snake:reset' - to reset after game over

In action

Screenshot

Issues

Submit any issues here

To dos

  • Increase code quality/maintainability
  • Write specs

Version History

0.1.0 - first working version

License

MIT

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by