mchlnix / SMB3-Foundry

SMB3 Level Editor in Python
GNU General Public License v3.0
93 stars 12 forks source link

Take drawing out of objects #41

Open mchlnix opened 5 years ago

mchlnix commented 5 years ago

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.