@mohaxomaxa wrote:
Hi! I have a question for you guys about the base.Initialize(), base.Draw() and base.Update() methods.
From what I read in the documentation, calls to base.Initialize(), base.Draw() and base.Update() are included in the Initialize(), Draw() and Update() methods of the main class for the sake of initializing, updating and drawing all Game Components. However, I've seen opinions on StackExchange a while back (sorry, I'm not able to find these posts anymore so no link) that Game Components are obsolete, and it's not a good idea to rely on them. I think it had something to do with you having no control over the order in which the components are updated and drawn.
Soooo, is there any point to calling these base methods anymore?
From what I can see the base.Draw() and base.Update() calls can be omitted with no further action required, and if you manually call LoadContent() at the end of Initialize(), you can omit calling base.Initialize() as well. Is there any other reason for calling those?
Thanks in advance for your replies
Posts: 4
Participants: 3