r/raylib • • Apr 21 '26

Raylib project: PixelClaw, an LLM agent for image processing

5 Upvotes

I'm developing PixelClaw, an LLM-based agentic AI for manipulating images. It combines:

  • an LLM for conversation, planning, and tool use (supports a variety of LLMs)

  • image generation/AI-based editing via gpt-image

  • background removal via rembg (several specialized models available)

  • pixelization using pyxelate

  • posterization and defringing using custom algorithms

  • speech-to-text (Whisper) and text-to-speech (Kokoro plus HALO)

  • a nice UI based on Raylib, including file drag-and-drop

It's all cross-platform (Mac/Win/Linux), which Raylib makes beautifully easy. I'm so glad I discovered Raylib!

You can browse the code and a second demo video at https://github.com/JoeStrout/PixelClaw/ . If you find it interesting, please click the star ⭐️ at the top of the page; that helps me gauge interest. Thanks!


r/raylib • • Jul 14 '26

My month progress on a custom 2D survival game built from scratch in C++ and Raylib - Ashcore.

0 Upvotes

Hey everyone!

After taking a short break to recharge, I’m back with a huge update for my open-source top-down survival game, **Ashcore**, built in pure C++ and Raylib!

In the previous versions, it was mostly a sandbox prototype where you could run around and gather resources (including gold ore!). But with the new **v0.4.0-alpha** release, the game finally has a complete, playable core loop!

### 🌟 What's new in v0.4.0:

* **Living AI Mobs & Combat 👾:** The world is no longer empty. Mobs now spawn, track you down, and attack. You can fight back, kill them, or... get killed.

* **The Core Loop & Death Screen 💀:** If your HP hits zero, you get a clean death screen that redirects you back to the main menu, which dynamically regenerates a fresh world for your next run.

* **Interactive Main Menu 🖥️:** Added a basic title screen with a "Play" button to handle game state transitions smoothly.

* **Overhauled Inventory UI 🎒:** Redesigned the inventory backend and UI into clear item grids showing resource counts. Also, moved the crafting menu to the classic **[E]** key for a much better survival feel.

* **Clean Code & Polish 🧹:** Lots of under-the-hood optimization, physics boundary fixes (predictive collision engine instead of glitchy teleports), and rendering adjustments in C++.

### 🛠️ Roadmap:

Now that the core loop is closed, I'm planning to work on:

* New ores/tools (diamond and emerald)

* armour and weapons

* better world generation

I'd love to hear your feedback on the gameplay, visuals, or code!

My links if you want to follow the journey 

Discord: u/maximusd15 

GitHub: https://github.com/maximusD15

Thanks for checking it out! 🚀


r/raylib • • Jul 10 '26

Why are you using c/c++?

0 Upvotes

I get confused as to why people tend to choose c or c++ for raylib games. I've tried c++ and I find it a little annoying, mainly because everything needs a header file. I personally use and enjoy c sharp, but I want to know why people still choose c/c++ when there are higher languages that do the memory management and garbage collection for you.


r/raylib • • Oct 01 '24

Just out of curiosity, will Raylib work with a C/C++ compiler for Android?

Post image
0 Upvotes

r/raylib • • Aug 14 '24

I want make GTA in raylib

2 Upvotes

Hi i want try to make a game in GTA style like the 1 and the 2 with raylib and c++, but the only the thing i scare Is how handle a open world map whit raylib library, do you think could be possibile?


r/raylib • • Aug 12 '25

For the love of god, how the hell do you use raylib with CLion?

0 Upvotes

I've never had this much difficulty installing anything in my life. I have tried every single CMakeLists I can find. I've used vcpkg. Absolutely nothing works at all.

Clion 2025.2. Raylib 5.5. Windows 10. Raylib is installed in C:\raylib.


r/raylib • • Mar 26 '26

Is there way to improve performance of raylib?

2 Upvotes

I'm want to make simple program using raylib but it looks like it uses a lot of unnecessary resources. I wrote code which shows only white window with target FPS = 1 and used time command on Linux, I got

real	0m31,241s
user	0m0,395s
sys	    0m1,390s

With just 1 FPS raylib spent 5,7% of time using CPU. For comparison testing basic window using XForms toolkit I got

real	0m32,039s
user	0m0,061s
sys	    0m0,050s

That is significantly better, I know raylib is using while loop for rendering and XForms doesn't but I feel like there could be some kind of improvement.

EDIT: With some experimentation I get better result when I use nanosleep in while loop. For target of 60fps nanosleep used much less CPU time (4,2% of wall time) than SetTargetFPS (8,3%). For smaller FPS also nanosleep used about half of what SetTargetFPS uses. Not sure if it matters but proportions are switched, SetTargetFPS takes more sys time than user time and nanosleep takes more user time than sys time.

But using nanosecond isn't exactly as stable and precise since there are some calculations that need to be done after frame itself finished rendering. GetFPS flicks between 60 and 59 fps


r/raylib • • Sep 11 '26

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

23 Upvotes

r/raylib • • Aug 16 '26

Minecraft clone. No cubes are drawn only models and I added a render distance yet it still lags. Why?

1 Upvotes

MAIN python file

#Recreating Minecraft in Raylib part 2: Indev
#To Do:
#1D A chunk and block class - Easy although I fear it lags my game
#2D 2d stuff like hearts, inventory - Hearts cube was fine but
#3D Better placing and destroying physics - Used screen center rather than where the player mouse was
#4D Jumping/Gravity - Forgot to set gravity to the oppposite of its power. Kept setting it to 0 and the player would just slow down rather than fall
#5 Collison with blocks
#6D Make multiple chunks
#7D Improve preformance with meshes and instances (fking what?) - We added the set config flags line we guchi for bow
#8 Day night cycle - More annoying than I could ever imagine
#9D Leaves - Not too hard just annoying didnt make too many either.
# Link to making a 3d texture atlas good luck bro https://www.raylib.com/examples/shaders/loader.html?name=shaders_texture_tiling

import pyray as pr
import math
import random
import asyncio
import Block
import Chunk
#Mixer
import pygame as pg
pg.init()
pg.mixer.init()

async def main():
pr.set_config_flags(pr.FLAG_VSYNC_HINT)

pr.init_window(800, 600, "Minecraft 0.2")
pr.disable_cursor()
pr.init_audio_device()

#Camera
camera = pr.Camera3D((4, 3, 4), (1, 0.5, 1), (0, 1, 0), 100, pr.CAMERA_PERSPECTIVE)
cameraMode = pr.CAMERA_FIRST_PERSON
#DayNight cycle
day_night = "nan"
sky_cycle_add_inc = 200
sky_cycle_cc = 0
day_night_level = 0.0
#Player
player = pr.Vector3(camera.position.x, camera.position.y, camera.position.z)
# model
player_size = pr.Vector3(0.5, 3, 0.5)
player_mesh = pr.gen_mesh_cube(1.0, 4.0, 1.0)
player_model = pr.load_model_from_mesh(player_mesh)
player_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].color = pr.BLUE
# gravity
gravity = 0
grav_vel = 0.05
jumpH = 2
#UI
# Hearts
hearts = []
heart_x = 100
# make hearts
for i in range(10):
new_heart = pr.Rectangle(heart_x, pr.get_screen_height() - 140, 30, 30)
heart_x += 35
hearts.append(new_heart)
# Inventory
inventory = []
inventory_x = 100
for i in range(10):
new_i = pr.Rectangle(inventory_x, pr.get_screen_height() - 100, 60, 60)
inventory_x += 60
inventory.append(new_i)
#World
world_size = 3
# Chunks
chunks = []
chunk_x = 1
chunk_z = 1
chunk_size = 16
# Blocks
blocks = []
block_size = pr.Vector3(1, 1, 1)
# make chunks
for z in range(world_size):
for x in range(world_size):
new_chunk = Chunk.chunk(chunk_x, 1, chunk_z, chunk_size, blocks, block_size)
chunks.append(new_chunk)
chunk_x += chunk_size
chunk_x = 1
chunk_z += chunk_size

#Textures
# Atlas
#atlas_texture = pr.Texture2D(pr.load_texture("Assets/Images/textures/texture_atlas.png"))
# Grass texture
grass_mesh = pr.gen_mesh_cube(1, 1, 1)
grass_model = pr.load_model_from_mesh(grass_mesh)
grass_texture = pr.load_texture("Assets/Images/textures/grass_tex.jpeg")
grass_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = grass_texture
# Stone texture
stone_mesh = pr.gen_mesh_cube(1, 1, 1)
stone_model = pr.load_model_from_mesh(stone_mesh)
stone_texture = pr.load_texture("Assets/Images/textures/stone_tex.png")
stone_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = stone_texture
# Wood texture
wood_mesh = pr.gen_mesh_cube(1, 1, 1)
wood_model = pr.load_model_from_mesh(wood_mesh)
wood_texture = pr.load_texture("Assets/Images/textures/wood_tex.jpeg")
wood_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = wood_texture
# Leaves texture
leaves_mesh = pr.gen_mesh_cube(1, 1, 1)
leaves_model = pr.load_model_from_mesh(leaves_mesh)
leaves_texture = pr.load_texture("Assets/Images/textures/leaves_tex.png")
leaves_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = leaves_texture
# Planks texture
plank_mesh = pr.gen_mesh_cube(1, 1, 1)
plank_model = pr.load_model_from_mesh(plank_mesh)
plank_texture = pr.load_texture("Assets/Images/textures/plank_tex.png")
plank_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = plank_texture
# Water texture
water_mesh = pr.gen_mesh_cube(1, 1, 1)
water_model = pr.load_model_from_mesh(water_mesh)
water_texture = pr.load_texture("Assets/Images/textures/water_tex.jpeg")
water_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = water_texture
# Heart
"""heart_image = pr.Image(pr.load_image("Assets/Images/heart_tex.png"))
heart_texture = pr.Texture2D(pr.load_texture_from_image(heart_image))"""

while not pr.window_should_close():
pr.update_camera(camera, cameraMode)
#Interact with blocks
screenCenter = pr.Vector2(float(pr.get_screen_width()/2), float(pr.get_screen_height()/2))
ray = pr.get_screen_to_world_ray(screenCenter, camera)
for block in blocks:
# bounding box for collison
block_box = pr.BoundingBox(pr.Vector3(block.x - block_size.x/2, block.y - block_size.y/2, block.z - block_size.z/2),
pr.Vector3(block.x + block_size.x/2, block.y + block_size.y/2, block.z + block_size.z/2))
mouse_ray_collison = pr.get_ray_collision_box(ray, block_box)
#Interacting with block
# mouse looking at block
if (mouse_ray_collison.hit):
# delete block
if (pr.is_mouse_button_pressed(pr.MOUSE_BUTTON_LEFT)):
blocks.remove(block)
# new block
if (pr.is_mouse_button_pressed(pr.MOUSE_BUTTON_RIGHT)):
new_block = Block.block(block.x, block.y + 1, block.z, block_size, "plank")
blocks.append(new_block)

pr.begin_drawing()
pr.clear_background(pr.SKYBLUE)
#Draw
#3D stuff
pr.begin_mode_3d(camera)

#Player
# draw
player = pr.Vector3(camera.position.x, camera.position.y, camera.position.z)
# gravity
gravity += grav_vel
camera.position.y -= gravity
camera.target.y -= gravity
# reset position
if (pr.is_key_pressed(pr.KEY_R)):
camera.position = pr.Vector3( 4, 4, 4)
gravity = -grav_vel
#Blocks
for block in blocks:
# Player collison
if pr.check_collision_boxes(pr.BoundingBox(pr.Vector3(player.x - player_size.x/2, player.y - player_size.y/2, player.z - player_size.z),
pr.Vector3(player.x + player_size.x/2, player.y + player_size.y/2, player.z + player_size.z/2)),
pr.BoundingBox(pr.Vector3(block.x - block_size.x/2, block.y - block_size.y/2, block.z - block_size.z/2),
pr.Vector3(block.x + block_size.x/2, block.y + block_size.y/2, block.z + block_size.z/2))):
# execption
if (block.type != "water"):
gravity = -grav_vel
if (pr.is_key_pressed(pr.KEY_SPACE)):
gravity -= jumpH

#Draw chunks
for chunk in chunks:
chunk.draw(camera, grass_model, stone_model, wood_model, leaves_model, plank_model, water_model)

#Draw player
#pr.draw_cube(player, player_size.x, player_size.y, player_size.z, pr.BLUE)
pr.draw_model(player_model, pr.Vector3(camera.position.x, camera.position.y, camera.position.z) , 1, pr.WHITE)

pr.end_mode_3d()

#2D stuff
#Day night cycle
if (day_night == "day"):
sky_cycle_cc += 1
if (sky_cycle_cc >= sky_cycle_add_inc):
day_night_level += 0.1
sky_cycle_cc = 0
if (day_night_level == 0.5):
day_night == "night"
if (day_night == "night"):
sky_cycle_cc += 1
if (sky_cycle_cc >= sky_cycle_add_inc):
day_night_level -= 0.1
sky_cycle_cc = 0
if (day_night_level == 0.0):
day_night == "day"
pr.draw_rectangle(0, 0, pr.get_screen_width(), pr.get_render_height(), pr.fade(pr.BLACK, day_night_level))
#UI
# Crosshair
pr.draw_rectangle(int(pr.get_screen_width()/2), int(pr.get_screen_height()/2), 2, 10, pr.WHITE)
pr.draw_rectangle(int(pr.get_screen_width()/2) - 4, int(pr.get_screen_height()/2) + 4, 10, 2, pr.WHITE)
# Hearts
for ht in hearts:
pr.draw_rectangle(int(ht.x), int(ht.y), int(ht.width), int(ht.height), pr.RED)
#pr.draw_texture(heart_texture, int(ht.x), int(ht.y), pr.WHITE)
# Inventory
for iv in inventory:
pr.draw_rectangle_lines_ex(pr.Rectangle(int(iv.x), int(iv.y), int(iv.width), int(iv.height)), 8.0, pr.GRAY)

# Numbers
pr.draw_fps(10, 10)

pr.end_drawing()
await asyncio.sleep(0)

#Exit game
else:
pr.unload_model(grass_model)
pr.unload_model(stone_model)
pr.unload_model(wood_model)
pr.unload_model(leaves_model)
pr.unload_model(plank_model)
pr.unload_model(water_model)
#pr.unload_texture(heart_texture)
# Reset window if fullscreen
if (pr.is_window_fullscreen()):
pr.toggle_fullscreen() # Exit fullscreen
pr.set_window_size(1920, 1080); # Reset to desired default resolution

pr.close_window()

asyncio.run(main())#Recreating Minecraft in Raylib part 2: Indev
#To Do:
#1D A chunk and block class - Easy although I fear it lags my game
#2D 2d stuff like hearts, inventory - Hearts cube was fine but
#3D Better placing and destroying physics - Used screen center rather than where the player mouse was
#4D Jumping/Gravity - Forgot to set gravity to the oppposite of its power. Kept setting it to 0 and the player would just slow down rather than fall
#5 Collison with blocks
#6D Make multiple chunks
#7D Improve preformance with meshes and instances (fking what?) - We added the set config flags line we guchi for bow
#8 Day night cycle - More annoying than I could ever imagine
#9D Leaves - Not too hard just annoying didnt make too many either.
# Link to making a 3d texture atlas good luck bro https://www.raylib.com/examples/shaders/loader.html?name=shaders_texture_tiling

import pyray as pr
import math
import random
import asyncio
import Block
import Chunk
#Mixer
import pygame as pg
pg.init()
pg.mixer.init()

async def main():
pr.set_config_flags(pr.FLAG_VSYNC_HINT)

pr.init_window(800, 600, "Minecraft 0.2")
pr.disable_cursor()
pr.init_audio_device()

#Camera
camera = pr.Camera3D((4, 3, 4), (1, 0.5, 1), (0, 1, 0), 100, pr.CAMERA_PERSPECTIVE)
cameraMode = pr.CAMERA_FIRST_PERSON
#DayNight cycle
day_night = "nan"
sky_cycle_add_inc = 200
sky_cycle_cc = 0
day_night_level = 0.0
#Player
player = pr.Vector3(camera.position.x, camera.position.y, camera.position.z)
# model
player_size = pr.Vector3(0.5, 3, 0.5)
player_mesh = pr.gen_mesh_cube(1.0, 4.0, 1.0)
player_model = pr.load_model_from_mesh(player_mesh)
player_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].color = pr.BLUE
# gravity
gravity = 0
grav_vel = 0.05
jumpH = 2
#UI
# Hearts
hearts = []
heart_x = 100
# make hearts
for i in range(10):
new_heart = pr.Rectangle(heart_x, pr.get_screen_height() - 140, 30, 30)
heart_x += 35
hearts.append(new_heart)
# Inventory
inventory = []
inventory_x = 100
for i in range(10):
new_i = pr.Rectangle(inventory_x, pr.get_screen_height() - 100, 60, 60)
inventory_x += 60
inventory.append(new_i)
#World
world_size = 3
# Chunks
chunks = []
chunk_x = 1
chunk_z = 1
chunk_size = 16
# Blocks
blocks = []
block_size = pr.Vector3(1, 1, 1)
# make chunks
for z in range(world_size):
for x in range(world_size):
new_chunk = Chunk.chunk(chunk_x, 1, chunk_z, chunk_size, blocks, block_size)
chunks.append(new_chunk)
chunk_x += chunk_size
chunk_x = 1
chunk_z += chunk_size

#Textures
# Atlas
#atlas_texture = pr.Texture2D(pr.load_texture("Assets/Images/textures/texture_atlas.png"))
# Grass texture
grass_mesh = pr.gen_mesh_cube(1, 1, 1)
grass_model = pr.load_model_from_mesh(grass_mesh)
grass_texture = pr.load_texture("Assets/Images/textures/grass_tex.jpeg")
grass_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = grass_texture
# Stone texture
stone_mesh = pr.gen_mesh_cube(1, 1, 1)
stone_model = pr.load_model_from_mesh(stone_mesh)
stone_texture = pr.load_texture("Assets/Images/textures/stone_tex.png")
stone_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = stone_texture
# Wood texture
wood_mesh = pr.gen_mesh_cube(1, 1, 1)
wood_model = pr.load_model_from_mesh(wood_mesh)
wood_texture = pr.load_texture("Assets/Images/textures/wood_tex.jpeg")
wood_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = wood_texture
# Leaves texture
leaves_mesh = pr.gen_mesh_cube(1, 1, 1)
leaves_model = pr.load_model_from_mesh(leaves_mesh)
leaves_texture = pr.load_texture("Assets/Images/textures/leaves_tex.png")
leaves_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = leaves_texture
# Planks texture
plank_mesh = pr.gen_mesh_cube(1, 1, 1)
plank_model = pr.load_model_from_mesh(plank_mesh)
plank_texture = pr.load_texture("Assets/Images/textures/plank_tex.png")
plank_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = plank_texture
# Water texture
water_mesh = pr.gen_mesh_cube(1, 1, 1)
water_model = pr.load_model_from_mesh(water_mesh)
water_texture = pr.load_texture("Assets/Images/textures/water_tex.jpeg")
water_model.materials[0].maps[pr.MATERIAL_MAP_DIFFUSE].texture = water_texture
# Heart
"""heart_image = pr.Image(pr.load_image("Assets/Images/heart_tex.png"))
heart_texture = pr.Texture2D(pr.load_texture_from_image(heart_image))"""

while not pr.window_should_close():
pr.update_camera(camera, cameraMode)
#Interact with blocks
screenCenter = pr.Vector2(float(pr.get_screen_width()/2), float(pr.get_screen_height()/2))
ray = pr.get_screen_to_world_ray(screenCenter, camera)
for block in blocks:
# bounding box for collison
block_box = pr.BoundingBox(pr.Vector3(block.x - block_size.x/2, block.y - block_size.y/2, block.z - block_size.z/2),
pr.Vector3(block.x + block_size.x/2, block.y + block_size.y/2, block.z + block_size.z/2))
mouse_ray_collison = pr.get_ray_collision_box(ray, block_box)
#Interacting with block
# mouse looking at block
if (mouse_ray_collison.hit):
# delete block
if (pr.is_mouse_button_pressed(pr.MOUSE_BUTTON_LEFT)):
blocks.remove(block)
# new block
if (pr.is_mouse_button_pressed(pr.MOUSE_BUTTON_RIGHT)):
new_block = Block.block(block.x, block.y + 1, block.z, block_size, "plank")
blocks.append(new_block)

pr.begin_drawing()
pr.clear_background(pr.SKYBLUE)
#Draw
#3D stuff
pr.begin_mode_3d(camera)

#Player
# draw
player = pr.Vector3(camera.position.x, camera.position.y, camera.position.z)
# gravity
gravity += grav_vel
camera.position.y -= gravity
camera.target.y -= gravity
# reset position
if (pr.is_key_pressed(pr.KEY_R)):
camera.position = pr.Vector3( 4, 4, 4)
gravity = -grav_vel
#Blocks
for block in blocks:
# Player collison
if pr.check_collision_boxes(pr.BoundingBox(pr.Vector3(player.x - player_size.x/2, player.y - player_size.y/2, player.z - player_size.z),
pr.Vector3(player.x + player_size.x/2, player.y + player_size.y/2, player.z + player_size.z/2)),
pr.BoundingBox(pr.Vector3(block.x - block_size.x/2, block.y - block_size.y/2, block.z - block_size.z/2),
pr.Vector3(block.x + block_size.x/2, block.y + block_size.y/2, block.z + block_size.z/2))):
# execption
if (block.type != "water"):
gravity = -grav_vel
if (pr.is_key_pressed(pr.KEY_SPACE)):
gravity -= jumpH

#Draw chunks
for chunk in chunks:
chunk.draw(camera, grass_model, stone_model, wood_model, leaves_model, plank_model, water_model)

#Draw player
#pr.draw_cube(player, player_size.x, player_size.y, player_size.z, pr.BLUE)
pr.draw_model(player_model, pr.Vector3(camera.position.x, camera.position.y, camera.position.z) , 1, pr.WHITE)

pr.end_mode_3d()

#2D stuff
#Day night cycle
if (day_night == "day"):
sky_cycle_cc += 1
if (sky_cycle_cc >= sky_cycle_add_inc):
day_night_level += 0.1
sky_cycle_cc = 0
if (day_night_level == 0.5):
day_night == "night"
if (day_night == "night"):
sky_cycle_cc += 1
if (sky_cycle_cc >= sky_cycle_add_inc):
day_night_level -= 0.1
sky_cycle_cc = 0
if (day_night_level == 0.0):
day_night == "day"
pr.draw_rectangle(0, 0, pr.get_screen_width(), pr.get_render_height(), pr.fade(pr.BLACK, day_night_level))
#UI
# Crosshair
pr.draw_rectangle(int(pr.get_screen_width()/2), int(pr.get_screen_height()/2), 2, 10, pr.WHITE)
pr.draw_rectangle(int(pr.get_screen_width()/2) - 4, int(pr.get_screen_height()/2) + 4, 10, 2, pr.WHITE)
# Hearts
for ht in hearts:
pr.draw_rectangle(int(ht.x), int(ht.y), int(ht.width), int(ht.height), pr.RED)
#pr.draw_texture(heart_texture, int(ht.x), int(ht.y), pr.WHITE)
# Inventory
for iv in inventory:
pr.draw_rectangle_lines_ex(pr.Rectangle(int(iv.x), int(iv.y), int(iv.width), int(iv.height)), 8.0, pr.GRAY)

# Numbers
pr.draw_fps(10, 10)

pr.end_drawing()
await asyncio.sleep(0)

#Exit game
else:
pr.unload_model(grass_model)
pr.unload_model(stone_model)
pr.unload_model(wood_model)
pr.unload_model(leaves_model)
pr.unload_model(plank_model)
pr.unload_model(water_model)
#pr.unload_texture(heart_texture)
# Reset window if fullscreen
if (pr.is_window_fullscreen()):
pr.toggle_fullscreen() # Exit fullscreen
pr.set_window_size(1920, 1080); # Reset to desired default resolution

pr.close_window()

asyncio.run(main())


r/raylib • • Jan 13 '26

Procedurally Generated Pixel Art Game I Vibe Coded in a Few Hours

0 Upvotes

r/raylib • • Jun 20 '21

Can You Create a Cerberusx game engine version of Raylib??

1 Upvotes

Can You Create a Cerberusx game engine version of Raylib?? Thanks a lot in advance..Lestroso

https://www.cerberus-x.com/community/index.php


r/raylib • • Aug 23 '22

raylib for android

0 Upvotes

Hello, for a while now I've wanted to make a raylib alternative for android(as I code on my android phone). yesterday I asked the github subreddit how I should start they all said a variation of "android isn't for coding/for android"(or at least what I picked up), so now that github isn't an option what shall I do to start replicating taylib for an android device.

Ty in advance


r/raylib • • Feb 15 '24

Warning to all users who need windows networking support: Do not use raylib under any circumstances

0 Upvotes

https://github.com/raysan5/raylib/issues/1217

Raylib does not build on windows if you include WinSock2 (which is required for networking functionality). The proposed solutions in the thread do not work, as noted by many throughout the thread.

The author has stated he has no plans to rename the colliding symbols or provide another fix.

I have to remake my entire game in SDL now.

Forewarned is forearmed.


r/raylib • • Feb 07 '24

Is it just me or is raylib way too overcomplicated to just compile and get up and running (outside of notepad++)?

7 Upvotes

I haven't used raylib in a while, and just came back to it today because I have got back into C recently and wanted to just make a small game and play around. I've spent like 2 hours trying to figure out how to get it working with any text editor, and I just can't. Notepad++ works fine, and the F6 build works fine, but I'm having a horrible time trying to get it to work outside of that, and it's put me in a really bad mood, makes me not want to do any programming at all tonight. I've scoured the wiki trying to find how to do it properly, and it feels like all of the instructions are jumbled up and pieces are missing. It'll tell you how to do one thing (build raylib and examples), but then it won't actually tell you how to use the library in your own projects. It just says "download premake", or "download this template". I even followed the premake guide, and it just didn't work, and besides, what if you don't want to use a template? I just want to create a .c file in a folder anywhere on my computer, and just run the compiler, and pass whatever linker args I need to pass. I don't want to have to deal with all of this extra stuff. There's no instructions for doing this as far as I can tell.

In my opinion, if raylib is going for simplicity, it should tell how to use it in the most simplest way, all of the customization should come later. I feel like the current instructions seem to tell you how to do everything but get it working. The "Working on windows" page seems to just tell you how to build raylib and the examples, but nothing about actually "working" on your own projects, in your own text editor. Knowing how to build the examples doesn't help me at all whenever I want to make my own project in a different directory.

The only remotely helpful thing is right at the bottom of the "working on windows" page, where it mentions that to build an example using gcc, you can use gcc core_basic_window.c -lraylib -lopengl32 -lgdi32 -lwinmm. But again, this doesn't work correctly unless you're using the specific mingw exe that they provide. And it also doesn't make it seem like you can use that for just building any project, because it's specifically titled "Building the examples". It just feels like there's so much missing there, and it's frustrating considering this is meant to be a simple to use and learn library. And it's not like I can't figure it out. I can find tutorials for doing all of this if I search, but it's just so frustrating when you're trying to get up and running quickly and have to go through tutorial videos because the documentation just doesn't give you the info that you want.

I also had this problem recently with a separate program. It just didn't give much info at all about how to install it (this one was on linux). It told you how to decompress it using tar, but then completely missed the part for where you should install it, and how to set it up so it's on the PATH so you can access it anywhere. Those are the important parts, not the tar command! And then you try to google and you get a bunch of random answers mixed with crappy ad-infested blog posts.

It's just annoying having to google a load of things or watch a video tutorial because something that should be easy wasn't explained. Sorry if this comes across as a rant, I do like the library (once it's set up properly) it's just really put me in a bad mood when I was looking forward to using it and getting stuck in on a project. I just feel like I've wasted hours.


r/raylib • • May 15 '25

I am starting to make a game in raylib with c++ any tips?

2 Upvotes

I am planning on making it a rougelike where you are a wizard very similar to TBOI or the old Zelda games


r/raylib • • Sep 27 '25

Hello World with Raylib & Warp

Thumbnail gallery
0 Upvotes

r/raylib • • Jan 15 '24

Vector2Normalize not found

Post image
4 Upvotes

im trying to normalize a direction vector, but it doesnt exist and thinks i mean colornormalize i installed raylib using the cmake option and i set my sublime-build file right. and i didnt misspell the normalize function i dont think...


r/raylib • • Feb 17 '26

Para Empezar

0 Upvotes

Hola,tengo conocimientos basicos de programacion, puedo meterme en el mundo de Raylib? Hace falta saber manejo de memoria y punteros?


r/raylib • • Jan 25 '25

Raylib Docs Viewer - Is it Real?

0 Upvotes

I was asking ChatGPT about sorces of documentation for Raylib and it keeps touting this "Raylib Docs Viewer" resource but I cant find it for the life of me. Just wondering if its something that exists or did exist or something like that.

When asked about it this is what ChatGPT says:

Raylib Docs Viewer is an unofficial, community-driven documentation tool designed to make exploring raylib functions easier. It serves as an interactive platform to view raylib's API, complete with detailed descriptions of functions, their parameters, and some example snippets. Here's a breakdown of its features:

Key Features:

  1. Categorized Function Listing:

    • Functions are grouped into categories such as Core, Audio, Shapes, Models, Textures, etc., matching the structure of raylib's official documentation.

  2. Detailed Function Descriptions:

    • Each function includes:

      • A short explanation of its purpose.

      • A list of parameters with descriptions.

      • Return values, if applicable.

  3. Code Snippets:

    • Some functions feature small example code snippets demonstrating their usage.

    • These snippets are handy for quickly understanding how to implement a specific function.

  4. Simple and Clean Interface:

    • The interface is easy to navigate, making it ideal for both beginners and experienced developers.

  5. Community-Driven:

    • While it’s not officially maintained by the raylib team, it reflects community efforts to provide an accessible resource for raylib users.

Limitations:

  • It doesn’t integrate directly with raylib's official examples repository.

  • Some functions might lack full example implementations or usage contexts.

Who Should Use It?

Developers who want a quick and interactive way to explore raylib’s API without diving into the source code or switching between multiple resources.

You can explore it here.


r/raylib • • Jun 25 '24

Which is better for gamedev Rust or CPP

1 Upvotes

Recently I found that r/rust_gamedev has more than 35k members which is almost 7 times more than r/raylib

So is Rust more popular or better than CPP for game development ?


r/raylib • • Jun 15 '25

My Game Library #2

0 Upvotes

I know i should just edit my old posts, But those posts are now probably too deep in thos subreddit to be ever discovered
So...

The library is available here

I did port it for macOS but i dont know if it works since i dont have a mac please test it and tell me it works or not?

changelog #6

I've released v1.17 and decided to try and show nova to others and make it have atleast some users so that i have a reason to continue development

So there mightn't be updates for a while

changelog #5

I added real time based timer

I also added shaders

And also object tagging

I lost the video footage :[


r/raylib • • 12d ago

Aura — A Cross-platform C++ framework for building games with raylib

Post image
0 Upvotes

Hello everyone.

Yesterday, I shared my early work on a modular C++ game framework built on top of Raylib.
The project setup tool is now a lightweight, standalone app built directly using raygui!

Showcase & Video

I put together an itch.io page featuring video demos of the framework running across platforms:

https://tuananhdeveloper.itch.io/aura

What it offers:

  • Native Raygui Generator: Downloadable desktop app to bootstrap clean C++ starter projects instantly.

  • One Project, Multi-Platform: Clean structure targeting Android, iOS, Desktop, and Web (Emscripten).

Feedback and suggestions are welcome!


r/raylib • • 13d ago

Aura - C++ game framework

0 Upvotes

Hi everyone.
I’ve created a new C++ game framework that built on Raylib, with a Java desktop generator for creating starter projects.

The starter includes a sample game and shared framework components for screens and lifecycle, input, viewports, assets, preferences, UI, tilemaps, tweens, and particles.
Repo: https://github.com/tuananhdeveloper/Aura/
Realse (v1.0.0): https://github.com/tuananhdeveloper/Aura/releases/latest/download/aura-starter-generator.jar

​
Note: I only use Java to build the tool.
The tool is for creating a starter project.
The starter project won’t contain any Java code​.


r/raylib • • Aug 08 '26

Check out my game - MouseDriftCity (GPT5.6)

Thumbnail
youtube.com
0 Upvotes