Last time people told me about data driven style of game programming.
Now I want to finish this part first, then consider data driven later.
I learn that a game should be data+event driven,
With the event driven part,
a class would have something like
OnLeftClick
OnUpdate
OnRender
On... whatever,
What are the principles behind all these?
cause I don't want to do this.
do {
assignWork();
findPath();
work();
} while (!finished)
Thanks
Jack