2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: Games layer
|
2015-11-08 18:04:44 +00:00
|
|
|
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../../css/readtheorg.css" />
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
[[file:img/games.png]]
|
|
|
|
|
2015-10-30 11:20:58 +00:00
|
|
|
* Table of Contents :TOC_4_org:noexport:
|
|
|
|
- [[Description][Description]]
|
|
|
|
- [[Install][Install]]
|
|
|
|
- [[Key bindings][Key bindings]]
|
|
|
|
- [[2048][2048]]
|
|
|
|
- [[Pacmacs][Pacmacs]]
|
|
|
|
- [[Tetris][Tetris]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer allows you to play evilified games in spacemacs.
|
|
|
|
|
2015-06-12 01:23:07 +00:00
|
|
|
The games available now are:
|
2015-06-10 16:44:30 +00:00
|
|
|
- 2048-game
|
2015-10-13 17:54:12 +00:00
|
|
|
- Pacmacs (Pacman for Emacs)
|
2015-06-10 16:44:30 +00:00
|
|
|
- Tetris
|
|
|
|
|
|
|
|
* Install
|
|
|
|
To use this contribution add it to your =~/.spacemacs=
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(setq-default dotspacemacs-configuration-layers '(games))
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Key bindings
|
|
|
|
To run a game:
|
|
|
|
|
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+----------------------------------------|
|
|
|
|
| ~SPC a G~ | Open an =helm= buffer to select a game |
|
|
|
|
|
|
|
|
Possible helm actions:
|
|
|
|
- run (default)
|
|
|
|
- quit
|
|
|
|
- reset
|
|
|
|
|
|
|
|
** 2048
|
|
|
|
|
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+----------------------|
|
|
|
|
| ~h~ | Move the tiles left |
|
|
|
|
| ~j~ | Move the tiles down |
|
|
|
|
| ~k~ | Move the tiles up |
|
|
|
|
| ~l~ | Move the tiles right |
|
|
|
|
|
2015-10-13 17:54:12 +00:00
|
|
|
** Pacmacs
|
|
|
|
|
2015-10-30 11:20:58 +00:00
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+-------------|
|
|
|
|
| ~h~ | Move left |
|
|
|
|
| ~j~ | Move down |
|
|
|
|
| ~k~ | Move up |
|
|
|
|
| ~l~ | Move right |
|
|
|
|
| | |
|
2015-06-10 16:44:30 +00:00
|
|
|
** Tetris
|
|
|
|
|
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+--------------------------------|
|
|
|
|
| ~h~ | Move block to the left |
|
|
|
|
| ~i~ | Rotate block counter-clockwise |
|
|
|
|
| ~j~ | Move block to the bottom |
|
|
|
|
| ~k~ | Rotate block clockwise |
|
|
|
|
| ~l~ | Move block to the right |
|
|
|
|
| ~n~ | Start a new game |
|
|
|
|
| ~p~ | Pause the game |
|
|
|
|
| ~q~ | Quit the game |
|