This commit is contained in:
Djalim Simaila 2022-01-09 15:58:45 +01:00
parent 4978e8ab18
commit 09bce989d2

View File

@ -47,7 +47,7 @@ PlayMode PixelManager::showInitialMenu(){
const unsigned xOffset = getScreenHeight() / 2 ;
const unsigned yOffset = getScreenWidth() / 2 - 90;
chrono::milliseconds waitTime = chrono::milliseconds(100);
while(true){
while(window.isOpen()){
displayMenu(Position(yOffset,xOffset),initial);
// go down
if (window.isPressed({'s', false})){
@ -80,7 +80,7 @@ string PixelManager::nameMenu(playerID pID){
string name (6,'A');
size_t currentSelected = 0 ;
chrono::milliseconds waitTime = chrono::milliseconds(100);
while (true){
while (window.isOpen()){
startFrame();
drawMenuBackground();
displayText(Position(600,100),"Nom du joueur "+ string(1,pID));
@ -127,7 +127,7 @@ PlayMode PixelManager::showDeathMenu() {
const unsigned xOffset = getScreenHeight() / 2 ;
const unsigned yOffset = getScreenWidth() / 2 - 90;
chrono::milliseconds waitTime = chrono::milliseconds(100);
while(true){
while(window.isOpen()){
displayMenu(Position(yOffset,xOffset),death);
// go down
if (window.isPressed({'s', false})){