Questions tagged [raylib]

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

raylib is a simple and easy-to-use library to enjoy videogames programming.

raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's specially well suited for prototyping, tooling, graphical applications, embedded systems and education.

NOTE for ADVENTURERS: raylib is a programming library to enjoy videogames programming; no fancy interface, no visual helpers, no auto-debugging... just coding in the most pure spartan-programmers way.

Raylib.com

On Github

171 questions
1
vote
1 answer

Raylib DrawTriangle() usage

I'm having trouble displaying a triangle with Raylib's DrawTriangle() function. Minimum Reproducible Example #include #include int main(int argc, char** argv) { // window width/height const unsigned int screenWidth =…
GooseDeveloper
  • 97
  • 1
  • 11
1
vote
2 answers

use raylib to render nuklear GUI failed

I try to use Nuklear with Raylib 3.5, but the rendering failed without any error message, but a white window. Since Nuklear can use with any renderer at the front end, I try to combine Raylib with Nuklear. as far as I can see, the Raylib uses OpenGL…
user3224611
  • 84
  • 1
  • 7
1
vote
1 answer

Player doesn't move when colliding with the floor

I am making a game with raylib. Collision seems to work except I can't move when I am touching the ground. //including raylib #include //defining the G - gravity #define G 3.0f //main function int main() { // player struct …
arydev
  • 11
  • 4
1
vote
1 answer

Making Raylib-cs work with extended ascii / unicode above 128 in windows?

I'm teaching C# and game dev to high school students, and we're using Raylib-cs as a simple introduction to graphics APIs and libraries. We've hit a small snag: We're swedish, and we'd like to use some special non-ascii letters – namely å, ä and ö…
1
vote
1 answer

Why can't I make the ball jump? It is shooting up like a rocket

I am using a library called raylib but that should not be a problem to you because the code I am trying to write should make the ball jump up and after reaching a certain height the ball should come down, just like gravity works. The thing is my…
Abhishek
  • 43
  • 1
  • 1
  • 8
1
vote
0 answers

how to set up raylib with c++ binding in sublime text 3 and visual studio 2019 community

I tried to set up raylib 3.0 and raygui 2.6 on Windows 10 with sublime text 3 and vs 2019. I followed the guide on github, but it was met for C. I think I probably mess up the C++ binding part. I wonder if anyone could provide a step by step…
1
vote
1 answer

C++ Raylib Different Movement Speed at differents FPS even with DeltaTime

rigth now I try to make a small game with raylib and c++. Rigth now I only have a small cube and a plain window with the FPS in the corner. Becuase I doesnt wanted to use SetTargetFPS() I tried to implement deltaTime. Rigth now I´m also calculating…
Bugsia
  • 21
  • 1
  • 5
1
vote
3 answers

How to hide a drawing in Raylib?

I am a beginner at Raylib and I was wondering how to hide an image or sprite in Raylib? code example: DrawCircle(400,400,100,RED);//circle 1 DrawCircle(200,200,50,RED); //circle 2 //here is where i want a funtion just to delete/hide circle 2
josephi
  • 81
  • 1
  • 1
  • 5
1
vote
3 answers

Pointer gives whole array instead of one character in C++ RayLib

I am very new to C++ and decided to start off by making tic tac toe with RayLib as a graphics engine. The code below sets up a screen, draws the grid and checks for an input. The part I was working on is showing an X or O in the fields that were…
1
vote
1 answer

Clearing background in raylib from class method makes window flicker

Hi there I'm learning c++ so I'm not sure if this is a stupid mistake on my part. I'm trying to do something simple with raylib, I'm trying to simply clear the background by calling a method in a class. When I try to do this from the class, the…
g1i1ch
  • 85
  • 1
  • 1
  • 4
1
vote
1 answer

Raylib undefined reference to functions on raspberry pi

I am trying to learn C and I'm struggling to understanding linking. I'm having trouble getting my main.c file to compile using the raylib library. The makefile CFLAGS= -g -O -Wall -W -pedantic -std=c99 -O0 BASIC = -o -std=c99 LINKFLAGS=-I.…
decabytes
  • 386
  • 2
  • 14
1
vote
1 answer

Can't find "raylib.dll"

I'm trying to use the raylib on Visual Studio 2019, I followed this tutorial I can build without anywarning, but when I run my program a error windows saying that it can't find "raylib.dll" apear. What can I do to solve this ?
1
vote
1 answer

When trying to draw Rectangles in RayLib 2.6 I'm finding this "bleeding" effect

When trying to draw Rectangles in RayLib 2.6 I'm finding this "bleeding" effect: bleeding effect I tried to search for this effect (the one I call bleeding) but I haven't managed to find the correct name for it. I managed to reproduce it in this…
Satinxs
  • 13
  • 3
0
votes
0 answers

How to deploy Raylib game onto a react website

I have done multiple games using Raylib using C and C++ and I would like to showcase them on my personal website that I created using React.js. Does anyone know how to deploy and integrate these 2 together? I have tried searching for ways to deploy…
0
votes
0 answers

Linker doesn't detect my static library made for raylib

I am currently trying to create a tiny library to make dialog boxes in raylib. When I try to use my Makefile, though, I get this error. Please note that I'm a bit new to c++!: /sbin/ld: cannot find -ldialog: No such file or directory collect2:…