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
0
votes
1 answer

SCons: ld cannot find standard libraries

I'm developing a game with raylib using SCons for building. I'm using Clang to cross compile from Ubuntu (in WSL) to Windows. My project directory contains a lib directory with the raylib binaries and an include directory with the raylib headers.…
MBR-6161
  • 145
  • 1
  • 4
0
votes
1 answer

Writing a function without the class in start (Like "Raylib.InitWindow()" to "InitWindow()" only)

I started using raylibCS with C# in VS. To use raylib's functions, you need to write Raylib. before the function name, so it would look like this: Raylib.InitWindow(640, 480, "game"); This is tiring and unproductive (in my pov), so is there a way I…
0
votes
1 answer

gcc using -I include/ -L lib/ commands when the files are in the same folder?

Given a folder 'ex' with the files below where I open a windows cmd console in ex... ex\input.c ex\lib_folder\librarylib.a ex\include_folder\raylib.h How do I change the below command to work if the second and third files are sitting beside…
kite
  • 309
  • 2
  • 12
0
votes
1 answer

How can i change camera3d movement speed in raylib

im a 13 y/o Moroccan programmer and im in a bit of a sticky situation so im trying to make a first person game so i used raylib since it is the easiest way to do so without using an engine,i wrote the code and stuff and it worked,one problem tho,it…
0
votes
0 answers

Compile all C files in all of the children directories

So, I'm making a game with raylib and I need to compile all the .c files at once. The files are in separate folder inside the 1st one(Like "MainFolder/PlayerFiles"). I know how that gcc -o game *.c -L/usr/local/lib -lraylib compiles all the files…
0
votes
1 answer

How to hide a console in makefile

I am making something in Raylib C++ and every time I open the .exe file, the console and the raylib window opens up. How can stop/hide the console from opening up. This is the makefile currently. default: g++ ../Test.cpp -o Test -O2 -Wall…
Nate
  • 1
  • 3
0
votes
0 answers

PNG Pixel Values Slightly Off

For the past few weeks I have been debugging a very weird issue I've been having with pngs. I am building a game where the map is loaded as a png, with each individual pixel representing a specific object depending on its RGB value. What I have…
Jean
  • 1
0
votes
1 answer

what is raylib required libraries in arch linux instead of mesa and

How to install raylib required libraries in the arch. All required libraries are for Debian. what are raylib required libraries for arch? I installed raylib and created a CMakeLists.txt file for creating an executable file after running cmake and…
Dev Land
  • 1
  • 2
0
votes
1 answer

Disabling PlaySound() that is included by LibCURL

I've been developing with raylib for quite a while now. I've gotten libcurl to work, but it doesn't work with windows.h, because of the functions names overriding others. However, there is a workaround, by mentioning these defines (in…
stephan
  • 23
  • 1
0
votes
1 answer

vscode won't let me execute raylib

gcc core_basic_window.c -o game.exe -o1 -Wall -std=c99 -Wno-missing-braces -I include/ -L Iraylib -Iopeng132 -Igdi32 -Iwinmm D:\w64devkit\bin/ld.exe: C:\Users\dy.kim\AppData\Local\Temp\cc8gmJZC.o:core_basic_window.c:(.text+0x37): undefined reference…
yeemmeehg
  • 1
  • 1
0
votes
1 answer

Raylib X Collision Response Isn't Working Properly

I've been making a game with C and Raylib, and I've managed to get the collisions on the Y axis working, but not on the X axis. This is what happens when the player lands on the top of a rectangle in the game: I've tried adjusting the collisions in…
Scollier
  • 575
  • 6
  • 19
0
votes
1 answer

2D Raylib Texture Collisions

I was wondering how to properly handle collisions in Raylib. After setting up the basics, like a window, I would first load in the player texture, like so: Texture2D playerTexture = LoadTexture("Player.png"); After that, I would draw the texture,…
Scollier
  • 575
  • 6
  • 19
0
votes
1 answer

Clang command to compile raylib

I'm new to clang and am trying to get it to compile raylib. I haven't found anything online to do this (anything clang on the internet seems to be hidden). All I need is a command to compile raylib to a dll (I know how to link that with my own…
Evan
  • 31
  • 3
0
votes
0 answers

MinGW\bin/ld: invalid subsystem type gui

I am trying to compile a c++ program with raylib(maybe unrelated). I have followed this tutorial: https://github.com/raysan5/raylib/wiki/Use-raylib-with-Sublime-Text the only difference in my version of the batch file is "SET…
0
votes
1 answer

C++ Raylib how to detect the side of a rectangle that a circle has collided with

I can use the function CheckCollisionCircleRec(Vector2{ x, y }, radius, paddleRect) to find out simply if my circle has collided with my rectangle, but I want to be able to find out what side of the rectangle my circle has collided with. How would I…