2021-10-19 20:50:21 +03:00
|
|
|
# Raylib template for Code::Blocks
|
|
|
|
|
2021-11-02 20:49:53 +03:00
|
|
|
1. Install Raylib.
|
|
|
|
|
|
|
|
On Windows you should 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/4.0.0/raylib_installer_v400.mingw.exe
|
2021-10-19 20:50:21 +03:00
|
|
|
* 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`.
|
2022-08-05 00:53:36 +03:00
|
|
|
Change `Compiler's installation directory` to `C:\raylib\MingGW`. Do *not* press auto-detect.
|
2021-11-02 20:49:53 +03:00
|
|
|
There is a screenshot below showing how it should look. Press `OK`.
|
2021-10-19 20:50:21 +03:00
|
|
|
|
|
|
|
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
|