I am making a basic game. When you open the app you go to a menu screen, you click "single play" and you slide over to a pre-game screen (so you can select time limit, and other options), and then you click "play" to slide over to the game.
I am structuring this by having a root view controller, RootViewController, that has 2 other controllers as instance variables, PreGameViewController (which has the options mentioned above) and GameViewController (which holds all the game logic). When you click the "single play" button on the main screen I can easily swap out the RootViewController's view for the PreGameViewController. However, the "play" button inside the PreGameViewController cannot tell the RootViewController to swap its view out for the GameViewController view can it? Somehow I need to it to tell GameViewController what settings the user chose, and then switch over to its view.
I am very new to this, so I have probably structured everything incorrectly. Any help is much appreciated...
I am structuring this by having a root view controller, RootViewController, that has 2 other controllers as instance variables, PreGameViewController (which has the options mentioned above) and GameViewController (which holds all the game logic). When you click the "single play" button on the main screen I can easily swap out the RootViewController's view for the PreGameViewController. However, the "play" button inside the PreGameViewController cannot tell the RootViewController to swap its view out for the GameViewController view can it? Somehow I need to it to tell GameViewController what settings the user chose, and then switch over to its view.
I am very new to this, so I have probably structured everything incorrectly. Any help is much appreciated...