isopen
This commit is contained in:
parent
4978e8ab18
commit
09bce989d2
@ -47,7 +47,7 @@ PlayMode PixelManager::showInitialMenu(){
|
|||||||
const unsigned xOffset = getScreenHeight() / 2 ;
|
const unsigned xOffset = getScreenHeight() / 2 ;
|
||||||
const unsigned yOffset = getScreenWidth() / 2 - 90;
|
const unsigned yOffset = getScreenWidth() / 2 - 90;
|
||||||
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
||||||
while(true){
|
while(window.isOpen()){
|
||||||
displayMenu(Position(yOffset,xOffset),initial);
|
displayMenu(Position(yOffset,xOffset),initial);
|
||||||
// go down
|
// go down
|
||||||
if (window.isPressed({'s', false})){
|
if (window.isPressed({'s', false})){
|
||||||
@ -80,7 +80,7 @@ string PixelManager::nameMenu(playerID pID){
|
|||||||
string name (6,'A');
|
string name (6,'A');
|
||||||
size_t currentSelected = 0 ;
|
size_t currentSelected = 0 ;
|
||||||
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
||||||
while (true){
|
while (window.isOpen()){
|
||||||
startFrame();
|
startFrame();
|
||||||
drawMenuBackground();
|
drawMenuBackground();
|
||||||
displayText(Position(600,100),"Nom du joueur "+ string(1,pID));
|
displayText(Position(600,100),"Nom du joueur "+ string(1,pID));
|
||||||
@ -127,7 +127,7 @@ PlayMode PixelManager::showDeathMenu() {
|
|||||||
const unsigned xOffset = getScreenHeight() / 2 ;
|
const unsigned xOffset = getScreenHeight() / 2 ;
|
||||||
const unsigned yOffset = getScreenWidth() / 2 - 90;
|
const unsigned yOffset = getScreenWidth() / 2 - 90;
|
||||||
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
||||||
while(true){
|
while(window.isOpen()){
|
||||||
displayMenu(Position(yOffset,xOffset),death);
|
displayMenu(Position(yOffset,xOffset),death);
|
||||||
// go down
|
// go down
|
||||||
if (window.isPressed({'s', false})){
|
if (window.isPressed({'s', false})){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user