Skip to content

this is an upgraded example for the ResourceLoader lib from Bartek Wilczyński, find more info about it here: http://bit.ly/KCtJUl

Notifications You must be signed in to change notification settings

Devil-of-Chaos/ResourceLoaderTest

 
 

Repository files navigation

Works with the latest version of Cocos2D.

##Usage

// load resources
ResourcesLoader *loader = [ResourcesLoader sharedLoader];
NSArray *extensions = [NSArray arrayWithObjects:@"png", @"wav", nil];

for (NSString *extension in extensions) {
	NSArray *paths = [[NSBundle mainBundle] pathsForResourcesOfType:extension inDirectory:nil];
	for (NSString *filename in paths) {
		filename = [[filename componentsSeparatedByString:@"/"] lastObject];
		[loader addResources:filename, nil];
	}
}

// load it async
[loader loadResources:self];

About

this is an upgraded example for the ResourceLoader lib from Bartek Wilczyński, find more info about it here: http://bit.ly/KCtJUl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published