Jump to content

How to code states for different menu screens using same resources?


Recommended Posts



I am trying to get a handle on how best to use states with common resources such as backgrounds, graphics, and audio.


In my current understanding, since each new state has a preload section that loads  its own graphics, I feel its not efficient to have to recode and reload for each new state.


I also assume that each new screen, such as splash screen, credits screen, options screen, etc, should each be its own different state, and if using common graphic background and text style, is  there a way to load only once for all states?


Or is more likely, my understanding on how to use states is wrong?

Can I use one state for several screens?


Thanks to anyone who can straighten me out :)


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...