Questions tagged [raylib]

A simple to use library for making video games, distributed under the zLib license.

Filter by
Sorted by
Tagged with
0 votes
1 answer
224 views

Fade edges of 2D spline-mesh

I'm re-writing my Unity game in Raylib and are trying to recreate a path/road-shader I made with Shader Graph. The first picture is how it looks in Unity, with faded/blurred edges. The path is a 2D ...
Johan Tovesson's user avatar
0 votes
0 answers
249 views

Why is my RenderTexture y-flipped?

When drawing a very simple RenderTexture using Raylib, with the following POC code, the texture actually drawn is vertically inverted. Is that normal? If not, what ...
SteeveDroz's user avatar
2 votes
2 answers
693 views

What does raylib's "no external dependencies" really mean?

I'm considering making a 2D game with C++ and raylib, targeting windows desktop. One of the attractive features of that framework is that it has "no external dependencies". However, now that ...
DrZ214's user avatar
  • 348
0 votes
1 answer
137 views

What is the best way to store unique data for tile types?

To store specific data unique to each tile type, what is the best way to do this? Say a tile has an ID corresponding to data concerning its name, block strength, texture, health, etc; how could this ...
DAG3223's user avatar
1 vote
0 answers
253 views

Expected a smoothly fading opacity in this Raylib shader, but instead it is chunky

In my main file, I create a regular icosahedron and assign the below shaders to it using the Raylib framework in C++17. I intended for the vertex shader to assign a 1.0 alpha value to points at Z=-5....
James Watson's user avatar
0 votes
0 answers
32 views

Need help replicating this unity transformation in raylib [duplicate]

i was hoping i could get some advice on a transformation im trying to perform on some billboards. i have a billboard in 3d space thats being rotated a long the view matrix's up + right axis, against a ...
hexley's user avatar
  • 5
1 vote
1 answer
178 views

Why is my Moon not orbiting Earth in my physics demo

I am in the midst of making a gravitational body demo for my physics engine. For the demo, I am trying to simulate both all the inner planets' (Mercury-Venus-Earth-Mars) orbits around the sun, as ...
Catyre's user avatar
  • 13
1 vote
0 answers
303 views

Raylib: audio popping and cracking

I'm trying to play a "simple" generated looped sinusoidal wave with raylib and Go but, although it plays I also get audible cracks. Checking some online examples (like this: https://www....
Pherrymason's user avatar
-1 votes
1 answer
459 views

Cant compile raylib project with Physac

I'm trying to learn how to use raylib with physac, however I'm quite new to using a c++ compiler and after a few hours trying to get a minimal example working, I came here seeking your help. here is ...
h8moss's user avatar
  • 101
1 vote
0 answers
567 views

How to use raylib on Manjaro?

I wanna use raylib and I just installed Manjaro (KDE) on my laptop. If I recall correctly I'm supposed to Install raylib from the AUR. And that's what I did. I installed this: https://archlinux.org/...
dplrgang's user avatar
0 votes
1 answer
303 views

Trouble with Raylib install on Arch Linux

I am learning Raylib game library, but in the "First Person Maze" example the images cannot be found, for example:  ...
Jorge Carretero's user avatar
0 votes
1 answer
1k views

Converting IntPtr to objects (here Raylib Material[])

I'm trying to apply a texture to the material of a Model but I could not figure out how to do it: so I made a direct translation of the c code taken from examples: (original from "Raylib [shaders]...
Louis BERTRAND's user avatar
0 votes
0 answers
877 views

Some maths about camera in 3D

So after finishing a 2d game for my school project, I decided to dive into 3d world by using raylib instead of Unity. Raylib does provide a simple implementation of 3d camera without you doing maths, ...
nicklowkc's user avatar
1 vote
2 answers
1k views

2d tile map render rotation math?

I am working on a personal project and am trying to make a 2d tile map render that needs to handle rotation. I am using raylib to handle the drawing stuff onto the screen and am using this function ...
Mclog21's user avatar
  • 13