Advertisement

Latest SDL Activity

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…

8,278 views
Advertisement
SDL green flickering mess on nvidia Geforce GTX

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. 

14,940 views

@Aressera Good points all around! This feels like a direction I can get started in.

13,412 views

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…

6,394 views

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 …

6,928 views

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"…
6,308 views
How to rotate a line around a point?

alvaro said:

If you know how to rotate points, you can rotate line segments, just by rotating the ends. If you know how to rotate points around the origin, you can rotate cpstest points around arbitrary points, by first subtracting the coordinates of the center of rotation, then rotating around the …

10,154 views

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:

https://stackoverflow.com/que…

7,208 views
Bozemoto
November 19, 2019 05:33 PM
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 nullptr

Please Net-Ninja? Thanks.

 

InputHandler.cpp line…

4,180 views
renedudfield
October 31, 2019 10:27 AM
pygame book

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…
4,833 views
renedudfield
October 31, 2019 10:27 AM
pygame book

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…
5,825 views

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++…

3,636 views

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…

5,036 views
SDL and Web Assembly Browser Game Engine

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…

4,350 views
Alio
March 19, 2019 05:27 AM

Thanks Virion will check that out ?

3,877 views
Feedback On New Open Source Project In Vein Of Dwarf Fortress

If you're looking for other inspirations, you should look up "RimWorld", and also look at "failed" Dwarf Fortress clones, like "Gnomoria".

2,770 views

Imgui can use image button and translucent background which you may need.

Years ago I think people use CEGUI and MyGUI,you may want to look if interested

11,562 views

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…

13,439 views

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…

5,445 views

@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…

4,115 views
sneaky_squirrel
July 09, 2018 06:17 AM
Researching my Animation Pipeline

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…

3,263 views
lilington
November 16, 2017 03:31 AM
Soul of Mask close to release

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…

2,642 views
lilington
November 06, 2017 05:18 AM
Soul of Mask

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 …

3,815 views
Advertisement
Advertisement