One of the things I’m working on right now for our video game is a level editor. Once we have a functional level editor, then our team will be able to create the game without any assistance from myself. As it is now, I need to program everything by hand – sprites, event handlers, object masks, etc.
The process of creating a level editor requires that I leave a lot of the complex stuff to be handled automatically. To accomplish this, there needs to be a heavy amount of abstraction within the code, so that when it comes time to program the editor, it will be as simple and fool-proof as possible.
The first image shows the original code, meant to handle one room, while the second image shows the steps I’m taking in order to have multiple room functionality.