Closed Xyvir closed 1 year ago
I recommend adding the following line to the thumbyGraphics __init__ self.buffer = self.display.buffer
__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
Just implemented this on my fork. It needs to be a memoryview or duck typing can't quite figure out it's a reference.
memoryview
Cool, thanks for considering my suggestion.
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