I'm creating a first-person game like Myst.
There tends to be a lot of "switch" puzzles, like open and closed doors, levers pulled and pushed, lights that can be switched on and off, etc. How would you recommend saving all this state information?
My initial thought was having a separate background image for each state, though we're limited to 5 backgrounds per room. The number of states will exceed that in some rooms. (e.g. light on, door closed, window open) is 2x2x2 = 8 combinations meaning 8 possible renderings to show.
Is there a way to "replace" the background image with a custom one in code?
How would you implement this?
Thank you
There tends to be a lot of "switch" puzzles, like open and closed doors, levers pulled and pushed, lights that can be switched on and off, etc. How would you recommend saving all this state information?
My initial thought was having a separate background image for each state, though we're limited to 5 backgrounds per room. The number of states will exceed that in some rooms. (e.g. light on, door closed, window open) is 2x2x2 = 8 combinations meaning 8 possible renderings to show.
Is there a way to "replace" the background image with a custom one in code?
How would you implement this?
Thank you