TinyCircuits / TinyCircuits-Tiny-Game-Engine

MicroPython game engine for TinyCircuits Thumby Color
GNU General Public License v3.0
10 stars 2 forks source link

Decouple order of tick and draw callbacks #60

Closed TinyCircuits closed 4 months ago

TinyCircuits commented 4 months ago

Currently, all nodes are looped through in a single loop where the tick and draw callbacks for each node are called at the same time. This order can cause issues where a node is seen twice if it is drawn and ticked on layer 0, but the tick callback moved it to layer 1.