Original Post
I pretty much understand how to code a tile engine in sdl from the LazyFoo article, but I want to know how to code something a bit more .......dynamic? A tile engine would be a bit excessive for a platformer I think (which is what I'm trying to create) So I'm creating every part of the game as separate objects but at the moment I'm hardcoding them into the cpp files and it's getting a bit excessive. Could someone please explain how to load object info from a file using C++. A simple example will probably suffice, such as 2 objects with 2 variables (x and y)