| 1 | # raylib template for Code::Blocks |
| 2 | |
| 3 | 1. Install raylib. |
| 4 | |
| 5 | On Windows you should install the **Windows Installer (with MinGW compiler)** package. |
| 6 | On other platforms you can install however you like following the instructions in the wiki. |
| 7 | |
| 8 | * https://github.com/raysan5/raylib/releases/download/4.2.0/raylib_installer_v420.mingw.exe |
| 9 | * https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux |
| 10 | * https://github.com/raysan5/raylib/wiki/Working-on-macOS |
| 11 | |
| 12 | 2. Install and run Code::Blocks. |
| 13 | |
| 14 | 3. **Windows only**: Select `Settings` `Compiler` `Toolchain executables`. |
| 15 | Change `Compiler's installation directory` to `C:\raylib\MingGW`. Do *not* press auto-detect. |
| 16 | There is a screenshot below showing how it should look. Press `OK`. |
| 17 | |
| 18 | 4. Select `File` `Open` and open the `core_basic_windows.cbp` file. |
| 19 | |
| 20 |  |
| 21 | |
| 22 | For an example with resources, see https://github.com/electronstudio/raylib-game-template-codeblocks |