Loading system and OnNextFrame
Posted: Sep 15, 2010 @ 2:54am
Hi,
I am making a class (a module) which loads the assets of my game for a specific "screen".
While the screen's assets are being loaded, I would like to have a loading screen (with some animated/translated/rotated/whatever surfaces) that plays all along. My EdgeMain/ClassMain class deals with all the logic (animating, translating, etc.), so I would have to call it everytime a number (1 to 10 for example) of assets have been loaded.
I was wondering what was the way to do so ? Should I call by hand the OnNextFrame of my ClassMain class ? The problem is I would have to give a timedelta (see the function's declaration) and I would have to give a timedelta (which would have to be 0 or an arbitrary number as my Asset Loading Module doesn't keep track of the timedelta).
Is this timedelta overwritten by the EdgeLib ? (I which would be great, because I use it for my time-based animation and rotation).
Do I have to (and must) use my module's OnNextFrame function of my Asset Loading Module(which I would rather avoid) to do the loading of my assets so as to have a timedelta to give to my ClassMain ?
Well, that's pretty much all, and oh, I hope I've been clear.
Thank you very much
I am making a class (a module) which loads the assets of my game for a specific "screen".
While the screen's assets are being loaded, I would like to have a loading screen (with some animated/translated/rotated/whatever surfaces) that plays all along. My EdgeMain/ClassMain class deals with all the logic (animating, translating, etc.), so I would have to call it everytime a number (1 to 10 for example) of assets have been loaded.
I was wondering what was the way to do so ? Should I call by hand the OnNextFrame of my ClassMain class ? The problem is I would have to give a timedelta (see the function's declaration) and I would have to give a timedelta (which would have to be 0 or an arbitrary number as my Asset Loading Module doesn't keep track of the timedelta).
Is this timedelta overwritten by the EdgeLib ? (I which would be great, because I use it for my time-based animation and rotation).
Do I have to (and must) use my module's OnNextFrame function of my Asset Loading Module(which I would rather avoid) to do the loading of my assets so as to have a timedelta to give to my ClassMain ?
Well, that's pretty much all, and oh, I hope I've been clear.
Thank you very much