Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
5
votes
1answer
4k views
Time based movement Vs Frame rate based movement?
I'm new to Game programmming and SDL, and I have been following Lazyfoo's SDL tutorials. My question is related to time based motion and frame rate based motion, basically which is better or ...
4
votes
3answers
1k views
What animation technique is used in 'Dont Starve'?
While playing a few games in my personal time off development I've stumbled across a survival 2D/3D survival game. The game was apparently made in SDL and GLUT (Dont starve) but what really amazed me ...
1
vote
2answers
1k views
SDL Bullet Movement
I'm currently working on my first space shooter, and I'm in the process of making my ship shoot some bullets/lasers. Unfortunately, I'm having a hard time getting the bullets to fly vertically. I'm a ...
5
votes
4answers
2k views
2D Platformer Collision Handling
I am trying to create a 2D platformer (Mario-type) game and I am some having some issues with handling collisions properly. I am writing this game in C++, using SDL for input, image loading, font ...
5
votes
2answers
1k views
How should I manage level progression?
In my code, I just have a Level class right now in the main game loop that just blits a background and spawns some enemies for testing purposes...But I can't figure out how to go about implementing ...
1
vote
5answers
904 views
OpenGL Performance Questions
This subject, as with any optimisation problem, gets hit on a lot, but I just couldn't find what I (think) I want.
A lot of tutorials, and even SO questions have similar tips; generally covering:
...
2
votes
2answers
482 views
How to hide assets from user? ( e.g.: a png file )
I think the title is quite self-explaining, still this is a big area I think, so let me drop a few words:
I've got a simple experiment game project going, and I want to make sure, that the user isn't ...
2
votes
3answers
1k views
Question About An Implementation Of Parallax Scrolling In C++/SDL/OpenGL
I been working in a project with a team for a Software Engineering class and we think that using the parallax scrolling will help our game to look really nice but we are not really sure if our idea ...
1
vote
0answers
148 views
Ruby/SDL vs. RUDL [closed]
I'm interested in using Ruby for 2D games. I have to pick between Ruby/SDL and RUDL, both of which are Ruby SDL wrappers.
Which is better? Better means "less bugs" and "more usable," although the ...
7
votes
1answer
1k views
SDL2 with OpenGL — weird results, what's wrong?
I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird ...
3
votes
2answers
227 views
Defining and selecting an area from an image
I want to create a game, where the world is loaded from an image file, much like Paradox Interactive does it for their games. If I have this image:
Then the red, green, blue, cyan, magenta, white, ...