stefanmielke / libdragon-extensions

List of structs and functions to help on Libdragon development.
MIT License
6 stars 1 forks source link

Add layer manager #15

Open adamcate opened 1 year ago

adamcate commented 1 year ago

Perhaps this should be a structure with a function callback for rendering, render behavior at the edges (whether or not it should render out of bounds tiles as empty or as a set tile), position, etc. . Then we could have a structure (maybe called LayerManager) that contains an array of layer objects and is responsible for rendering them in order, disabling given layers, etc.