1 [![Tsoding](https://img.shields.io/badge/twitch.tv-tsoding-purple?logo=twitch&style=for-the-badge)](https://www.twitch.tv/tsoding)
2 [![Build Status](https://travis-ci.org/tsoding/nothing.svg?branch=master)](https://travis-ci.org/tsoding/nothing)
3 [![Build status](https://ci.appveyor.com/api/projects/status/gxfgojq4ko98e0g0/branch/master?svg=true)](https://ci.appveyor.com/project/rexim/nothing/branch/master)
7 ![](https://i.imgur.com/7mECYKU.gif)
8 ![](https://i.imgur.com/ABcJqB5.gif)
20 $ sudo apt-get install gcc cmake libsdl2-dev inotify-tools libxml2-dev
26 $ brew install gcc cmake sdl2
31 For [NixOS] we have a development environment defined in [default.nix]
32 with all of the required dependencies. You can enter the environment
33 with `nix-shell` command:
42 $ sudo pacman -S gcc cmake sdl2 inotify-tools libxml2
49 - [Visual Studio 2015+](https://visualstudio.microsoft.com/)
50 - [SDL2 VC Development Libraries](https://www.libsdl.org/release/SDL2-devel-2.0.9-VC.zip)
53 - [mingw-w64](https://mingw-w64.org)
54 - [SDL2 MinGW Development Libraries](https://www.libsdl.org/release/SDL2-devel-2.0.10-mingw.tar.gz)
73 - Enter the Visual Studio Command Line Development Environment https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line
74 - Basically just find `vcvarsall.bat` and run `vcvarsall.bat x64` inside of cmd
75 - Download [SDL2 VC Development Libraries](https://www.libsdl.org/release/SDL2-devel-2.0.9-VC.zip) and copy it to `path\to\nothing`
79 > 7z x SDL2-devel-2.0.9-VC.zip
80 > move SDL2-2.0.9 SDL2
89 #### MinGW (with MSYS)
93 $ wget https://www.libsdl.org/release/SDL2-devel-2.0.10-mingw.tar.gz
94 $ tar xzf SDL2-devel-2.0.10-mingw.tar.gz
96 $ rm SDL2-devel-2.0.10-mingw.tar.gz
97 $ mkdir build && cd build
98 $ cmake .. -G "MSYS Makefiles"
104 #### MinGW (without MSYS)
105 - Download [SDL2 MinGW Development Libraries](https://www.libsdl.org/release/SDL2-devel-2.0.10-mingw.tar.gz) and copy it to `path\to\nothing`
109 > 7z x SDL2-devel-2.0.10-mingw.tar.gz -so | 7z x -si -ttar
110 > move SDL2-2.0.10 SDL2
111 > del SDL2-devel-2.0.10-mingw.tar.gz
114 > cmake .. -G "MinGW Makefiles"
127 |---------|-------------------------------------------------------------|
128 | `d` | Move to the right |
129 | `a` | Move to the left |
131 | `c` | Open debug console |
132 | `r` | Reload the current level including the Player's position |
133 | `q` | Reload the current level preserving the Player's position |
134 | `p` | Toggle game pause |
135 | `l` | Toggle transparency on objects. Useful for debugging levels |
136 | `TAB` | Switch to Level Editor |
141 |--------------|------------------------|
142 | `Left Stick` | Movement of the Player |
148 |-----------|--------------------------|
149 | `ESC` | Exit console |
150 | `Enter` | Evaluate the expression |
151 | `Up/Down` | Traverse console history |
153 <!-- TODO(#914): Level Editor is not documented -->
157 To access the Level Editor open a level and press `TAB`.
160 |------|------------------------|
161 | `F2` | Rename selected object |
165 You can support my work via
167 - Twitch channel: https://www.twitch.tv/subs/tsoding
168 - Patreon: https://www.patreon.com/tsoding
170 [visual-studio]: https://www.visualstudio.com/
171 [svg2rects.py]: ./devtools/svg2rects.py
172 [./levels/]: ./levels/
173 [./levels/Makefile]: ./levels/Makefile
174 [gcc]: https://gcc.gnu.org/
175 [cmake]: https://cmake.org/
176 [libsdl2-dev]: https://www.libsdl.org/
177 [NixOS]: https://nixos.org/
178 [default.nix]: ./default.nix
179 [inotify-tools]: https://github.com/rvoicilas/inotify-tools