242
questions
0
votes
0
answers
26
views
(raylib) exit code: -1073741819 (0xc0000005)
I'm using visual studio and I made this program with raylib to draw text (using a different font) in a window.
And then this happened:
myprogram.exe (process 28468) exited with code -1073741819 (...
-1
votes
0
answers
53
views
How can I stop phasing through the walls in my simple game?
I am make a top-down point and click game in Python/Raylib that involves no gravity and I'm using a procedurally generated tile map approach to build the world. With my current collision resolution ...
1
vote
1
answer
46
views
raylib c++ rundefined referance to InitWindow and all functions of raylib
c++ compiler: default mingw from sourceforge
code editor: vscode
myFileStructure:
*build/
├── _deps/
│ ├── raylib-build/
│ ├── raylib-src/
│ │ ├── CHANGELOG
│ │ ├── include/
│ │ ├── ...
1
vote
2
answers
42
views
Are there any strategies around editing dictionaries nested in shared dictionaries?
I'm trying to edit a dictionary inside a shared dictionary in separate processes but they're immutable. Are there any techniques that I might be missing on how to get around this?
Here's an example
...
0
votes
1
answer
20
views
Installed Raylib but it's not showing up in c drive
enter image description here
Using "C:\msys64\mingw64\bin\gcc.exe" instead so I am unable to use Raylib header file. Installer said it was being installed in C:\raylib folder but after ...
0
votes
0
answers
39
views
How to load and render a 2D tilemap from a JSON file in C using raylib?
I'm a beginner in programming and game development, and I'm trying to create a simple 2D game using C and the raylib library. I've designed a map in Tiled and exported it as a JSON file. Now, I'm ...
1
vote
1
answer
55
views
Getting two C compiler errors while calling a function (too few args and expected element before)
So, I am currently writing a rasterization-based 3D renderer with raylib in C, and I got three errors, and I have no clue where they came from.
function itself:
float triArea(point a, point b, point c)...
0
votes
0
answers
77
views
Collisions in Raylib C++
Im making this simple platform game on Raylib C++, and I can't nail down the collisions. I have tried to implement my own collisions:
#include "raylib.h"
#include <stdio.h>
struct ...
1
vote
1
answer
156
views
Compiling Raylib-Rust game to WASM
I've successfully compiled my game to WASM with the flags:
EMCC_CFLAGS="-sUSE_GLFW=3 -sGL_ENABLE_GET_PROC_ADDRESS -sASYNCIFY -sASSERTIONS --preload-file src/resources" cargo build --release -...
0
votes
0
answers
64
views
Undefined Reference For RayLibs when linking with CMake?
I'm trying to use CMake to setup a simple project linking raylibs. Whenever I try to run my main I keep on getting undeclared references to my function calls:
/usr/bin/ld: /home/doppler/C++ Projects/...
0
votes
0
answers
24
views
Why does my collisionDetection function keep returning 1 or 3 right at the start?
where the ball in my game starts to reverses in movement
where the ball in my game starts updating in movement (well, close enough)
I'm utilizing the raylib library to create the game. It's a simple ...
1
vote
0
answers
43
views
problems with collsions wit tilemap raylib C++
Yes hello all. I'm having a problems with my collisions in my demo I'm making. Sometimes the player collides with objects and sometimes they pass right through also they get stuck on side of objects, ...
3
votes
1
answer
141
views
Can't include raymath.h into my C++ raylib application
I am trying to include "raymath.h" into my C++ raylib project, but I can't seem to get it working, I'm getting a build error.
The way I'm trying to include raymath.h:
#include <iostream&...
0
votes
1
answer
68
views
STATUS_HEAP_CORRUPTION in rust code using raylib bindings
My problem code is as follows:
use raylib::prelude::*;
use std::{
f32::consts::PI,
os::raw::c_void,
path::Path,
sync::{Arc, Mutex},
thread,
};
mod wave;
fn export_wave(...
0
votes
0
answers
118
views
How can i use GLSL shaders with raylib-rust?
Right now i'm trying to use a simple shader in my raylib app.
This is my simple_shader.fs file
#version 330
out vec4 fragColor;
void main()
{
fragColor = vec4(0.0, 0.0, 1.0, 1.0);
}
This is my ...
1
vote
1
answer
189
views
What is the difference between BeginTextureMode() and DrawTexture in raylib?
Beginner here. I've noticed two approaches to drawing new textures to the screen in raylib, firstly using DrawTexture directly in the drawing stage:
BeginDrawing();
DrawTexture(texture, posX, posY, ...
0
votes
1
answer
202
views
How to link Raylib with hot reloading in C++ (Windows + Linux platforms)
Context
I am making a game in C++ (I am fairly new to the language) and have been using the Raylib library to handle things like windowing code, I am trying to get a very basic hot reloading test ...
0
votes
0
answers
114
views
Converting draw calls to Texture2D in raylib
I want to apply some shader effects to a couple of draw calls using raylib, but I haven't found ways of implementing shaders without a texture.
I was wondering if I could refactor the function below ...
2
votes
2
answers
144
views
raylib + cURLpp == C2733 you cannot overload a function with 'extern "C" '
I tried making a weather app using cURL for the api request and raylib for the gui and both libraries worked until I combined them.
I thought that there is a mistake in my project configuration so I ...
-1
votes
1
answer
64
views
Linking LuaJIT or other prebuilt static C libraries with Premake5
I'm writing a game using Raylib with the help of Premake5. I used a template to get started, specifically this one; https://github.com/raylib-extras/game-premake.
I can't seem to figure out how to ...
0
votes
0
answers
135
views
RayLib and linking a statically compiled library (C)
I have been trying to use the RayLib C library to play sounds. The overall goal is to make an audio waveform visualizer. I'm knowledgable in C and C# coding, but only using the standard libraries. I ...
0
votes
0
answers
95
views
Blurring already drawn objects raylib?
I'm currently working on the menu for a game in raylib where I want to have the below function to be able to be blurred after it is drawn (meaning, after calling the function).
void drawBoard(Color ...
1
vote
0
answers
40
views
Drawing simple shapes in raylib c [duplicate]
I can draw text, but I cannot seem to figure out how to draw shapes in raylib c:
Here is my code:
#include "raylib.h"
#include <stdio.h>
#include <time.h>
#include <stdlib.h&...
0
votes
0
answers
53
views
Raylib render is hidden when using a vibrant window
I'm on macOS Sonoma, and I was trying to setup a simple raylib window with some text and a semi transparent/blurry background window.
So I made a basic raylib window and get the window handle that I ...
0
votes
1
answer
109
views
Implementation of an incrementing variable after a specified period of time
I am learning C and implementing a function where a variable is incremented at a certain period of time. However, I have been unable to find a solution that isn't dependent on operating system (...
0
votes
0
answers
44
views
Trouble integrating rlutil.h with Raylib in C++ game
I'm currently working on a C++ project using the Raylib library for game development. In this project, I want to incorporate functionalities provided by rlutil.h for console manipulation. However, I'...
0
votes
1
answer
82
views
In my C raylib project, something strange is happening
In this code, the dog is meant to "eat" the bone, but instead of the bone being eaten, the dog moves away from the bone! I think this game is trolling me.
#include "raylib.h"
#...
0
votes
1
answer
59
views
Raylib_cs terminates after loading font to static member
I'm trying to load a font into an object that is a member of a static class in the C# binding of Raylib. My objective is to use a single static class accessible from across my entire project using a ...
-1
votes
1
answer
48
views
can't tell if it is array or pointer raylib
I am facing problem by learning raylib and trying to make most simple platformer this is the code that I wrote in C language not C++ again repeating C not C++ and pls solve this error quickly don't ...
0
votes
0
answers
259
views
raylib When resizing the window, the background is black
I am using raylib, when I create a basic project, I want to make the window resizable, when I resize the window, the background is black, why is this, how can I make the window background not black.
...
-2
votes
1
answer
218
views
Why I can't use external library ray lib? [closed]
I was trying to use external library ncurses, however I did not found throughout tutorials and tried the same with ray lib, but it doesn't work too(((.
When my task.json is like this this error ...
1
vote
1
answer
49
views
Traversing linked list in raylib gives Segmentation fault (core dumped)
I am trying to DrawText in Raylib Application.When I traverse Linklist in which content is either application prints nothing or gives Segmentation fault (core dumped)
Case No 1 : Segmentation fault (...
0
votes
0
answers
110
views
Common Lisp GUI application works when started from terminal, but not from SLIME
I'm trying to build a GUI for my application using cl-raylib, which provides Common Lisp bindings for raylib. I cloned the repository for cl-raylib into .quicklisp/local-projects/. I am able to run ...
0
votes
1
answer
90
views
Texture2D type not as expected with raylib Rust
I have the following code block in which I am trying to create a new Texture2D:
let texture: Texture2D = *handle
.load_texture(&thread, &path)
.expect(&format!("Failed ...
0
votes
1
answer
173
views
Breakpoints getting skipped while debugging Raylib 5.0 C++ code built with Makefile in Neovim with DAP using CodeLLDB
I am currently working on a C++ project using Raylib 5.0 and I’m building it with a Makefile. I’m using Neovim, with DAP and DAP UI for debugging, and CodeLLDB as the debugger. However, I have an ...
0
votes
0
answers
127
views
Segmentation fault while trying to draw an array in raylib
I have a custom struct Object, with an initializing CreateObjects function to create an array with the given properties. The goal is to be able to draw multiple of these objects with the same texture ...
1
vote
1
answer
95
views
Preventing the ball from moving after restarting the game in Raylib C++
I'm encountering an issue with my Brick Breaker game project. When the game ends, that is, when the number of clicks exceeds 10, a button appears and I exit. However, when I restart the game after ...
0
votes
1
answer
106
views
How do special libraries in C cause memory allocation to fail or interact improperly?
Specifically the libraries of GSL and Raylib have special memory allocation functions that include allocs() and free() based on their respective structures and implementations. However, these are ...
0
votes
0
answers
171
views
Drawing huge amount of lines
My goal is to draw a huge amount of lines in real time. This minimal example is drawing 250000 lines with about 30 fps. Another approach is to draw 250000 capsules with about 14 fps dropping to ...
0
votes
0
answers
41
views
Problem with a wall collision on a map loaded from a png file (like the raylib maze example)
I'm currently working on a uni project (I'm trying to make game sort of like Wolfenstein3D).
I used an raylib example of maze to make a map for my game.
But now i have problem with the wall collision ...
0
votes
0
answers
49
views
Trying to render texture but I can't pass the variable to draw function
What I'm trying is basically loading a texture and then drawing it on the screen. I tried to do it with just one cpp file and it works just fine. But right now I have a structure like this:
#ifndef ...
0
votes
0
answers
64
views
Plotting ODE with C using GSL and Raylib libraries causes GSL to send error code
The following C program contains a simple raylib graphical UI and coupled oscillator Ordinary Differential Equation. When programming the ode alone this code yields a data set that seems correct, and ...
0
votes
0
answers
29
views
Use Raylib in visual studio code with gcc compiler [duplicate]
I want to use gcc compiler with raylib on visual studio code. for some reason gcc cant detect raylib.h file.
0
votes
1
answer
37
views
Implement classes in other classes via header [duplicate]
I'm starting programming with raylib and tried to make a snake game. And I wanted to put everything that happens in a Game class. So i included the header file of my snake class and then tried to ...
0
votes
0
answers
242
views
WARNING: GLFW: Failed to initialize Window
I am so green with C++ i look like the hulk......
Here is the full code, i'm following a coder from Youtube
#include <raylib.h>
using namespace std;
int main()
{
InitWindow(...
0
votes
1
answer
183
views
Raylib Texture position on the window not aligning with the actual texture loaded in
Here's my code:
#include "raylib.h"
#include "raymath.h"
#include <iostream>
#include "rlgl.h"
#define SCREEN_WIDTH 600
#define SCREEN_HEIGHT 600
#define ...
0
votes
1
answer
450
views
Raylib DrawTexture performance
I am wondering about performance in Raylib, especially using the DrawTexture and NewImageFromImage functions. I have the code below, it's written in Go so I am using the go-bindings found here : https:...
0
votes
0
answers
65
views
Having trouble updating a Vector2 position while iterating through a list
I am making an endless runner using C++ and raylib. I am trying to spawn obstacles off screen and move them towards the player to jump or slide under. I am doing this by using a list of structs and ...
0
votes
0
answers
251
views
Troubles setting up RayLib on VScode on Windows11 for C++ programming
I'm having issues setting up Raylib on VScode and I think the problem stands in the debugging part of the process:
#include <raylib.h>
const int screenWidth = 800;
const int ...
1
vote
2
answers
78
views
Why isnt my snake printing to the screen?
I'm writing snake using raylib and C yet m snake is not printing to the screen , Why?
#include "raylib.h"
#include <stdio.h>
#include <stdlib.h>
#define CELLSIZE 30
#define ...