Hi there!
I have a question about the basics, fundaments of using events.
What are the major advantages of using events?
OK, I know it should split some parts and make easier the programming, and other things... well, I want to know your opinion, and of course mike's too!
I never developed a "big game", only very little ones, and for example, in the update method of the main character is where I used to check the user input...
Something like this...
Display All
But now, using the event manager we would have something like this... (right?)
Checking input...
Updating game logic...
Why should we do things like that?
I also wonder if the "event traffic" is much too overload for checking the game logic. Is it worthable? // Besides, of course, of having to develop a Event Manager class...
The thing is we will have hundreds of events per frame, right?
If this paradigm is being used in "big games" like Ultima and other AAA titles, is because this is a good way to go!, but I would like the real reasons, as I didn't really get it reading the book...
Sorry for the n00b question (and my poor English)
Thanks in advance!
I have a question about the basics, fundaments of using events.
What are the major advantages of using events?
OK, I know it should split some parts and make easier the programming, and other things... well, I want to know your opinion, and of course mike's too!
I never developed a "big game", only very little ones, and for example, in the update method of the main character is where I used to check the user input...
Something like this...
Source Code
But now, using the event manager we would have something like this... (right?)
Checking input...
Updating game logic...
Why should we do things like that?
I also wonder if the "event traffic" is much too overload for checking the game logic. Is it worthable? // Besides, of course, of having to develop a Event Manager class...
The thing is we will have hundreds of events per frame, right?
If this paradigm is being used in "big games" like Ultima and other AAA titles, is because this is a good way to go!, but I would like the real reasons, as I didn't really get it reading the book...
Sorry for the n00b question (and my poor English)
Thanks in advance!