Split a 2D scene in layers or have a z coordinate
- by Bane
I am in the process of writing a 2D game engine, and a dilemma emerged. Let me explain the situation...
I have a Scene class, to which various objects can be added (Drawable, ParticleEmitter, Light2D, etc), and as this is a 2D scene, things will obviously be drawn over each other.
My first thought was that I could have basic add and remove…