The Levelobject object has to do a lot of things, which makes it hard to test it. It is entangled into wx, when it shouldn't be, just like Tiles and Blocks.
Is there a way to make an Objectdrawer. Maybe even a Leveldrawer?
Separate concerns to make the interface between the game reality and the GUI reality minimal.
Aren't objects not just a bunch of pixels to the GUI, with a reference to the game logic?
Maybe have each Levelobject degrade down to an array of pixels, which can get turned into a Bitmap object and blotted onto the Panel, instead if doing that with each individual tile.
The Levelobject object has to do a lot of things, which makes it hard to test it. It is entangled into wx, when it shouldn't be, just like Tiles and Blocks.
Is there a way to make an Objectdrawer. Maybe even a Leveldrawer?
Separate concerns to make the interface between the game reality and the GUI reality minimal.
Aren't objects not just a bunch of pixels to the GUI, with a reference to the game logic?
Maybe have each Levelobject degrade down to an array of pixels, which can get turned into a Bitmap object and blotted onto the Panel, instead if doing that with each individual tile.