Harton
Member
|
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
?
|
|
09-04-2011 01:20 AM |
|
Driklyn
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
Harton
Member
|
RE: Background loader not working
thanks, it is working
|
|
09-04-2011 01:32 PM |
|