So I decided to once again dabble in game development and again do 2D for experience. Last time I used SDL 1.2 and sprites(BlitSurface), this time I will use SDL 2.0,Chipmunk-Physics and again some 2D sprites.
Before I used a tile-based map, however truth be told I only copied the code from an SDL example rather than try to understand, this time I want to try.
At first I wanted to do the same type of map again, where you can walk up,down,left and right, but maybe I should do one like Super Mario Bros from 84 for the SNES where you can only jump and go left OR right.
Here's how it looked/s
You can see that the character is walking on stone BUT above him there are objects he can interact with(in this game's case, usually smashing those bricks or bumping the question marks if he hits them from below, or walk on those objects) and there are objects behind the character such as bushes or trees and even clouds above which do not collide with the character.
But what kind of map is that, and how can I replicate the results(I do not want to make a clone, just something that utilizes this concept). Because I have no idea how one would describe that map. Funny, the game was made in 1984, and nearly 30 years later I still have no idea how it's done.
And while I have not forgotten, on a tile-based map how can one place objects on the tiles themselves? For my old game test(which was just random junk) I read the map from a file being just numbers that represented a different sprite but one couldn't describe an object on those tiles.
And perhaps last, but probably not least. Using OpenGL or the Graphics API in SDL 2.0 for the sprites/drawing? Because I feel like I am not yet ready for GL.
Any help would be appreciated.
Edited by farmdve, 26 August 2013 - 03:10 PM.