About Store Forum Documentation Contact



Post Reply 
Background loader not working
Author Message
Harton Offline
Member

Post: #1
Background loader not working
If I set
Code:
Game::World.init(Game::WORLD_MANUAL);
and then I set the field maps to be loaded
Code:
World::areaStates[World::nx+x][World::ny+y].state = Game::AREA_ACTIVE;
and I start background loader, is not loading screen appears but only at the end of the counter displayed 100%.

Does the method
Code:
Game::World.updateProgress()
all work together with
Code:
Game::WORLD_MANUAL
?
09-04-2011 01:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
RE: Background loader not working
If I remember correctly, the updateProgress method only works with Game::WORLD_STREAM (probably Game::WORLD_FULL as well), but I may be wrong about that.
09-04-2011 01:36 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Background loader not working
I've just tested it, and it works fine

Background Loader tutorial:

Memc<Game::WorldManager::AreaState> area_states;
for(Int x=-5; x<=5; x++)
for(Int y=-5; y<=5; y++)area_states.New().set(VecI2(x,y), Game::AREA_ACTIVE);
Game::World.areaSetState(area_states); // call the world update which will load the necessary data
09-04-2011 11:48 AM
Find all posts by this user Quote this message in a reply
Harton Offline
Member

Post: #4
RE: Background loader not working
thanks, it is working
09-04-2011 01:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply