Original Post
I am at the start of creating a tile based game with some friends. The game will have different rooms the player can enter and each room will have some puzzle to solve or something like that. I am starting to think about how the game will be organized. I am using C++ and SDL for programming but for organizing the game components. I'm thinking a room will be an object, any characters will be objects. Then lets say for the human controlled character it will have a method to handle events, and a method that moves the x and y so the player can move around the screen, however, i am confused about how the graphics part works. The player obviously has some sprites associated with it, so do these become attributes of the object and the object would include methods to draw it to the screen and then how does that fit in with the whole thing of handle input, draw objects, update screen sort of loop that happens while playing the game? Thanks.