Iotagames / Untitled

Cyber game
2 stars 0 forks source link

Background and HUD Layering #11

Closed lolwat999 closed 12 years ago

lolwat999 commented 12 years ago

I think the easiest way to go about this is to have one ArrayList of GameStates for the background layers, and another for the HUD layers. It will both be updated and drawn in the order of Background -> Main -> HUD.

Since each layer is its own GameState, you enforce both drawing and updating rules, but never interfere with the interactions of any of the other states.

Sounds like a good enough idea.

lolwat999 commented 12 years ago

Done.