Game Development Community

Load datablocks and audio for each level in the game. How to?

by AltiMario · in iTorque 2D · 11/04/2009 (6:36 pm) · 4 replies

Hi

Can someone post the code to do this?

Thanks

#1
11/04/2009 (6:43 pm)
datablocks are loaded by just execing the file they are in.
#2
11/04/2009 (6:46 pm)
I do not need to optimize the loading of datablocks for each level?

TGB startup load all levels datablock?
#3
11/04/2009 (8:00 pm)
Thats exactly what you need to optimize, because you otherwise will run out of memory or the app is killed by the os by taking to long to load
#4
11/05/2009 (7:59 pm)
Here is a post that helped me when I was figuring how to dynamically load datablocks. It's a pretty simple process but it helps to see how someone else has done it.

http://www.garagegames.com/community/forums/viewthread/94193