Tycoon game with raylib
I want to make tycoon game with Raylib in C, but the problem is i want the game to be UI heavy, so my plan is either to use Clay or Raygui which one is better to use for game that will use lot of UI?
I want to make tycoon game with Raylib in C, but the problem is i want the game to be UI heavy, so my plan is either to use Clay or Raygui which one is better to use for game that will use lot of UI?
r/raylib • u/Last-Development-172 • 1d ago
raylib has been really nice to work with so far, no complaints x: https://x.com/Sarkicism discord for playtests: https://discord.gg/QHKWDHhHWw
r/raylib • u/scapaflow96 • 1d ago
Feels like jumping from an old Horse onto a fresh stallion.
r/raylib • u/SirMino6163 • 1d ago
toying around with a terminal velocity/fury3 inspired retro flight/combat simulator.
I'm having fun but man, 3D is hard 😂
(enemies are just patrolling around some points, no combat AI yet)
ship model is from kenney ❤️
made with the Go raylib bindings
r/raylib • u/NazgulResebo • 2d ago
In this video I create a classic kaleidoscope fractal animation using Raylib, C and GLSL.
I follow these steps:
Source code:
https://github.com/FractalCodeRicardo/zen-programming/tree/main/kaleidoscope
C part
#include <raylib.h>
#define size 800
float time = 0.0;
int main() {
InitWindow(size, size, "Kaleidoscope");
Shader shader = LoadShader(0, "kaleidoscope.glsl");
int timeLoc = GetShaderLocation(shader, "time");
while(!WindowShouldClose()) {
time = GetTime();
SetShaderValue(shader, timeLoc, &time, SHADER_UNIFORM_FLOAT);
BeginDrawing();
ClearBackground(BLACK);
BeginShaderMode(shader);
DrawRectangle(0, 0, size, size, BLACK);
EndShaderMode();
EndDrawing();
}
CloseWindow();
}GLSL part
void main() {
float pi = 3.1416;
vec2 uv = gl_FragCoord.xy / 800;
uv = uv - 0.5;
float angle = atan(uv.y, uv.x) * time * 0.3;
float radius = length(uv);
float slices = 3;
float size = pi * 2 / 3;
float internal_angle = mod(angle, size);
internal_angle = abs(internal_angle - size /2.0);
vec2 internal_point= radius *
vec2(
cos(internal_angle) * radius,
sin(internal_angle) * radius
);
float pattern =
sin(internal_point.x * time *10 * 0.5) *
sin(internal_point.y * time *10 * 0.5);
vec3 c = palette(pattern + time * 0.5);
color = vec4(c, 1);
}AI Disclaimer:
I used AI to understand the fractal then I coded my own version
r/raylib • u/Puzzleheaded-Buy-442 • 2d ago
Hello, everyone! I'm working on a classic re type game and I've hit a road block trying to implement the fixed camera system. So far what I've been doing is placing cameras in different rooms of my level in blender and then manually placing those coordinates inside my raylib project. Then I would place a cube to figure where the trigger zone for that camera would be and do the same thing. As you can imagine this is quite tedious and annoying so I was wondering what would be a better and more efficient way of doing this? I've also attached my code for the cameras.
r/raylib • u/skallzdev • 2d ago
Hi I'm skallz 19, former web dev suffering from unemployment.
So I'm starting my new journey in gamedev c++ + raylib and currently I'm working on a small game the ping pong horizon .
If you are into low level game dev let's connect 🤝
r/raylib • u/NazgulResebo • 4d ago
I created a simple moiré fractal using C, raylib and GLSL shaders.
The idea is quite simple: start with two nearby centers and generate concentric circles around each one, gradually increasing their radius.
Then, using the radius as input to a sin function, I generate alternating light and dark values. By applying this to the colors, the two circle patterns interact and produce the characteristic moiré effect.
Complete coding session:
Source code:
https://github.com/FractalCodeRicardo/hangover-programming/tree/main/moire-shaders
r/raylib • u/Reasonable-Ad9130 • 3d ago
r/raylib • u/Much_Special8521 • 4d ago
**Disclaimer: The project is vibecoded*
The game has 40 000+ lines of code, everything is procedullary generated. Using only 200mb of ram and vram. It is developed on linux and i plan to port it to windows, mac and mobile. A prototype windows port revealed that the full game (folder including exe) only take up 2mb, which baffles me.
The game has it's own level/model/zombie editor, local coop.
I will not talk around the bush, the game is AI coded. It is a kind of passion project of mine, exploring the possibilities of AI, my creativity and how well one can optimize a game.
My favourite part is the gore and gibs system, reminds me of the pipebomb/zombie horde explosion of l4d2.
All screenshots got taken on an lenovo t14s 16gb of ram, ryzen 5 5650, vega 7 igpu, debian 13 gnome.
Game name got redacted because it is not final, yet.
I'm curious for your feedback!
Greetings from germany.
r/raylib • u/nu11c1yze • 4d ago
I got bored, so I decided to write a small library on Zig for creating simple and energy-efficient graphical apps in retained-mode. I used raylib as a base (it’s sufficient for now, and later I might try rewriting it for Vulkan).

You can read more in repository.
At the time of this post, the library is very crude and not suitable for large projects. I only started writing in Zig in September 2026, so the code quality may be poor. In simple terms, library is in early stage of development.
I don’t plan to make this anything serious, but I do adhere to a few points:
The library provides a small set of built-in components, some of the most basic ones: Button, TextField (which still doesn’t function as expected, lol), Selection, ColumnChart, Toggler, and so on.
This library divides the entire app into several parts (model and functions: reveal, update, build, reflect), allowing for systematization of all app events and flexible interface control.
The library currently relies on Zig 0.17.0.
The library has been successfully tested on Debian Linux and Windows 11.
I’ll try to implement relative positioning, which will reduce the need to worry about setting absolute positions for each component. Naturally, over time I will add/improve the built-in components.
This post has been translated into English using Google Translate. Text was originally in Russian.
I originally made Vilinski for a game jam, but I've since expanded it with new types of fairies and blocks.
All fairy movement is based on the boids algorithm. This level, Eros and Thanatos, introduces the combination of green and crimson fairies, which can restore and destroy certain blocks.
Hi everyone, I've been working on this little game in C# and Raylib for about 9 months and finally pushed the release button on Steam last week.
It's a mixture of an incremental game and a typing game where you hack computers to fight the bad guys. It's quite short but still quite fun (1,5 to 3 hours, depending on your typing speed). If you are interested: https://store.steampowered.com/app/4622190/Hack_42_Typing_Incremental/
Kotaku featured it as the indie of the week: https://kotaku.com/hack-42-incremental-typing-game-review-indie-of-the-week-steam-pc-2000758839
Some thoughts on using Raylib and C# for this:
For the type of game I've been working on Raylib was a really good fit. It's really easy to get started, because the API is so easy to pick up. And it also covered all the needs of my game that go a bit beyond the basic usage:
Some general thoughts on programming small games without game engines:
Have a set of animation helpers to easily add juice to your game:
Also one thing to watch out for and that caught me by surprise in the last moment: Microsoft decided to block my executable shortly before the release with its "Smart App Control". There is seemingly no way to know why exactly a given executable is getting blocked. I've had to shell out about 130€ for a certificate to sign my executables (a very painful process btw).
r/raylib • u/scapaflow96 • 7d ago
Rain, snow, shine, or disappearing in a cloud of powder – the show must go on.
r/raylib • u/dispharttic • 7d ago
r/raylib • u/Responsible_Mine894 • 8d ago
Soldiers fight in impulses, try to rest up when tired, skill and weight allows pushing. Soldier might be knocked back and get up.
Still working on impacts and feel.
r/raylib • u/NazgulResebo • 8d ago
In this video, I code a Dragon Curve fractal using C and Raylib.
The approach is quite simple:
I take the last point as a pivot, then rotate the remaining points 90 degrees around it. Finally, I connect the new points to create the next iteration of the fractal.
r/raylib • u/Reasonable-Ad9130 • 8d ago
r/raylib • u/Zeta_ggwp • 8d ago
I am working on a clone of the arcade game asteroids to learn C and Raylib, but I ran into a problem. If the game is played in different screen sizes, the player can see more space and thus, asteroids might seem like they are spawning too close to them.
How would I go about making the gameplay not/less dependant on the screen size and resolution?