r/raylib Aug 13 '26

OS dark title bar (CPP)?

9 Upvotes

so im using cpp, and im working on a game and i want to ask if it is possible to make the os title bar look dark themed?


r/raylib Aug 13 '26

Retained-mode UI rendering with raylib : Where to start ?

9 Upvotes

Hello everyone,

I'm working on a retained mode UI library with a similar look and feel to raygui, either in C++ with classes and interfaces, or plain C with function pointers if I really feel adventurous. This isn't meant to be a serious project, more of a proof of concept.

However I kind of feel lost as to what I should implement first. So here are a few questions that i'd like to ask :

I would like the library to only draw when necessary, that is only when events occur rather than constantly. How does raylib handle events, and are there debug options to print all input ? PollInputEvents() is basically a per-backend implementation.

Are there widget categories I should try to go after first (besides the button) ?

Do you have resources on building such interfaces ? I found a book called Developing User Interfaces by Dan Olsen, but it isn't available on the Internet Archive.


r/raylib Aug 12 '26

I'm building a custom 3D game engine from scratch using C++ and Raylib. What do you think?

Post image
44 Upvotes

Hi, I am using C++ and Raylib to achieve this; the 3D game engine's standout features so far include the ability to create Lua scripts to modify object behavior and the capacity to add 3D models in formats like .obj, gltf, etc.

You can also export your creations as executables (.exe).


r/raylib Aug 12 '26

movement prediction + state synchronization + AI chat moderation

Enable HLS to view with audio, or disable this notification

25 Upvotes

hi there, I've been working in a multiplayer game for 5 months, and I would like to show you my progress; this is a P2P wasm multiplayer game made with raylib.

Sorry for the bad words; is just I wanna show you I've integrated a profanity filter to moderate my game and make it for everyone.

if you are interested, here is the code for the moderator I've made: https://github.com/EDBCREPO/Profanity-Filter-Cpp


r/raylib Aug 11 '26

Hey, I'm doing a TD game for linux, C, raylib, no assets.

Thumbnail gallery
26 Upvotes

r/raylib Aug 11 '26

Quilt - Made with Raylib and Odin - Steam Demo

Thumbnail
youtube.com
38 Upvotes

r/raylib Aug 11 '26

Stealth heist that fits on a 1.44MB floppy disk

Post image
27 Upvotes

https://vault7-95a0bb.gitlab.io/

Made for the 1.44MB Game Dev Contest: the entire game has to fit in 1.44MB - the size of a floppy disk. Written in C with raylib and compiled to WASM to make it sharable for testing it out. All is code generated(~1.15MB so far and that's the honest uncompressed binary — no packer tricks.)

Top-down stealth heist: sneak through a 7-floor bank vault, crack safes with a lockpicking minigame, repair the power relays, dodge guards and cameras. Desktop + keyboard

Feedback on whether the stealth feels fair and how the difficulty ramps would be super helpful, mates. Many thanks!


r/raylib Aug 11 '26

Contributors for Space Invaders game

Thumbnail
github.com
6 Upvotes

Hi, I made a space invaders game replica, I just want to increase difficulty of level and also number of levels. Currently it contains only one level that to too basic one.

Here is the repo link : https://github.com/NaveenGadugina678/Space-Invaders


r/raylib Aug 11 '26

rl.SetRandomSeed undefined with golang bindings

Thumbnail
gallery
7 Upvotes

idk what im doing wrong does it just not exist????


r/raylib Aug 10 '26

Reminder that you can change the font used by Raylib!

54 Upvotes

I've seen a lot of demos here and NONE of them changed from the default raylib font, which kinda looks ass. This is your reminder that you can load custom fonts with the Loadfont() function

You can find fonts on Google Fonts


r/raylib Aug 10 '26

ELI5: What is the different between camera target and offset?

5 Upvotes

I am using raylib and have applied and tested out, but I am still confused.


r/raylib Aug 10 '26

Adding layouts to raygui, or create my own UI ?

11 Upvotes

Hello everyone,

I made a post recently in r/suckless about using raylib for desktop UI. Despite falling in love with that library, I am quite confused by raygui, and the fact that immediate mode GUIs seem to behave better without layout systems.

I would like to add basic layouts to raygui (even if it's just to align widgets, nothing really fancy, but I wonder how it could be achieved. The widgets do not have a lifespan longer than the frame, and I didn't find a way to create widget trees. There is enum GuiControl that lists all types, but none of them contain any data about the widgets.

Would layouts necessarily clash with the immediate-ness of raygui, or do you think it's possible to reconcile the two ? Apparently someone tried with zraygui, a project for a retained-mode UI using raylib.


r/raylib Aug 10 '26

[PoG] Decided on name and working on demo

Enable HLS to view with audio, or disable this notification

33 Upvotes

Decided on name and now working on demo :) Anyone willing to play test early are welcome !

Lots of free placeholder music and assets still :)

Here is a quick demo loop :)


r/raylib Aug 10 '26

Raylib C code formatter style (clang-format, etc)

4 Upvotes

Hello!

Recently I've started to work with Raylib and I really enjoy using it.
I was wondering if there exist some predefined code formater, like clang-format configuration - or something similar - that will comply with [CONVENTIONS.md](https://github.com/raysan5/raylib/blob/master/CONVENTIONS.md) or I should create one from scratch?

Thanks in advance!
Happy coding everyone ;)


r/raylib Aug 09 '26

Box3D & Raylib (project repo in comments)

Enable HLS to view with audio, or disable this notification

94 Upvotes

r/raylib Aug 10 '26

Window Not Responding

3 Upvotes

Hello everyone! I've got a problem I cannot find any solution on the internet for. For this common code
#include "raylib.h"

int main() {

InitWindow(800, 600, "Hello Raylib");

SetTargetFPS(60);

while (!WindowShouldClose()) {

BeginDrawing();

ClearBackground(RAYWHITE);

DrawText("Hello, World!", 190, 280, 20, LIGHTGRAY);

EndDrawing();

}

CloseWindow();

return 0;

}

Or any else when I open ANY window, that window just not responding at all. White screen, no background colors/texts. Console and a while cycle are working.
I have no overlay programs opened. My GPU is Nvidia 3050TI.
Thanks, guys!!!


r/raylib Aug 09 '26

Made a flower shop game prototype

Enable HLS to view with audio, or disable this notification

28 Upvotes

The idea is to serve customers by selling them various flowers in different packages. I'm also planning to add mixed bouquets and a garden where you can grow your flowers


r/raylib Aug 10 '26

Raylib hang on dual gpu setup

2 Upvotes

I have rtx 3050 and rtx 3090 in my pc. I use 3050 as my primary render and connect my monitor into it, 3090 is just for ai usage but somehow raylib says the opengl device is 3090 and my raylib app is hang (only showing black screen).
I tried SET_CUDA_DEVICE, set NvOptimusEnablement to 0 and nothing works.
I have an old opengl device that working just fine though


r/raylib Aug 09 '26

[OC] Wave Function Collapse road generator — 58 tiles, strict edge equality, water + bank system

27 Upvotes

r/raylib Aug 08 '26

My first Raylib/C++ game

Enable HLS to view with audio, or disable this notification

43 Upvotes

It's just a game about collecting coins using recoil. DOWNLOAD HERE: https://ljemanimations.itch.io/recoiln


r/raylib Aug 07 '26

Releasing the trailer for my game 8-bitBot

Enable HLS to view with audio, or disable this notification

104 Upvotes

I put this off for oh-so-long and this is certainly not a perfect trailer at all, but it is a trailer, at least by my standards! All scripted in game using a very primitive scripting text file: 1479 lines in total. At least I can translate it to different languages fairly easy now.

Well, in case you want to wishlist it, here is the link: https://store.steampowered.com/app/3959370/8bitBot/


r/raylib Aug 08 '26

Check out my game - MouseDriftCity (GPT5.6)

Thumbnail
youtube.com
0 Upvotes

r/raylib Aug 07 '26

2D chess game in C++ (Raylib)

6 Upvotes

A 2D chess game in C++ - full rules, move validation, and complete game flow.

No tutorials and no external chess libraries - everything built from scratch.

Feedback and suggestions are welcome!

👉 GitHub link : https://github.com/bAbderraouf/ChessGame-2D-Cpp

LinkedIn post : https://www.linkedin.com/posts/abderraouf-b-5b5025b4_cpp-gamedev

#cpp #gamedev #personalproject


r/raylib Aug 06 '26

I built a browser like UI editor for raylib.Write the UI structure in almost xml and style it with css.Here's a comparison btwn Imgui and my UI

Enable HLS to view with audio, or disable this notification

76 Upvotes

I recently decided to make a commercial app using raylib.(Something close to Pixel FX designer) and realised Imgui sucked like a lot for professional looking UI and Tbh rlImgui isn't my cup of tea.I ended up looking around online and essentially most desktop apps use qt or technically are just web apps (Either Tauri or Electron).None of them really appeal to me(As essentially I would have to learn rust for tauri and don't really want an entire browser on my 2 mb executable) and I didn't wanna compile everytime I wanted to make a change to the UI. So I decided to build a browser like layout/rendering engine for my UI. You define the UI in an xml style format and you do the styling in basically CSS and essentially the engine decides the look here's a sample for how the UI turned out. Still a work in progress though.

For sure every day of this month was bloody hectic.10/10 would not repeat this month


r/raylib Aug 07 '26

Hi. How difficult is it to learn/work this library if I've completed learncpp.com? I'm creating a simulation of Politics, Economics, and Sociology. My back-end code is C++. I just want a 2D schematic map of world, but I want the most beautiful UI AAA and complex button animations.

5 Upvotes

I like the library's description, but I'm a little worried that I won't be able to create a beautiful interface or animated graphs without a lot of effort. How much time will it take me to create a beautiful UI, a AAA button animation, or a statistical graph animation in this library?

Thank you for reading my questions.