Hi anyone.
I have implemented a lot of functionality based on the book. but now i find myself lost and going around in circles.
I have written a decent sized game in XNA in the past and the source was a big steaming pile by the end, because i didn't really have an architecture to follow and I just jumped in. This was partially due to not knowing where to look for help.
Needless to say since finding this book found a renewed interest in game development because the concepts are exactly what i needed in my original attempt.
With that said, my issue is with the onupdate() and ontick() calls. I cannot organise it in my brain. To me i thought they were the same thing.
I can see that Gameapp.onupdate() calls the ticks event manager and then also calls onupdate for logic.
Is there any difference conceptually??
And after this i saw the EvtData_Update_Tick event defined with just one data member, delta time. This lead me to the thought that all subsytems with a vtick() function would register a listener for this event and be called via event handling of EvtData_Update_Tick event. Which sounds good to me. Which just brought me back to my original question.
And this brings up another question, if i were on the right track with the EvtData_Update_Tick event being handled by subsystems with vtick functions, then where can i find where this event is ever created and sent to the event queue.
Wow, i've never written a novel before and let me tell you, i''m exhausted.
Thank you in advance.
I have implemented a lot of functionality based on the book. but now i find myself lost and going around in circles.
I have written a decent sized game in XNA in the past and the source was a big steaming pile by the end, because i didn't really have an architecture to follow and I just jumped in. This was partially due to not knowing where to look for help.
Needless to say since finding this book found a renewed interest in game development because the concepts are exactly what i needed in my original attempt.
With that said, my issue is with the onupdate() and ontick() calls. I cannot organise it in my brain. To me i thought they were the same thing.
I can see that Gameapp.onupdate() calls the ticks event manager and then also calls onupdate for logic.
Is there any difference conceptually??
And after this i saw the EvtData_Update_Tick event defined with just one data member, delta time. This lead me to the thought that all subsytems with a vtick() function would register a listener for this event and be called via event handling of EvtData_Update_Tick event. Which sounds good to me. Which just brought me back to my original question.
And this brings up another question, if i were on the right track with the EvtData_Update_Tick event being handled by subsystems with vtick functions, then where can i find where this event is ever created and sent to the event queue.
Wow, i've never written a novel before and let me tell you, i''m exhausted.
Thank you in advance.