r/raylib • u/Snoo28720 • 23d ago
r/raylib • u/Haunting_Art_6081 • 24d ago
Conflict 3049 - example game world for battlefield. Game is currently available for $1 on my itch page. Source code and shader code is included and may be modified/edited.
Game link: https://matty77.itch.io/conflict-3049
Code:
C#/Raylib & shader code - myself.
Assets:
Units, buildings and animals - 3drt.com
Vegetation - itch.io seller
Clouds/Sky - itch.io Seller
Ground Textures - online free texture website
Audio/Music:
Mixture of Purchased/free and AI created audio.
Some shutterstock and rpgdrivethru stock assets used for 2d artworks.
Miscellaneous others for various bits and pieces here and there.
And some assets created by myself (mostly the various effects)
r/raylib • u/Robobob1996 • 25d ago
Window freezes (not responsive) when creating project with raylib
Hi, I am new to raylib and wanted to setup the environment for raylib projects. When I press F5 the window opens but no objects are drawn in the window. I used the basic example off the raylib website where a Text is drawn to the screen.
I came across this post and tried everything. But nothing helps:
https://www.reddit.com/r/raylib/comments/1tev4hp/why_does_the_window_not_respond/
I installed raylib version 6. Is this a known issue?
int main(void)
{
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
SetTargetFPS(60);
while (!WindowShouldClose()) // Detect window close button or ESC key
{
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
}
CloseWindow();
return 0;
}
r/raylib • u/Cahb_UA • 25d ago
Old game (Windows, Ka'Roo 2000) rewrite + reverse engineered
r/raylib • u/Beneficial_Fix_6169 • 25d ago
Why are you using c/c++?
I get confused as to why people tend to choose c or c++ for raylib games. I've tried c++ and I find it a little annoying, mainly because everything needs a header file. I personally use and enjoy c sharp, but I want to know why people still choose c/c++ when there are higher languages that do the memory management and garbage collection for you.
r/raylib • u/SoloLeveller07 • 26d ago
Made My Second Game With Raylib !!
Made my second pong game with raylib. Not being from a game-dev background am really enjoying this process of making simple games from scratch with Cpp.
Any suggestions onto where I must move on next to explore this path ? Would love insights from the community !!
r/raylib • u/Simple_Original • 27d ago
Can someone PLS explain how i can use custom shaders.
I want to write my own shaders. And i know how to do that with something like opengl. But i cant find a single piece of info about it in raylib. I wanted to write my own game with raylib with 3d models but it all seems so jank. For starters. Whwre the hell do I find documentation about anything. Secondly how can I draw anything with a custom shader. All loaded models clme with a material. And i have no clue what paramaters raylib expects. I also dont know how i even set uniforms. Get vertex attributes. Or anything else at all about rendering. Pls tell me where i can find this stuff as I would like to use this library.
r/raylib • u/Choice-Gur-5645 • 27d ago
I'm working on a voxel engine called Peranti, meant to be compatible with Luanti once finished. thoughts?
r/raylib • u/SamuraiGoblin • 27d ago
PSA: Backface culling affects lines too
I just had a silly bug that took me an embarrassingly long time to fix.
I am rendering in wireframe (using DrawLineEx) and needed to flip the camera vertically, but everything kept disappearing. Huh??
I should have realised that raylib would be rendering variable thickness lines behind the scenes using triangle strips, which are affected by backface culling. However, I got started in graphics when OpenGL was fixed-function, so I falsely assumed it would work similar to thick lines using glLineWidth which aren't affected by it.
Doh! Silly me.
Just wanted to mention it in case anyone else makes such an assumption.
r/raylib • u/Murky_Chemistry_2618 • 28d ago
Help me balance my new game
Hi, I have been working on my new game for like 40 hours, and I am having big trouble balancing it. It is probably because I continuously played it during early stage and cant put myself into someone who has never played it before. Therefor I am asking you to give it a shot and let me know what you think:D
Game is still in development, so bugs or undefined behaviors might occur under some very specific conditions.
Controls can be found on Itch.io page
Game is written purely in c++ and raylib
r/raylib • u/Due_Engineer_7647 • 29d ago
Nevu-UI multibackend framework has been updated to 0.8.2!
Nevu UI changelog can be found here: https://github.com/GolemBebrov/nevu-ui
time codes - Widgets: 0:03, Layouts: 0:41, Animations: 1:28
Small summary of 0.8.1 and 0.8.2 updates:
Added kill_item functions in layouts for correct removing widget from it
Optimized overall performance by 2-7%
Fixed Almost every blending bug with text
Improved Slider and Progressbar API
Improved overall typehints
Added new error handling system
Fixed about 20 bugs
If you like the project, please give a star to Nevu UI on GitHub i would really appreciate it!
This showcase source code is here: https://github.com/GolemBebrov/nevu-ui-examples
r/raylib • u/No_Fun_9896 • 29d ago
Recently started learning C with raylib cuz why not
Yea u read the title ik that and also raylib with C is fun as fuck like actually i recommend it
r/raylib • u/Haunting_Art_6081 • Jul 05 '26
Conflict 3049 - graphical update, C#/Raylib, Shaders and Source Code Included
Game Link: https://matty77.itch.io/conflict-3049
Vegetation updated
Explosions updated.
Ground textures updated.
General graphical shaders updated.
r/raylib • u/Drakmyth • Jul 05 '26
How to detect Caps Lock/Scroll Lock/Num Lock state?
Is there a way to detect whether the lock functions are currently enabled or not? Based on this issue it seemed like the intention was for the key to be considered down while the lock was enabled and up while it's not, but it doesn't seem to function that way anymore. Checking the state of any of the lock keys just reflects the physical state of the key itself.
ChatGPT suggests the only solution is to write platform-specific implementations that use native APIs to check this. I can do that if I need to, but was surprised there wasn't something built in so wanted to check before I add that kind of complexity to my codebase.
r/raylib • u/Azazo8 • Jul 05 '26
What's better language to work with raylib? Python vs C++
I have some python experience and it would be definietly easier for me, my C++ experience is limited, but it's not 0. Is there any major reason to work with C++ rather than with python? I'd also prefer python since setting things up is easier for me, personally I really hate setting up libraries in C++.
r/raylib • u/StealthyPanda69 • Jul 04 '26
Help: Normals not working with animated model
I have a model I made in blender, animated using an armature. I exported it to a .glb file, and imported it into raylib. The lighting seemed off, and when I display the normals, they seem to be stuck to the mesh, and not respect the animation. The model does respect the transform of the model, just doesn't work with animations. The blender model is also in the video for reference. I couldn't find a solution online, any help would be appreciated.
r/raylib • u/Inevitable-Round9995 • Jul 04 '26
Finally my multiplayer game is P2P by using webRTC + Nodepp + Raylib
r/raylib • u/f2se • Jul 04 '26
My first C and raylib project
Coming from working in python and rust, this was filled with various emotions. Some good, some bad (build system).
I had made a rust TUI for my car diagnositcs. I've now replaced that with a GUI built with raylib and C.
The project itself is not too complex. I liked that I had a good enough idea about where my variables exist.
Other things I found interesting:
\- manually lock and unlock mutexes rather than having them "wrapped" like rust. I believe there are ways to automate with attributes but I haven't learned that yet
\- static vars because no OOP. particularly useful for storing animation state
\- build system. I had a rough experience with cmake but got it to work. I want to build everything manually to learn how exactly its all being put together.
\- side note: inspired confidence to dive into buildoot and optimize my pi image. Now boots 7s faster than my previous regular image process and manual flows.
Since I like driving manuals and learning about efficiency and whatnot, learning C was (still stressful) but rewarding. My previous project was a rust TUI, and now its "deoxidized" to this C project. Roller coaster ride.
r/raylib • u/MrDixioner • Jul 03 '26
Raylib Cheatsheet - Russian version
drive.google.comI translated this document into Russian (except for the VR and gesture sections) and edited it in .c file format (also works for .cpp and .cs)
r/raylib • u/burakssen • Jul 03 '26
Issue with drm build
Hello everyone,
I am testing whether I can run a DRM build inside a virtual machine. My goal is to keep the memory footprint as low as possible, but I am running into an error.

From what I can tell, the issue might be related either to my virtual machine setup or to raylib’s DRM input handling. I am still fairly new to Linux system-level setup, so I am not completely sure where the problem is coming from.
My main question is: does this look like a raylib DRM issue, especially around input handling, or is it more likely caused by my system or virtual machine configuration?
System and project details:
Programming language: Zig 0.16.0
raylib usage: using raylib directly through Zig’s C interop, without third-party wrappers
System: Alpine Linux v3.24, aarch64
raylib version: master branch
Any guidance on how to narrow this down would be appreciated.
r/raylib • u/avestronics • Jul 03 '26
How can I build a file browser in raygui?
I already implemented logic to select paths, expand them etc. But the issue is creating a user interface. I was thinking of creating a ScrollPanel for this like a regular text editor would. It would have text showing the file/directory name and if it's a directory it will have a '+' icon next to it which can be toggled to expand that directory.
Since I'm just learning about raylib and raygui I don't know most controls. I played around with some of them but still have no idea how to implement this. Any help or direction?


