lordmauve / wasabi2d

Cutting-edge 2D game framework for Python
https://wasabi2d.readthedocs.io/
GNU Lesser General Public License v3.0
156 stars 24 forks source link

Prevent registering a new draw() function #13

Open lordmauve opened 4 years ago

lordmauve commented 4 years ago

By adding a new draw() function decorated with @event:

@event
def draw():
    ...

The built-in draw() registration (for scene.draw()) is removed. This means that nothing draws at all. It should not be possible to register a draw function in user code.

lordmauve commented 4 years ago

Also the new screenshot function (on_screenshot_requested iirc)