summaryrefslogtreecommitdiffhomepage
path: root/projects/CodeBlocks/README.md
blob: fb072ba8cd909484abbcf7c9debb7c03fe40ef3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Raylib template for Code::Blocks

1. Install Raylib.  On Windows you must install the **Windows Installer (with MinGW compiler)** package.  On other
platforms you can install however you like following the instructions in the wiki.
    * https://github.com/raysan5/raylib/releases/download/3.7.0/raylib_installer_v370.mingw.exe
    * https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux
    * https://github.com/raysan5/raylib/wiki/Working-on-macOS

2. Install and run Code::Blocks.

3. **Windows only**: Select `Settings` `Compiler` `Toolchain executables`.
Change `Compiler's instrallation directory` to `C:\raylib\MingGW`.  Do *not* press auto-detect.  There is a screenshot 
below showing how it should look.  Press `OK`.

4. Select `File` `Open` and open the `core_basic_windows.cbp` file.

![Compiler Settings](compiler_settings.png)

For an example with resources, see https://github.com/electronstudio/raylib-game-template-codeblocks