update code::blocks example to support linux

This commit is contained in:
richard 2021-10-19 16:48:18 +01:00
commit 0fc58a06f2

View file

@ -1,16 +1,17 @@
# raylib for Code::Blocks
**by D3nX**
<br/>
Hey! Here it is a project template to use with `Code::Blocks` =)
<br/><br/>
First, you need to download the [raylib installer](https://www.raylib.com) and run it. It will install raylib with the compiler.
<br/><br/>
Then, download the template, and open the project with `Code::Blocks`.
# 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.
2. Windows only: In Code::Blocks, 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`.
3. Select `File` `Open` and open the `core_basic_windows.cbp` file.
Before running the template, make sure following set the raylib compiler for the IDE as show below:
<br>
![Compiler Settings](compiler_settings.png)
<br/>
Finally, you can run the program and enjoy raylib running on `Code::Blocks`!
<br /><br />
Hope it helped you =)
**by D3nX**
See also https://github.com/electronstudio/raylib-game-template-codeblocks