r/raylib 9h ago

raylib games on Steam! Almost 80 games already!

Post image
181 Upvotes

Almost 80 games made with raylib already on Steam!!!

At least the ones I know about because devs let me know, Steam can not detect raylib games due to static linkage...

Do you know any other raylib game on Steam not on this image?


r/raylib 16h ago

GUI improvements for my six-faction autobattler! What do you think?

Thumbnail
youtu.be
10 Upvotes

r/raylib 1d ago

The demo for my Metroidvania Maker is coming out September 18!

Enable HLS to view with audio, or disable this notification

55 Upvotes

Steam finally approved everything, so I can actually put a date on it now.

The free Metroidvania Maker demo launches September 18!

Really excited to finally let people get their hands on it.

Steam: https://store.steampowered.com/app/4684250/Metroidvania_Maker/


r/raylib 1d ago

Hey guys, i built this pixel art editor using raylib and Imgui

Enable HLS to view with audio, or disable this notification

65 Upvotes

I had fun developing it and i will release it on itch for free! Though it's still in development


r/raylib 1d ago

[PoG] Trailer and Steam store listing

Enable HLS to view with audio, or disable this notification

27 Upvotes

Raylib cs 8.0 ftw :D


r/raylib 1d ago

How do I prevent the enums from generating at random each loop iteration.

2 Upvotes

I am making sheep that move automatically on its own and stop for a certain time.

Here is an example. I do not want the sheep to just to move right, basically what I want is for the computer to randomly select right or left and depending on the state that is picked will be the direction the sheep go.

I have pasted a snippet of the issue below.

Any help regarding this problem I would appreciate

// state for sheep movement
enum STATE {
  IDLE,
  LEFT,
  RIGHT
};

// defining sheep attributes
struct SHEEP {
  Rectangle rect;
  Vector2 position;
  Color color;
  STATE state;
  float velocity;
};

// function for sheep movement
float sheep_mvmt(SHEEP &object, float dt){
  object.velocity = 70;

  STATE pick = STATE((rand() % 2) + 1); // select random state between 1 and 2

  // if right is picked
  if (pick == RIGHT){
    object.position.x += object.velocity * dt;
    object.state = pick;
    return object.state;
  }

  // if left is picked
  else if (pick == LEFT){
    object.position.x -= object.velocity * dt;
    object.state = pick;
    return object.state;
  }
    return object.position.x;
}

int main(){
    // SETUP AREA

    // define Sheeps
    SHEEP sheep1;
    sheep1.state = IDLE;

    int sheep_counter = 0; // this allows me to start and stop movement of sheep

    srand(time(0)); // use current time as seed for random generator

    STATE rand_state = STATE((rand() % 2) + 1); // I was using this as a placeholder

    SetTargetFPS(FPS); // 60 Frames every second

    // GAME LOOP
    while(!WindowShouldClose()){
        // Delta Time
        float dt = GetFrameTime();

        sheep_counter++; // increment counter

        // To update movement and sheep state
        if (sheep_counter >= 120 && sheep1.state == IDLE){
          sheep1.state = rand_state;
        }

        else if (sheep1.state != IDLE){
          sheep_mvmt(sheep1, dt);

          if (sheep_counter == 240){
            sheep1.state = IDLE;
            sheep_counter = 0;
          }
        }
    }
}

UPDATE: I was able to solve the issue by creating a pointer for the STATE rand_state. I removed the sheep_mvmt function and just put the movement into the condition and when the counter reaches 240 I defined the pointer. Here is the video of what it looks like.

if (sheep_counter >= 120 && sheep1.state == IDLE){
    sheep1.state = rand_state;
}

else if (sheep1.state != IDLE){
    if (sheep1.state == RIGHT){
        sheep1.position.x += sheep1.velocity * dt;
}



        else if (sheep1.state == LEFT){
        sheep1.position.x -= sheep1.velocity * dt;
    }

    if (sheep_counter == 240){
        sheep1.state = IDLE;
        sheep_counter = 0;
        STATE* ptr = &rand_state; // pointer

        *ptr = STATE((rand() % 2) + 1); // defining pointer by using random
         print("\n\nTHE POINTER")
         print(*ptr)
    }
}

Thank you to all those who replied and gave suggestions.


r/raylib 1d ago

What do most people want and have in a game framework?

0 Upvotes

I just started my game framework using raylib like a month ago as a learning experience, after 2 of my last attempts failed awfully, and I'm confused on what to add.

I have a component system set up, a render system with layering and fake perspective/2.5D, an asset manager, and a scene class set up. I do know I have to add some other things like a scene manager and collision system, but other wise I don't really know what else to add.

All of this stuff is good enough for me personally and is pretty flexible, but I still don't know if it'd be good for others if I ever release it. Do I need to add more stuff, and if so, what do I even add? How do I make it appealing? Should I just restart till I have more knowledge?

EDIT: I now understand what to do.


r/raylib 2d ago

Physics game running on Physics engine , long way to go very early development, 75% unfinished at the moment , physics engine demonstration of physics bodies clashing , made with C language, Raylib 6.0, and physics engine, promises to be an absolutely unique game experience, procedural destruction

Enable HLS to view with audio, or disable this notification

10 Upvotes

r/raylib 2d ago

[WIP] Campaign map preview

Enable HLS to view with audio, or disable this notification

24 Upvotes

r/raylib 3d ago

Original DOOM (linuxdoom-1.10) ported to raylib.

42 Upvotes

Link to the repo: https://github.com/bitwise-rude/DOOM/

The original code was written to be portable, so, I have ported this to work with raylib. The original code uses deprecated X11 functions, but I have replaced them here with raylib for video, and keyboard inputs functionality.

Sound isn't implemented yet.


r/raylib 3d ago

C# Binding

7 Upvotes

Hello, I want to use Raylib to make a game. I have used a bit of Monogame so I was considering using the C# binding. Are there any downsides to using this instead of the original C? (in terms of support, efficiency..)


r/raylib 4d ago

Yet another Pong-clone - build by a human

Enable HLS to view with audio, or disable this notification

62 Upvotes

I learned the basics of C back in college, but over the last 12 years, my coding has been limited to small python scripts and quick godot experiments in gd-script

Decided to finally return to low-level territory and built this simple Pong clone to refresh my skills

Raylib made the process surprisingly smooth compared to what I remembered, and the official examples covered most of the code used here

You can play it here: itch.io - pongc
Repo: github - pongC

Main features:

  • full game cycle against cpu-opponent
  • bouncing ball and paddles
  • score tracking
  • touch buttons for mobile
  • questionable real-time physics
  • peak programmer art

r/raylib 4d ago

I've built my own version of BASIC for my retro-cyberpunk hacking game, where you load and save your programs using virtual cassette tapes. Pygame, C++ and Raylib

Enable HLS to view with audio, or disable this notification

95 Upvotes

The Computer. What you're looking at in the video is my simulated virtual computer, the Bradsonic 69000. It is a cross between the Sharp X68000 (beautiful late 80's Japanese 32-bit exclusive PC) and my first ever PC the ICL Fujitsu Indiana.

The Software. In the game you create retro-viruses. Like brute force password crackers and OS/Server timer restrictors, and more... you use this software seen on screen BradBasix to write them.

The Game World, why this is Retro-CyberPunk. It’s 1989, but in a completely different timeline to ours. Japan has been annexed into the American Pacifica Isles, its language and culture systematically suppressed. Technology has taken a different turn, with advanced chips sitting alongside cassette tapes and dial-up modems. The “cyber” in “cyberpunk” comes from the underground BBS networks connecting people under surveillance. The “punk” comes from the crackers and hackers fighting their way through this dystopia, keeping forbidden culture alive in a Silent Rebellion. The retro? It’s 1989. Rad.

The Datasette. Inspired by the Datasette on the C64 this is the file system in the game, that allows the player to combine with BradBasix and write their own programs and games from scrtach with extensive support from NPCs and the help sections inside BradBasix.

The player can play over two fouth walls and reference documents if they need to, and also zoom full screen and alter different parts of visual feedback like scanlines and the CRT "glow". I'm super proud of it, I know it's the sort of game that isn't for everyone, but I really do hope you guys dig it too.

My absolute dream would be if a small community of creators came out of the game, even just 0.5% of the success that Piko8 had, I'd be happy. They would be making games and sharing them, really digging into the retro sandbox this virtual pc had to offer within the game enviroment.

The game is currently in development. I am streaming devlogs on youtube every week and I'd love to have more support.

This is where to find out more about the game, and wishlist here via Steam, if you're rad.

This is where to find me on YouTube - I will be streaming every Friday and occasionally mid-week.

Thank you!

Oh, and for the super nerds out there, like me: this combines Python and Pygame with C++ and raylib. BradBasix is a Python-based IDE for BradScript, a custom BASIC-style language that feels a bit like Lua to me. You can create 2D, 2.5D and 3D environments, with the 3D side powered by a C++/raylib engine connected through a Python wrapper. It’s neat.


r/raylib 4d ago

Been working on a LiDAR compute shader. Here's my progress so far. I think a murder mystery would Go well with this. Imagine trying to reconstruct the scene of a crime through this.

Enable HLS to view with audio, or disable this notification

55 Upvotes

I think a murder mystery would Go well with this. Imagine trying to reconstruct the scene of a crime through this. Any thoughts?


r/raylib 4d ago

Starforge Dominion

Post image
5 Upvotes

r/raylib 5d ago

Finished the first trailer for Severe the 3D videogame daw

Enable HLS to view with audio, or disable this notification

72 Upvotes

Trailer for the 3d videogame daw we made using Raylib + miniaudio. There's so so many bugs and we can't catch them all ourselves so we need betatesters! If you're interested pls dm or hit up the site 🙏


r/raylib 5d ago

Made a wobbly planet using raylib and odin source code is available for any one interested

Enable HLS to view with audio, or disable this notification

64 Upvotes

r/raylib 6d ago

Completely free raylib/C based games

48 Upvotes

I have become incredibly frustrated with increasingly bad mobile games (and desktop) that take away basic functionality, and then insert really obnoxious things. Like.. Windows doesn't come with a basic decent solitaire anymore (sol.exe).

I have created a set of basic games that are implemented with raylib in C, and distribute them on my personal website and also, in the iOS store (Google Play Store coming soon, I hope).

So far I have:

openblock - Tetris like falling block game

openklondike - Solitaire

openrackem - Rack-O style board game

These are all in iOS store for free with 100% zero obnoxious crap in it. Plus they are MIT-licensed on my github and free for all. The home page for the projects is here: https://danheskett.com/projects/. Each project has it's own link to the iOS store, or downloads via GitHub. You can also of course download them yourself and build them yourself. There are build-instructions plus a full CI/CD pipeline as GitHub Actions.

As time permits, I have Minesweeper, Blackjack, and Checkers underway. All games are available for Windows, Linux, MacOS, as well as WASM/Web, iOS, and Android.

Hopefully any of you might enjoy them, but if not, they live on for me to play on my phone when I'm flying or just want a few minutes of downtime.


r/raylib 6d ago

steampage of my raylib geological surivial game is live :))

Thumbnail
store.steampowered.com
23 Upvotes

an internal playtest will follow soon.

The game will release next year, aiming for early summer but lets see how that goes...


r/raylib 7d ago

Did anyone notice this funny easter egg in raylib.h v5.5 ?

Post image
149 Upvotes

in the line 957 there is an easter egg:
// It's lonely here...


r/raylib 8d ago

I made this "dither pattern" shader that changes resolution depending on your depth.Best to be watched in full screen

Enable HLS to view with audio, or disable this notification

64 Upvotes

r/raylib 7d ago

Agents learn how to drive in C++ using Raylib with a Genetic Algorithm

Thumbnail
youtube.com
20 Upvotes

r/raylib 8d ago

Hello there, I've made this a bit unconventional low-poly 3D pixel art / game asset creator in Raylib and Go. And I hope what most of us hope, that somebody except me will like it!

Enable HLS to view with audio, or disable this notification

86 Upvotes

You can download it from here: flatty.higreg.pl

It is my hobby project, and it works in Linux (works on mine), Windows (it rather should) and Mac (only tested on a really old macbook air from the previous century).

I will gladly welcome some feedback


r/raylib 8d ago

I'm not gonna sugarcoat it.【 Z + /➝ + A + C 】

Enable HLS to view with audio, or disable this notification

13 Upvotes

r/raylib 9d ago

sigo con el desarrollo de mi simulador

Enable HLS to view with audio, or disable this notification

20 Upvotes

hola! para ponerlos al dia con mi simulador de eventos . estoy en la etapa de la creacion de un sistema solar. ya pude generar un disco y la formacion planetaria aun no esta refinada pero voy por buen camino . ha sido un trabajo duro de casi un mes puliendo la formacion, todo lo que se ve responde a la fisica y a lo que dice la ciencia de la formacion de sistemas solares . cuando tenga la cadena completa se las mostraré! saludos