| 1 | ## Contributing to raylib |
| 2 | |
| 3 | Hello contributors! Welcome to raylib! |
| 4 | |
| 5 | Do you enjoy raylib and want to contribute? Nice! You can help with the following points: |
| 6 | |
| 7 | - `C programming` - Can you write/review/test/improve the code? |
| 8 | - `Documentation/Tutorials/Example` - Can you write some tutorials/examples? |
| 9 | - `Porting to other platforms` - Can you port/adapt/compile raylib on other systems? |
| 10 | - `Web Development` - Can you help [with the website](https://github.com/raysan5/raylib.com)? |
| 11 | - `Testing` - Can you find some bugs in raylib? |
| 12 | |
| 13 | This document contains a set of guidelines to contribute to the project. These are mostly guidelines, not rules. |
| 14 | Use your best judgment, and feel free to propose changes to this document in a pull request. |
| 15 | |
| 16 | ### raylib philosophy |
| 17 | |
| 18 | - raylib is a tool to **ENJOY** videogames programming, every function in raylib is designed as a mini-tutorial on itself. |
| 19 | - raylib is **SIMPLE** and **EASY-TO-USE**, I tried to keep it compact with a small set of functions, if a function is too complex, better not including it. |
| 20 | - raylib is open source and free; educators and institutions can use this tool to **TEACH** videogames programming completely for free. |
| 21 | - raylib is collaborative; contribution of tutorials / code examples / bug fixes / code comments are highly appreciated. |
| 22 | - raylib's license (and its external libs respective licenses) allow using raylib on commercial projects. |
| 23 | |
| 24 | ### Some interesting reads to start with |
| 25 | |
| 26 | - [raylib history](HISTORY.md) |
| 27 | - [raylib architecture](https://github.com/raysan5/raylib/wiki/raylib-architecture) |
| 28 | - [raylib license](LICENSE) |
| 29 | - [raylib roadmap](ROADMAP.md) |
| 30 | |
| 31 | [raylib Wiki](https://github.com/raysan5/raylib/wiki) contains some information about the library and is open to anyone to edit. |
| 32 | Feel free to review it if required, just take care not to break something. |
| 33 | |
| 34 | ### raylib C coding conventions |
| 35 | |
| 36 | Despite being written in C, raylib does not follow the standard Hungarian notation for C, |
| 37 | it [follows Pascal-case/camel-case notation](https://github.com/raysan5/raylib/wiki/raylib-coding-conventions), |
| 38 | more common in C# language. All code formatting decisions have been carefully taken |
| 39 | to make it easier for students/users to read, write and understand code. |
| 40 | |
| 41 | Source code is extensively commented for that purpose, raylib primary learning method is: |
| 42 | |
| 43 | > `Learn by reading code and examples` |
| 44 | |
| 45 | For detailed information on building raylib and examples, please check [raylib Wiki](https://github.com/raysan5/raylib/wiki). |
| 46 | |
| 47 | ### Opening new Issues |
| 48 | |
| 49 | To open new issues for raylib (bug, enhancement, discussion...), just try to follow these rules: |
| 50 | |
| 51 | - Make sure the issue has not already been reported before by searching on GitHub under Issues. |
| 52 | - If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a |
| 53 | title and clear description, as much relevant information as possible, and a code sample demonstrating the unexpected behavior. |
| 54 | - If applicable, attach some screenshot of the issue and a .zip file with the code sample and required resources. |
| 55 | - On issue description, add a brackets tag about the raylib module that relates to this issue. |
| 56 | If don't know which module, just report the issue, I will review it. |
| 57 | - You can check other issues to see how it's being done! |
| 58 | |
| 59 | ### Sending a Pull-Request |
| 60 | |
| 61 | - Make sure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable. |
| 62 | - Don't send big pull requests (lots of changelists), they are difficult to review. It's better to send small pull requests, one at a time. |
| 63 | - Verify that changes don't break the build (at least on Windows platform). The more platforms where you can test it, the better, but don't worry |
| 64 | if you cannot test all the platforms. |
| 65 | |
| 66 | ### Contact information |
| 67 | |
| 68 | If you have any doubt, don't hesitate to [contact me](mailto:[email protected])!. |
| 69 | You can write me a direct mail but you can also contact me on the following networks: |
| 70 | |
| 71 | - [raylib Discord](https://discord.gg/raylib) - A direct communication channel for project discussions. |
| 72 | - [raylib reddit](https://www.reddit.com/r/raylib/) - A good place for discussions or to ask for help. |
| 73 | - [raylib web](http://www.raylib.com/) - On top-right corner there is a bunch of networks where you can find me. |
| 74 | - [raylib X](https://x.com/raysan5) - My personal X account, I usually post about raylib, you can send me PMs. |
| 75 | |
| 76 | Thank you very much for your time! :) |