2D game programmers, do you prefer to give each visual a priority value and then sort them at render time, or do you like to hard code the draw order manually (e.g. background.draw(), characters.draw(), foreground.draw(), etc)
-
Show this thread
-
Replying to @AxiomVerge
I did a hard coded draw order for my really early GBA/DS projects, then moved to priority values. When I moved to 3DS, I added a 3D depth value to each sprite. Sort is by 3D depth first, priority second. Nicely handles things like particles with 3D movement.
1 reply 0 retweets 5 likes
Replying to @EdDiGeronimo
I didn't even think about 3ds... you definitely want a z value of some kind there
11:19 PM - 1 Aug 2018
from Enterprise, NV
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.