Hi guys,
I have made a couple of 2D levels using SDL where I simply load a tile from a text file which is a set width and height. Then I run two for loops checking collision. Of course, this is rather crude and makes for a "boxy" world.
I am wondering if there's a way of creating more advanced shapes such as hills and valleys which already have SDL_Rect built in. I shudder at the thought and the amount of time it would take to craft a hill or a slope if I have to create an SDL_Rect for each pixel height.
Of course if this is the only way to do it, then so be it.
Thanks,
Mike