Skip to main content

Questions tagged [sdl2]

The tag has no usage guidance.

2 votes
1 answer
78 views

How can I make my force calculations better?

I am making a simple physics solver (haven't gotten to collision resolution or detection yet, just finished making it mt'ed), and when I apply forces through "W", "A", "S"...
misInformationSpreader's user avatar
2 votes
0 answers
23 views

Recording/Playback thread device in Object Pascal

I have developed an audio recording and playback base device in Free Pascal. This device is built on Free Pascal's TThread class and utilizes the low-level audio ...
cpicanco's user avatar
  • 499
7 votes
2 answers
2k views

Chess Game with GUI in C++ using SDL2

Introduction So, I recently completed a chess game with a GUI in Python, using Pygame. Upon research, I learned that Pygame is built on SDL, and since I wanted to practice C++ more, I decided to code ...
cold10's user avatar
  • 469
4 votes
3 answers
927 views

SDL2 engine base implementation

I would like a little help with the implementation of my SDL2 engine. It's actually not a real engine nor does it strive to be but I don't have a better word to describe it. The purpose of this ...
Asmir Zukić's user avatar
2 votes
1 answer
368 views

Game of Life in C/SDL2

My first project in C/SDL2 after completing a short tutorial coding Pong. These 2 projects are my entire experience with both C and SDL2, although I had some previous basic experience with Python. I ...
Togiodi's user avatar
  • 23
1 vote
0 answers
73 views

State machine in C for SDL game [closed]

I want to create a state machine for menu in my SDL game. So this is my code without the SDL. I just want to ask if this is a good way to create it. I am trying to implement a screen and then mouse ...
matthews's user avatar
9 votes
1 answer
2k views

Audio visualizer in C++

I have completed my first attempt of a simple music visualizer app for windows in C++ using SDL. It takes system audio and outputs the soundwave in real-time. I'd appreciate some feedback on how I can ...
KyleL's user avatar
  • 191
1 vote
1 answer
1k views

Good way to structure a SDL project

I am absolutely new to c++ and am trying to learn SDL2 with c++. I am setting up my first project and I was unsure if the way I have structured the project is good or if I have over done it. Here is ...
Apple_Banana's user avatar
3 votes
1 answer
794 views

Conway's game of life in C++ using SDL2

I finally finished my Conway's game of life in c++ project and i'd love to find out how to improve the code. main.cpp ...
Nadpher's user avatar
  • 889