|
|
@ -27,10 +27,10 @@ void State_OverworldMap::OnStateChange(GameState*prevState){ |
|
|
|
game->GetPlayer()->SetState(State::FORCE_WALK); |
|
|
|
game->GetPlayer()->SetState(State::FORCE_WALK); |
|
|
|
game->GetPlayer()->SetSizeMult(1); |
|
|
|
game->GetPlayer()->SetSizeMult(1); |
|
|
|
game->camera.MoveCamera(currentConnectionPoint->rect.middle()+vf2d{game->GetScreenSize().x/6.0f,0}); |
|
|
|
game->camera.MoveCamera(currentConnectionPoint->rect.middle()+vf2d{game->GetScreenSize().x/6.0f,0}); |
|
|
|
COMPONENT(MenuLabel,OVERWORLD_LEVEL_SELECT,"Chapter Label")->SetLabel("Chapter "+std::to_string(game->GetCurrentChapter())); |
|
|
|
Component<MenuLabel>(OVERWORLD_LEVEL_SELECT,"Chapter Label")->SetLabel("Chapter "+std::to_string(game->GetCurrentChapter())); |
|
|
|
COMPONENT(MenuLabel,OVERWORLD_LEVEL_SELECT,"Stage Label")->SetLabel(currentConnectionPoint->name); |
|
|
|
Component<MenuLabel>(OVERWORLD_LEVEL_SELECT,"Stage Label")->SetLabel(currentConnectionPoint->name); |
|
|
|
COMPONENT(EncountersSpawnListScrollableWindowComponent,OVERWORLD_LEVEL_SELECT,"Spawns List")->UpdateSpawns(currentConnectionPoint->spawns); |
|
|
|
Component<EncountersSpawnListScrollableWindowComponent>(OVERWORLD_LEVEL_SELECT,"Spawns List")->UpdateSpawns(currentConnectionPoint->spawns); |
|
|
|
COMPONENT(MenuComponent,OVERWORLD_LEVEL_SELECT,"Enter Button")->Enable(currentConnectionPoint->levelDataExists); |
|
|
|
Component<MenuComponent>(OVERWORLD_LEVEL_SELECT,"Enter Button")->Enable(currentConnectionPoint->levelDataExists); |
|
|
|
Menu::OpenMenu(OVERWORLD_LEVEL_SELECT,false); |
|
|
|
Menu::OpenMenu(OVERWORLD_LEVEL_SELECT,false); |
|
|
|
}; |
|
|
|
}; |
|
|
|
void State_OverworldMap::OnUserUpdate(Crawler*game){ |
|
|
|
void State_OverworldMap::OnUserUpdate(Crawler*game){ |
|
|
@ -66,9 +66,9 @@ void State_OverworldMap::OnUserUpdate(Crawler*game){ |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
game->GetPlayer()->UpdateWalkingAnimation(LEFT); |
|
|
|
game->GetPlayer()->UpdateWalkingAnimation(LEFT); |
|
|
|
} |
|
|
|
} |
|
|
|
COMPONENT(MenuLabel,OVERWORLD_LEVEL_SELECT,"Stage Label")->SetLabel(currentConnectionPoint->name); |
|
|
|
Component<MenuLabel>(OVERWORLD_LEVEL_SELECT,"Stage Label")->SetLabel(currentConnectionPoint->name); |
|
|
|
COMPONENT(EncountersSpawnListScrollableWindowComponent,OVERWORLD_LEVEL_SELECT,"Spawns List")->UpdateSpawns(currentConnectionPoint->spawns); |
|
|
|
Component<EncountersSpawnListScrollableWindowComponent>(OVERWORLD_LEVEL_SELECT,"Spawns List")->UpdateSpawns(currentConnectionPoint->spawns); |
|
|
|
COMPONENT(MenuComponent,OVERWORLD_LEVEL_SELECT,"Enter Button")->Enable(currentConnectionPoint->levelDataExists); |
|
|
|
Component<MenuComponent>(OVERWORLD_LEVEL_SELECT,"Enter Button")->Enable(currentConnectionPoint->levelDataExists); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|