By jlnr (dev)
Date 2010-08-01 00:30
My game is seperated into game states, as seen in Chingu or benko's shooter example game. One of them is a menu with a background (Z_MENU_BG) and two buttons (Z_MENU_BUTTONS). Now I want to draw a dialog on top of that which has a background and buttons itself, drawn with the same Z values. To be sure that Gosu doesn't first draw both background, then both buttons, I need to flush/separate the Z ordering between drawing both things. Which is exactly what this new method will do in 0.7.23.
I run into lots of little things that I need lately, like this tiny method. At the same time I am concerned that Gosu's interface will get all wobbly and bloaty until I am done.
Any other suggestions for the name, or any other ideas so I don't have to add *yet another method* which is going to be called only a dozen times in Gosu's existence? ;) Does flushZ()/flush_z make it more clear?
Loading...