🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest SDL Activity
Please, test my guide and write if something is wrong: How to run SDL3 app on Web with WebAssembly on Windows
pbivens67 said:
Is the ampersand point to the address of the rect values(?)
Browse this google search: pointer vrs reference c++
Also, look at the first and second answers at this stackOverflow related question.
In here you'll find a visual comparison example and a second point of view when talking abo…
A galaxy is a really large place.
taby said:
It's no worse
It literally doesnt works. You just told it produces green lines on your video card. You had to play with magic numbers to make it work again… which will probably last till the next version update.
Thanks everyone,
Yeah, I know SDL2 inside and out. I thought this book was SDL2 ?. I just found the book interesting and some of the things they were talking about at the end. Thought I might pick up some concepts of using SDL differently and abstracting it. I still think I could, but if it's SDL1 t…
Wintermute2 said:
Hello,
I'm writing a simple GUI with SDL (1.2).
According to you, what is the best solution ?
For simple GUI's it doesn't matter what you do. If you ever have overlapping GUI elements, then you may want option 1) and let the container work out which element is being hit, based on the …
By far the simplest for small projects is not to bother building incrementally, but instead do a full build each and every time. That is, make a script that simply performs all build steps, one at a time, using hard-coded paths and library names, eg
#!/usr/bin/env sh
set -e -u -x
CCFLAGS="-Wall -g"…
A rotation matrix is used. It's simple and it's standard.
What platform are you running on?
Also, what does the output of the following show for your system?
glxinfo | grep OpenGL
Have you tried a basic SDL window as in the Wiki example?
https://wiki.libsdl.org/SDL_CreateWindow
This looks similar to the issue you are running into:
1 hour ago, Alio said:Can you tell me which line and file you are referring to with if(SDL_JoystickOpen(i) != 1)
SDL_JoystickOpen returns a nullptr when it fails. So change the 1 to nullptrPlease Net-Ninja? Thanks.
InputHandler.cpp li…
The pygame book project has begun. It's called "pygame 4000" and is a book project by one of the main contributors of the pygame project.
Not only does the book aim to cover Python programming, but also aims to cover C, and the GLSL shading language.
- [ Pixel Perfect Collision Det…
The pygame book project has begun. It's called "pygame 4000" and is a book project by one of the main contributors of the pygame project.
Not only does the book aim to cover Python programming, but also aims to cover C, and the GLSL shading language.
- [ Pixel Perfect Collision Detec…
Thanks Scienthsine and Zakwayda for the help
I've found another way of doing it, let me explain.
Btw, here is the code
void Entity::update()
{
if (movCycle <= myVelocity) {
posX += velocityX * myVelocity;
posY += velocityY * myVelocity;
movCycle++…
I solved this error. Here is the solution.
When creating the buffer, create it with the current renderscale. In my case, my render scale was 2.
buffer = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET, screenwidth * renderScaleX, screenheight * renderScaleY);
Th…
For my final assignment in school, I made a basic multiplayer ray casting game in the browser. The response was so so at the demo held at Case Western in Cleveland, due to it being a silly game. It was programmed in JavaScript, Web Assembly and C. Emscripten was used to output Wasm and glue code…
Thanks Virion will check that out ?
Ignore my previous post, I read your question wrong my solution isn't going to help you. When you create an SDL 2 renderer on windows it should default to DirectX 11, I'm not sure what's happening. I did find a post with a similar question
https://stackoverflow.com/questions/53269015/how-can-i-cr…
I was just warning you in case you didn't know.
As for tech, conceptually a game is not very complicated. Input is keyboard/joystick/mouse. Output is an animation, a sequence of full-screen images generated at a 20-50 fps. You have a number of different game-parts (intro, high score, instruc…
@Randy Gaul Thank you. I'm going to begin testing stb_image. it seems very promising.
@fleabay It's definitely not the image files. I used two different pngs, plus I tried it with a tif and bmp. I created all files myself, and as a…
This is my first blog post.
I am making a videogame as a learning exercise, using SDL 2.0 as my framework (I can't call it an engine, but I'm using it as my game engine).
I opted to attempt a 2D Turn Based game.
Animation
I have followed SDL tutorials and am now familiar wi…
Hey,
Me again, I got some problem with SDL2_mixer on macOs, actually I am thinking about cancelling MacOs version as I found no solution to play sounds in this platform.
Looks like we will stick with Windows and Linux.
Good news, the development is about to be close now. and i provi…
Hi,
My name is Alain Perrin,I come here to present my project (actually almost finished) of game.
Soul Of Mask already announced on steam. It is, unfortunately, a one-man job. 3 years of pleasure and nightmares. But it is still a joy to work on it. I was supposed to start talking about …