Uploaded January 2020 | Updated September 2026, 3 weeks ago
In this tutorial, I go over a simple technique to implement z-indexing in a completely 2D renderer like the Java GraphicsContext APIs. This method involves using a HashMap to map each z-index to a collection of objects, and then render the furthest objects first and the closest objects last, essentially drawing them from back to front.
---------------------------------------------------------------------
Website: ambrosiogabe.github.io
Github: github.com/ambrosiogabe
Outro Music: bensound.com/royalty-free-music
In this tutorial, I go over a simple technique to implement z-indexing in a completely 2D renderer like the Java GraphicsContext APIs. This method involves using a HashMap to map each z-index to a collection of objects, and then render the furthest objects first and the closest objects last, essentially drawing them from back to front.
---------------------------------------------------------------------
Website: ambrosiogabe.github.io
Github: github.com/ambrosiogabe
Outro Music: bensound.com/royalty-free-music










