jsgoller1 / sprawl

2D Game Engine
GNU General Public License v3.0
0 stars 0 forks source link

Support layered drawing #56

Open jsgoller1 opened 1 year ago

jsgoller1 commented 1 year ago

We want to be able to draw textures on top of each other, like a character drawn on a background. Presently, we cannot do this - everything is drawn on the same plane with zero depth. SDL will draw everything back-first; the last thing drawn on the same position will be the one shown. We used to use this for backgrounds by just ensuring that the background would be drawn first; we don't want to use this hack long term.