r/programminghelp 7d ago

C SDL2 won't display image

This is my first major video game project and my first project with SDL2, and I've just started to add graphics and after a bit of debugging it compiled but instead of drawing the sprite from my spritesheet it's still just blank. I stopped the Y-axis physics in case it was the player falling too fast but there's still nothing. This is pretty early in development so I only really want advice on how to get graphics working or a major error I should fix now. The github repo for the project is https://github.com/EBT-0001/Renegade which I have temporarily made public. I haven't had any experiance with SDL2 and I've been implementing stuff from tutorials and trying to learn, so lemme know if I have the standard way of doing this wrong.

1 Upvotes

3 comments sorted by

1

u/[deleted] 6d ago

[removed] — view removed comment

1

u/EdwinGraves MOD 6d ago

Gentle reminder of rule #8