Level transitions.
This commit is contained in:
parent
7fd6cf677e
commit
34b32d809b
@ -47,7 +47,7 @@ void Scenario::Draw(){
|
|||||||
vf2d textSize=game.GetPGE()->GetTextSizeProp(continueText)*textScale;
|
vf2d textSize=game.GetPGE()->GetTextSizeProp(continueText)*textScale;
|
||||||
game.GetPGE()->DrawShadowStringPropDecal(game.GetPGE()->GetScreenSize()/2-textSize/2+vf2d{0,72},continueText,{255,255,255,uint8_t(abs(sin(2*missionCompletedTimer))*255)},{0,0,0,uint8_t(abs(sin(2*missionCompletedTimer))*255)},textScale);
|
game.GetPGE()->DrawShadowStringPropDecal(game.GetPGE()->GetScreenSize()/2-textSize/2+vf2d{0,72},continueText,{255,255,255,uint8_t(abs(sin(2*missionCompletedTimer))*255)},{0,0,0,uint8_t(abs(sin(2*missionCompletedTimer))*255)},textScale);
|
||||||
if(game.GetPGE()->GetKey(SPACE).bPressed){
|
if(game.GetPGE()->GetKey(SPACE).bPressed){
|
||||||
|
transitionToNextLevel=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,11 +97,13 @@ void Textbox::Update(PixelGameEngine*pge){
|
|||||||
dialogSound->SetVolume(soundHandle,audioVolume);
|
dialogSound->SetVolume(soundHandle,audioVolume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bPressed=pge->GetMouse(0).bPressed||pge->GetMouse(1).bPressed;
|
|
||||||
}
|
}
|
||||||
maxSize.y=std::max(maxSize.y,float(pge->GetTextSizeProp(displayHeaderText).y+pge->GetTextSizeProp(displayText).y));
|
maxSize.y=std::max(maxSize.y,float(pge->GetTextSizeProp(displayHeaderText).y+pge->GetTextSizeProp(displayText).y));
|
||||||
lastLetterTime=letterDisplayDelay;
|
lastLetterTime=letterDisplayDelay;
|
||||||
}
|
}
|
||||||
|
if(textboxMarker>=int(text.length()-1)){
|
||||||
|
bPressed=pge->GetMouse(0).bPressed||pge->GetMouse(1).bPressed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user