r/raylib 10h ago

Incremental Birds (New Game Using RayLib)

5 Upvotes

Hello

I am happy to share with you the Steam page of my new game (Incremental Birds) which is developed using RayLib.

It's an incremental game where you become the Bird Master. Capture birds, feed them, grow them, and sell them. Watch waves change over time, turning into sine patterns, spelling messages, and forming shapes. Unlock upgrades and chase an infinite balance and score.

The game is developed in 12 days which reflects RayLib productivity.

Any questions/ideas/suggestions are welcome

Thanks!


r/raylib 1d ago

[raylib-cs] formation game update

Enable HLS to view with audio, or disable this notification

65 Upvotes

Debugging meta game and designing is fun and challenging.

Added RPG elements to game such as lvls and stats, still have way more to add until done.

I added textures to my map and added terrain bonuses that tie into combat, just like in real life terrain should influence combat.

Reworked UI a bit to make it more readable and consistent after feedback i got last.

Reworked ranged to use 3d projectiles, that can even hit friendlies when not careful :)

Feedback appreciated.


r/raylib 6h ago

Any advice

Thumbnail
github.com
0 Upvotes

I am new to graphics in C, so I made this smalllllll Fibonacci sequence game.

I have a question: how did you make the background? It seems too hard to keep some circles moving...

By the way, I used ChatGPT, which generated the background.


r/raylib 10h ago

My first time with raylib

Thumbnail
github.com
1 Upvotes

Hi !

I am new to graphics in C, so I made this smalllllll Fibonacci sequence game.

I have a question: how did you make the background? It seems too hard to keep some circles moving...

By the way, I used ChatGPT, which generated the background.


r/raylib 1d ago

Some New Screenshots from my upcoming ARPG

Thumbnail
gallery
14 Upvotes

r/raylib 1d ago

another pixel miner update (need your feedback)

Enable HLS to view with audio, or disable this notification

51 Upvotes

This update might not look the most impressive visually but I rebuilt a lot of underlying systems, rewrote my asset building pipeline and implemented a 3rd party ECS library (odecs) as I found maintaining my own really slowed down the development :(

Things you CAN see are:

  • shovel animations inspired by Forager
  • the newly implemented "ambient occlusion" effect that darkens the background near walls
  • improved bloom effect for the coins in the ground and the player's headlight

It took me a while to make tool animations look decent but I think I'm fairly happy now. I have a question tho: Do you think I should amputate player's arms?
Currently they swing around when walking with shovel which doesn't make sense given they should be holding it. In Forager the player character doesn't have arms so it's not a problem. Do you think I should keep or remove them? Does it bother you that hands don't hold the tool?


r/raylib 1d ago

Should I avoid passing the entire game state to each function?

11 Upvotes

Just started learning raylib. The project is starting to grow quite a bit in size.

Currently I have a global game state that I create in the main function. Inside this game state, I have all the game components that gets passed around to each system to apply the game logic.

However since most systems require multiple components I end up just passing in the entire game state.

Is this an anti pattern? How should I better structure my game logic so it scales as the game grows ?


r/raylib 1d ago

RaylibMedia_CS - A C# wrapper around the native raylib-media decoder (BETA)

3 Upvotes

Hey Game-Makers.

C# programmer here. I've always liked tools such as raylib. And apart from programming general software, I'm heavily interested in game development.

Unfortunately for raylib, most of the examples and documentation are in C, not C#. So, I was having terrible difficulty trying to find ways to play media for a raylib project I was working on.

I stumbled across a genius github: https://github.com/cloudofoz/raylib-media/tree/main and decided this was what I needed. It provided exactly the native FFmpeg-backed media functionality I needed, but there wasn’t an equivalent C# API for Raylib-cs.

However, the source files were massive, and I needed a way to translate them into C#. Instead of sacrificing the tattered remains of my mental health and doing it manually, I spun up AI (I know, I know, but it does some things very very well and a 1000 times faster than I can) and together we created a C# wrapper. I've used it in my own project and I was over the moon when it just worked.

So, here is my beta version of a C# wrapper for media handling in raylib - https://github.com/Patches108/RaylibMedia_CS

The repository includes the managed C# wrapper, the Windows x64 native runtime, examples, tests, and detailed setup instructions. C make files are included to get low level and rebuild the decoder for when dependency libraries change and whatnot.

But I recommend getting it from my NuGet instead: https://www.nuget.org/packages/RaylibMedia.CS/0.1.0-beta.1

It currently supports:

  • Video and audio playback
  • Playback, pause, stop, seeking, and looping
  • Loading media from file paths, URLs, and managed streams
  • Normal Raylib-cs textures and audio streams
  • Windows x64
  • .NET 8 or newer
  • Raylib-cs 8.0.0

This is an early beta, so feedback and testing would be greatly appreciated. If you encounter a problem, please open a GitHub issue and include your Windows version, .NET version, and any relevant error output.

Happy coding!


r/raylib 2d ago

Announcing my sokoban inspired puzzle game built with Raylib in C++

Enable HLS to view with audio, or disable this notification

44 Upvotes

Finally, after a much longer than I thought it would take, I can finally announce my Sokoban inspired puzzle game, Portalis! Written in C++ and Raylib.

If you're interested you can check it out here: https://store.steampowered.com/app/4877050/Portalis/

Happy to answer any questions about the development and whatnot.


r/raylib 3d ago

Is Raylib suitable for a serious engine?

61 Upvotes

Good morning, thanks for taking the time to read this.

I'd like to create a video game for fun, but I don't like the idea of ​​using an engine like Godot. I think it would be interesting to write many parts from scratch.

There are many frameworks/libraries like Monogame, Love2d, and Raylib.

Of all of them, Raylib is the one I'm most attracted to, especially for its dependency-free policy, the various bindings, and the very active community.

However, I've seen that fewer games on Steam were created with Raylib than Monogame.

Is this because Raylib has some flaws or limitations?

I'd love to hear the pros and cons, if there are any.


r/raylib 3d ago

Making a multiplayer game about kids!

Enable HLS to view with audio, or disable this notification

85 Upvotes

I've been making this little game in Odin and Raylib for quite some time already. It is a multiplayer game about kids and doing nothing. There is no "gameplay", you are just hanging around and talk with people.

I'll open the repo to public at some point (including the Blender files).

For networking i'm using ENet - a nice library for reliable UDP packets.

Hope you'll like it, thanks!


r/raylib 3d ago

IsKeyDown not working?

3 Upvotes

I try compiling and running one of the examples (https://www.raylib.com/examples/core/loader.html?name=core_input_keys) and it seems that IsKeyDown is not working. I have the same issue in one I modified myself to add IsKeyDown checks to move a rectangle. Any idea what could be wrong?


r/raylib 3d ago

Took me 6h to make this Paint app (named it Paxx lol), 1000 Lines of code in C

Post image
31 Upvotes

I challanged my self to make this drawing app since i ve been using kolour paint, and i always felt like it was slow for me, and the canvas is small. so i developed my own.

Github: https://github.com/Kapa9102/Paxx-


r/raylib 3d ago

2.5D rts update

Enable HLS to view with audio, or disable this notification

62 Upvotes

Reworked ui, started to add more meat on meta game and combat resolution. also added 3d environment placeholder with camera that can be turned now. Honest feedback appreciated, i am conflicted about blinking damage indicators don't know if they are a good idea.


r/raylib 5d ago

Lightweight (>1.5MB) and feature rich GPU-accelerated paint app in C++

Enable HLS to view with audio, or disable this notification

130 Upvotes

More info in comment below


r/raylib 5d ago

Made a small raylib tool for trying out procedural textures faster

48 Upvotes

I’ve been experimenting with procedural textures and turned it into a small tool for trying out different materials more quickly.

It’s still rough and works best for stylized, noisy and glitchy textures. I called it SimuPixel. there’s a free demo here if anyone wants to try it:

https://simuflux.itch.io/simupixel-instant-lo-fi-pbr-textures

Does this look like something other people might find useful?


r/raylib 5d ago

Published game with Raylib

11 Upvotes

Anyone here has coded and published a game (on Steam or elsewhere) in C/C++ with Raylib? I'm curious to see what you made!


r/raylib 5d ago

Tower building sandbox with glTF export (on web)

Thumbnail
tarmo888.itch.io
3 Upvotes

r/raylib 5d ago

(help) unsure why line origin isn't lined up with the center

1 Upvotes

why doesn't the line origin appear at 0,0 for me? instead the middle point of the line is in the center as far as i can see

#include <stdio.h>

#include "raylib.h"

#include "math.h"

#define WINDOW_WIDTH 800

#define WINDOW_HEIGHT 600

#define Vector2Zero (Vector2){0,0}

#define Vector2Right (Vector2){1,0}

#define Vector2Left (Vector2){-1,0}

Vector2 normalize(Vector2 src) {

float mag = sqrtf(src.x*src.x + src.y*src.y);

return (Vector2){

src.x / mag,

src.y / mag

};

}

// [UNUSED] converts set of coords to worlspace where 0,0 is the origin

// Vector2 toWorld(Vector2 src) {

// return (Vector2) {

// src.x + WINDOW_WIDTH / 2.0f,

// src.y + WINDOW_HEIGHT / 2.0f

// };

// }

int main() {

float scalar = 8;

Vector2 pos = {4*scalar, 2*scalar};

Vector2 normalized = normalize(pos);

InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "trigon");

Camera2D camera = { 0 };

camera.target= (Vector2){0,0};

camera.offset = (Vector2){WINDOW_WIDTH / 2.0f ,WINDOW_HEIGHT / 2.0f};

camera.rotation = 0.0f;

camera.zoom = 1.0f;

if (IsWindowState(FLAG_WINDOW_RESIZABLE)) ClearWindowState(FLAG_WINDOW_RESIZABLE);

while(!WindowShouldClose()) {

BeginDrawing();

BeginMode2D(camera);

ClearBackground(BLACK);

DrawLineEx((Vector2){0,0}, (Vector2){0,1}, 60.0f, WHITE);

EndMode2D();

EndDrawing();

}

printf("x: %f, y: %f", normalized.x, normalized.y);

}

have i done something wrong? cause i do not see it


r/raylib 6d ago

Minimal Tetris implementation in C and Raylib.

Enable HLS to view with audio, or disable this notification

300 Upvotes

r/raylib 6d ago

Scaling in fullscreen

2 Upvotes

It seems that when I call ToggleFullscreen(), it makes the resolution the full resolution of my computer instead of scaling the resolution I set when calling InitWindow() to the size of the full screen. Is there a way to change this? If I was making a game I probably wouldn't want a 3840x2160 resolution as I would most likely be using 2D pixel graphics.


r/raylib 6d ago

Conflict 3049 - Last Stand RTS Scenario Game. I created this as a hobby project to learn Raylib from January 2025, and have continued working on it some more.

Enable HLS to view with audio, or disable this notification

72 Upvotes

Game Link: https://matty77.itch.io/conflict-3049

I made this as a hobby project and started it in January last year (2025) to learn the Raylib library.

The game is a form of RTS, a set of last stand scenarios. The object of the game is to survive as long as you can while waves of enemies pour on from the edge of the map.

The base is prebuilt although in some scenarios the layout is different. You build infantry, tanks and robots and other defenses to attempt to stop the invaders from destroying your base.

Eventually I will upgrade the UI and the audio, when I can afford to.

The assets are mostly purchased from stock asset sites like 3drt.com and the itch.io asset store.

There is some AI audio in the game, but most of the game is either created by myself or purchased from various stock asset sites over the years.

The download includes source code and shader source code.


r/raylib 7d ago

First C and raylib project

Thumbnail
github.com
3 Upvotes

r/raylib 7d ago

Learning C alongside raylib

13 Upvotes

Hi, so I decided to learn C at the same time as raylib (like a lot of people here apparently) but I can't find good tutorials that aren't cpp tutorials... I know that most cpp tutorials work in c, but I would highly prefer a c tutorial. Is there any good ones ?


r/raylib 8d ago

Raylib-cs foramtion combat game, new look

Enable HLS to view with audio, or disable this notification

85 Upvotes

Worked on switching to 3d models for 2.5D feel and also animations, i think it looks better when compared to previous 3d to 2d sprite models and game feels a bit more lively.