This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+fun/games/README.org

72 lines
1.8 KiB
Org Mode
Raw Normal View History

2015-06-10 16:44:30 +00:00
#+TITLE: Games contribution layer for Spacemacs
[[file:img/games.png]]
* Table of Contents :TOC@4:
- [[#description][Description]]
- [[#install][Install]]
- [[#key-bindings][Key bindings]]
- [[#2048][2048]]
- [[#tetris][Tetris]]
* Description
This layer allows you to play evilified games in spacemacs.
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
| 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 |