SMB3-Foundry icon indicating copy to clipboard operation
SMB3-Foundry copied to clipboard

Take drawing out of objects

Open mchlnix opened this issue 6 years ago • 0 comments

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.

mchlnix avatar Jul 08 '19 17:07 mchlnix