Z-Index Rendering | Coding Geometry Dash in Java #20 @GamesWithGabe
Z-Index Rendering | Coding Geometry Dash in Java #20  @GamesWithGabe
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
Z-Index Rendering | Coding Geometry Dash in Java #20Iterative Linear Impulse Resolution | Coding a 2D Physics Engine in Java #15ImGui in LWJGL (UPDATE) | LWJGL Series #3Coding Gravity | Coding Geometry Dash in Java #9Deserialization Part 1 | Coding Geometry Dash in Java #15Generating Font SDFs (Signed Distance Fields) | Font Rendering in Java #4Serialization with Gson | Coding a 2D Game Engine in Java #19Starting Engine & Debug Lines | Cocoa Engine Devlog #6Physics and Stuff | Cocoa Engine Devlog #4Unit tests and Line vs Circle | Coding a 2D Physics Engine in Java #6Event Listeners | Coding Geometry Dash in Java #2Coding a Physics Engine | Cocoa Engine Devlog #7
GamesWithGabe |

Z-Index Rendering | Coding Geometry Dash in Java #20

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER