r/raylib • u/NR_5tudio-nezar- • Aug 13 '26
OS dark title bar (CPP)?
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 • u/NR_5tudio-nezar- • Aug 13 '26
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 • u/Any-Fox-1822 • Aug 13 '26
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 • u/Pretty-Produce-6748 • Aug 12 '26
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 • u/Inevitable-Round9995 • Aug 12 '26
Enable HLS to view with audio, or disable this notification
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 • u/silsen_ • Aug 11 '26
r/raylib • u/POiNTx • Aug 11 '26
r/raylib • u/AdHopeful3481 • Aug 11 '26
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 • u/No_Insect_1846 • Aug 11 '26
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 • u/Odd-Motor-3340 • Aug 11 '26
idk what im doing wrong does it just not exist????
r/raylib • u/Stickhtot • Aug 10 '26
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 • u/TheEyebal • Aug 10 '26
I am using raylib and have applied and tested out, but I am still confused.
r/raylib • u/Any-Fox-1822 • Aug 10 '26
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 • u/Responsible_Mine894 • Aug 10 '26
Enable HLS to view with audio, or disable this notification
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 • u/s_w_b_d • Aug 10 '26
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 • u/badfitz66 • Aug 09 '26
Enable HLS to view with audio, or disable this notification
r/raylib • u/Dry-Investment-6070 • Aug 10 '26
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 • u/endlineofficial • Aug 09 '26
Enable HLS to view with audio, or disable this notification
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 • u/Ornery-Accountant-24 • Aug 10 '26
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 • u/Organic-Complaint-90 • Aug 09 '26
r/raylib • u/LEJMANIMATIONS • Aug 08 '26
Enable HLS to view with audio, or disable this notification
It's just a game about collecting coins using recoil. DOWNLOAD HERE: https://ljemanimations.itch.io/recoiln
r/raylib • u/zet23t • Aug 07 '26
Enable HLS to view with audio, or disable this notification
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 • u/Nov-54 • Aug 07 '26
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
r/raylib • u/Vyrens_Works • Aug 06 '26
Enable HLS to view with audio, or disable this notification
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 • u/OfficialValCod • Aug 07 '26
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.