TinyCircuits / TinyCircuits-Thumby-Code-Editor

https://code.thumby.us/
GNU General Public License v3.0
28 stars 19 forks source link

request to add shorthand to access the framebuffer easier #74

Closed Xyvir closed 1 year ago

Xyvir commented 1 year ago

I recommend adding the following line to the thumbyGraphics __init__ self.buffer = self.display.buffer

this will allow you to access the buffer from your game file by calling

thumby.display.buffer

instead of the currently required

thumby.display.display.buffer

it's a bit more intuitive IMO

-Tyler

masonova1 commented 1 year ago

Just implemented this on my fork. It needs to be a memoryview or duck typing can't quite figure out it's a reference.

Xyvir commented 1 year ago

Cool, thanks for considering my suggestion.