For example lets say I want to create a Visual Novel. Im trying to figure out how I can create a proper game loop where, the story will progress. So far this is what I normally do when I want to create a "story". -Check what to draw(ill explain more) -Draw Scene -Input -Rest
For checking what to draw, lets say I have Option 1 and Option 2, in a function, I would have a switch statement nested into another switch statement, in another, etc...and each switch statement would have choices 1-4 maybe, where it would draw a scene based on a number that was assigned to it under that switch statement, like this:
You have choice 1 or 2... switch(choice)
case 1: draw(asdf) switch(choice2) case 1:
case 2: draw(zxcv) switch(choice2) case 1:
I know that is definitely not how you do logic and input so I was wondering what you guys would do in a situation like this.