u/shinybewear

Need help with isometric sprite sorting

I have a 2D engine I've been working on for a few months. I already have a basic 2D rendering pipeline with draw order sorting, and you can inject custom draw order algorithms into the renderer. But the game I would like to make in my engine is isometric which cant rely on basic y ordinate sorting. Also the game wont use tiles or a tilemap, just hand drawn arbitrary sprites. Are there any algorithms that let me sort isometric sprites comprehensively? The main thing is just sprites that move (such as player, enemies, projectiles etc) because I can just hard code layers for static sprites like walls and floor and clutter. If anyone can help I'd greatly appreciate it!!

reddit.com
u/shinybewear — 2 days ago