All Questions
8
questions
0
votes
1
answer
230
views
rotating a sprite with mouse cursor
i am learning how to make a 2d game using sdl and c++ and am currently trying to rotate the sprite so that is always facing the cursor, my game is set up with an entity component system, i have a ...
3
votes
1
answer
289
views
How are map/room/world-related game assets usually organised and implemented?
I'm trying to build a simple 2D Shoot 'Em Up type of game in C++ using SDL2 and an Entity Component System, which I've already implemented. The idea is to have different maps/rooms where you have to ...
2
votes
0
answers
208
views
Are there any good techniques for reducing or smoothing stutter after a longer frame?
I've been using SDL2 with OpenGL to play around with some very basic game engine development. I'm running everything on a newer laptop with Linux and Intel integrated graphics.
Regardless of whether ...
0
votes
1
answer
395
views
SDL Sprite Customization
I am currently working in C++ with SDL2. I plan on making a game that utilizes character visual customization. More specifically, equipping clothes and items changes the appearance of characters. ...
2
votes
0
answers
405
views
Default with SDL_RendererFlip Horizontal (SDL, C ++)
When I execute my sprite sheet animation and apply renderer_flip_horizontal, a line appears in the sprite.
Without the flip render, everything works fine.
Example image:
Note: The sprites are ...
1
vote
0
answers
720
views
2D Voxel isometric rendering with non grid-aligned objects
I'm currently working on making a simple SDL2 game (written in C++) where the maps are comprised of sprite voxels (essentially just a png of an isometric cube). Game entities move in 3D space. The ...
0
votes
1
answer
109
views
Unable to load two enemies with same pic in sdl2
I have loaded two enemies(with the same pic) into my game. However, when I draw them onto the screen it only draws and animates one enemy, instead of two. I can't seem to figure this out.
Here is my ...
0
votes
2
answers
3k
views
How can I make sprites from multiple images using SDL2?
Using SDL2 in C++ I can load textures with out problem however, I have sprites that are from about 15 different png's that I was hoping I could load them all up and for loop through them. However, ...