Level transitions.

master
sigonasr2 1 year ago
parent 7fd6cf677e
commit 34b32d809b
  1. 2
      olcCodeJam2023Entry/Scenario.cpp
  2. 4
      olcCodeJam2023Entry/Textbox.cpp
  3. 2
      olcCodeJam2023Entry/pge.js
  4. BIN
      olcCodeJam2023Entry/pge.wasm

@ -47,7 +47,7 @@ void Scenario::Draw(){
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);
if(game.GetPGE()->GetKey(SPACE).bPressed){
transitionToNextLevel=true;
}
}
}

@ -97,11 +97,13 @@ void Textbox::Update(PixelGameEngine*pge){
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));
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…
Cancel
Save