Hey guys, I just recently started making a bunch of classes for an RPG game type of battle system so I could get a little more experience in game making. One thing that didn't really compute right in my head is how to handle game menu's.
Basically I came up with something like this:
Dim G as Game
G.initialize
G.MainMenu
What I wanted to do what not use multiple activities, seems kinda unprofessional looking. I was thinking just make a few panels, populate them via a few classes and simply make the one's i'm not using invisible while overlapped on top of each other. The other thing I was trying to avoid doing was any kind of real coding in the main activity. I wanted to go, here you go game class, do what you want with this activity, place your controls, draw your graphics etc... etc..
But I can't seem to find a way to just pass an activity to a sub.
eg.
G.CreateMainMenu(Me)
The the class would take over from there. Maybe i'm taking the wrong approach here, what do you guys think?
Basically I came up with something like this:
Dim G as Game
G.initialize
G.MainMenu
What I wanted to do what not use multiple activities, seems kinda unprofessional looking. I was thinking just make a few panels, populate them via a few classes and simply make the one's i'm not using invisible while overlapped on top of each other. The other thing I was trying to avoid doing was any kind of real coding in the main activity. I wanted to go, here you go game class, do what you want with this activity, place your controls, draw your graphics etc... etc..
But I can't seem to find a way to just pass an activity to a sub.
eg.
G.CreateMainMenu(Me)
The the class would take over from there. Maybe i'm taking the wrong approach here, what do you guys think?