a
This commit is contained in:
parent
04a7a63a25
commit
e9b2a64e43
@ -44,8 +44,8 @@ void PixelManager::displayMenu(const Position& pos, Menu& currentMenu){
|
|||||||
PlayMode PixelManager::showInitialMenu(){
|
PlayMode PixelManager::showInitialMenu(){
|
||||||
vector<string> entries {"single player","multi player (local)","exit"};
|
vector<string> entries {"single player","multi player (local)","exit"};
|
||||||
Menu initial {entries,0,nsGraphics::KRed,nsGraphics::KWhite};
|
Menu initial {entries,0,nsGraphics::KRed,nsGraphics::KWhite};
|
||||||
const unsigned xOffset = getScreenHeight() / 2 ;
|
unsigned xOffset = getScreenHeight() / 2 ;
|
||||||
const unsigned yOffset = getScreenWidth() / 2 - 90;
|
unsigned yOffset = getScreenWidth() / 2 - 90;
|
||||||
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
||||||
while(window.isOpen()){
|
while(window.isOpen()){
|
||||||
displayMenu(Position(yOffset,xOffset),initial);
|
displayMenu(Position(yOffset,xOffset),initial);
|
||||||
@ -126,8 +126,8 @@ void PixelManager::askPlayerNameMenu(playerID pID, string& name) {
|
|||||||
bool PixelManager::showDeathMenu() {
|
bool PixelManager::showDeathMenu() {
|
||||||
vector<string> entries {"retry","main menu"};
|
vector<string> entries {"retry","main menu"};
|
||||||
Menu death {entries,0,nsGraphics::KRed,nsGraphics::KWhite};
|
Menu death {entries,0,nsGraphics::KRed,nsGraphics::KWhite};
|
||||||
const unsigned xOffset = getScreenHeight() / 2 ;
|
unsigned xOffset = getScreenHeight() / 2 ;
|
||||||
const unsigned yOffset = getScreenWidth() / 2 - 90;
|
unsigned yOffset = getScreenWidth() / 2 - 90;
|
||||||
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
||||||
while(window.isOpen()){
|
while(window.isOpen()){
|
||||||
displayMenu(Position(yOffset,xOffset),death);
|
displayMenu(Position(yOffset,xOffset),death);
|
||||||
|
Loading…
Reference in New Issue
Block a user