Hi all,
I have never written a game before so I just wanted to clarify one thing. I am looking at writing a physics based game using OOP (as a learning exercise so that I am more prepared to help my students) and I was just wondering about the usage of frame runtime listeners. Is it better for;
- each class / instance to have its own runtime listener. I image that this could cause the game to slowdown as more classes called their own listeners?
or
- have the runtime listener in the main file (class) and dispatch a custom event after each frame that each class will intern listen for. I think this is the better method as their is only one runtime listener and one event dispatched (just lost of ears listening).
Am I right in assuming that method 2 is better?
Thanks
Craig