Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| f43544d15d |
19 changed files with 2379 additions and 2063 deletions
|
|
@ -23,7 +23,7 @@ public:
|
|||
animations.emplace_back(explosion, getSize()*65, getXPos(), getYPos(), 0, angle(gen));
|
||||
animations[animations.size() - 1].makeAnimated(5, 5, 0.01,23);
|
||||
|
||||
sound.setVolume(100.0/((4-size)/1.5));
|
||||
sound.setVolume(100.0/(4-size));
|
||||
sound.play();
|
||||
}
|
||||
|
||||
|
|
|
|||
6
Game.h
6
Game.h
|
|
@ -16,7 +16,7 @@ private:
|
|||
sf::Texture loadingBarFull;
|
||||
|
||||
//update total
|
||||
int totalTextures = 53;
|
||||
int totalTextures = 58;
|
||||
int loadedTextures = 0;
|
||||
|
||||
sf::Font oxan;
|
||||
|
|
@ -231,7 +231,7 @@ private:
|
|||
pewBuff.loadFromFile("data\\Sounds\\pew.wav");
|
||||
updateLoader(window, "Loading sounds...");
|
||||
pew.setBuffer(pewBuff);
|
||||
pew.setVolume(25);
|
||||
pew.setVolume(15);
|
||||
|
||||
Sound enemyBoom;
|
||||
SoundBuffer enemyBoomBuff;
|
||||
|
|
@ -952,8 +952,6 @@ private:
|
|||
int spaceBetween = 150 - widthEntryDate;
|
||||
int dateLoc = (window.getSize().x - (widthEntry + widthEntryDate + spaceBetween))/2;
|
||||
|
||||
cout << widthEntryDate << " " << widthEntry << " " << spaceBetween << endl;
|
||||
|
||||
highScoreEntriesDates[j].setPosition(dateLoc, window.getSize().y/1.8 + (25 * j));
|
||||
highScoreEntries[j].setPosition(dateLoc + 150, window.getSize().y/1.8 + (25 * j));
|
||||
}
|
||||
|
|
|
|||
313
Menu.h
313
Menu.h
|
|
@ -224,12 +224,202 @@ private:
|
|||
musicText1.setFillColor(sf::Color::White);
|
||||
musicText1.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text images("MillionthVector - ", monkirta, 20);
|
||||
images.setOrigin(images.getGlobalBounds().width/2, images.getGlobalBounds().height/2);
|
||||
images.setPosition(mainView.getSize().x/(float)6.75, mainView.getSize().y/(float)2 + mainView.getSize().y/(float)4.9);
|
||||
images.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text imagesText("Images", oxan, 15);
|
||||
imagesText.setPosition(mainView.getSize().x/(float)6.75 + images.getGlobalBounds().width/2, mainView.getSize().y/(float)2 + mainView.getSize().y/(float)4.975);
|
||||
imagesText.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text imagesLabel("Website - ", monkirta, 15);
|
||||
imagesLabel.setPosition(mainView.getSize().x/(float)11.5, mainView.getSize().y/(float)2 + mainView.getSize().y/(float)4.4);
|
||||
imagesLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text imagesText0("http://millionthvector.blogspot.com/", oxan, 12);
|
||||
imagesText0.setPosition(mainView.getSize().x/(float)11.5 + imagesLabel.getGlobalBounds().width, mainView.getSize().y/(float)2 + mainView.getSize().y/(float)4.3);
|
||||
imagesText0.setFillColor(sf::Color::White);
|
||||
imagesText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text gui("CraftPix.net - ", monkirta, 20);
|
||||
gui.setOrigin(gui.getGlobalBounds().width/2, gui.getGlobalBounds().height/2);
|
||||
gui.setPosition(mainView.getSize().x/(float)7.25, mainView.getSize().y/(float)2 + mainView.getSize().y/(float)4.9 + 42);
|
||||
gui.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text guiText("Gui Elements", oxan, 15);
|
||||
guiText.setPosition(mainView.getSize().x/(float)7.25 + gui.getGlobalBounds().width/2, mainView.getSize().y/(float)2 + mainView.getSize().y/(float)4.975 + 42);
|
||||
guiText.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text guiLabel("Website - ", monkirta, 15);
|
||||
guiLabel.setPosition(mainView.getSize().x/(float)11.5, mainView.getSize().y/(float)2 + mainView.getSize().y/(float)4.4 + 42);
|
||||
guiLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text guiText0("https://craftpix.net/", oxan, 12);
|
||||
guiText0.setPosition(mainView.getSize().x/(float)11.5 + guiLabel.getGlobalBounds().width, mainView.getSize().y/(float)2 + mainView.getSize().y/(float)4.3 + 42);
|
||||
guiText0.setFillColor(sf::Color::White);
|
||||
guiText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
//Resources Box
|
||||
sf::Text resourcesTitle("Resources", xolo, 28);
|
||||
resourcesTitle.setOrigin(resourcesTitle.getGlobalBounds().width/2, resourcesTitle.getGlobalBounds().height/2);
|
||||
resourcesTitle.setPosition(mainView.getSize().x - mainView.getSize().x/(float)4.95, mainView.getSize().y/(float)4.8);
|
||||
resourcesTitle.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text bt("Button Tick", monkirta, 20);
|
||||
bt.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.1275, mainView.getSize().y/(float)3.75);
|
||||
bt.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text btLabel("Creator - ", monkirta, 15);
|
||||
btLabel.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.325);
|
||||
btLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text btText("NenadSimic", oxan, 12);
|
||||
btText.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + btLabel.getGlobalBounds().width, mainView.getSize().y/(float)3.3);
|
||||
btText.setFillColor(sf::Color::White);
|
||||
btText.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text btLabel0("Source - ", monkirta, 15);
|
||||
btLabel0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.05);
|
||||
btLabel0.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text btText0("https://freesound.org/s/268108/", oxan, 12);
|
||||
btText0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + btLabel0.getGlobalBounds().width, mainView.getSize().y/(float)3.025);
|
||||
btText0.setFillColor(sf::Color::White);
|
||||
btText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text pew("Laser 'Pews'", monkirta, 20);
|
||||
pew.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.1275, mainView.getSize().y/(float)3.75 + 58);
|
||||
pew.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text pewLabel("Creator - ", monkirta, 15);
|
||||
pewLabel.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.325 + 58);
|
||||
pewLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text pewText("SeanSecret", oxan, 12);
|
||||
pewText.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + pewLabel.getGlobalBounds().width, mainView.getSize().y/(float)3.3 + 58);
|
||||
pewText.setFillColor(sf::Color::White);
|
||||
pewText.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text pewLabel0("Source - ", monkirta, 15);
|
||||
pewLabel0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.05 + 58);
|
||||
pewLabel0.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text pewText0("https://freesound.org/s/440661/", oxan, 12);
|
||||
pewText0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + pewLabel0.getGlobalBounds().width, mainView.getSize().y/(float)3.025 + 58);
|
||||
pewText0.setFillColor(sf::Color::White);
|
||||
pewText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text life("New Life", monkirta, 20);
|
||||
life.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.1275, mainView.getSize().y/(float)3.75 + 2*58);
|
||||
life.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text lifeLabel("Creator - ", monkirta, 15);
|
||||
lifeLabel.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.325 + 2*58);
|
||||
lifeLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text lifeText("SimonBay", oxan, 12);
|
||||
lifeText.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + lifeLabel.getGlobalBounds().width, mainView.getSize().y/(float)3.3 + 2*58);
|
||||
lifeText.setFillColor(sf::Color::White);
|
||||
lifeText.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text lifeLabel0("Source - ", monkirta, 15);
|
||||
lifeLabel0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.05 + 2*58);
|
||||
lifeLabel0.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text lifeText0("https://freesound.org/s/439889/", oxan, 12);
|
||||
lifeText0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + lifeLabel0.getGlobalBounds().width, mainView.getSize().y/(float)3.025 + 2*58);
|
||||
lifeText0.setFillColor(sf::Color::White);
|
||||
lifeText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text powerUp("Power Up", monkirta, 20);
|
||||
powerUp.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.1275, mainView.getSize().y/(float)3.75 + 3*58);
|
||||
powerUp.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text powerUpLabel("Creator - ", monkirta, 15);
|
||||
powerUpLabel.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.325 + 3*58);
|
||||
powerUpLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text powerUpText("Joao_Janz", oxan, 12);
|
||||
powerUpText.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + powerUpLabel.getGlobalBounds().width, mainView.getSize().y/(float)3.3 + 3*58);
|
||||
powerUpText.setFillColor(sf::Color::White);
|
||||
powerUpText.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text powerUpLabel0("Source - ", monkirta, 15);
|
||||
powerUpLabel0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.05 + 3*58);
|
||||
powerUpLabel0.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text powerUpText0("https://freesound.org/s/478338/", oxan, 12);
|
||||
powerUpText0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + powerUpLabel0.getGlobalBounds().width, mainView.getSize().y/(float)3.025 + 3*58);
|
||||
powerUpText0.setFillColor(sf::Color::White);
|
||||
powerUpText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text playerExp("Player Explosion", monkirta, 20);
|
||||
playerExp.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.1275, mainView.getSize().y/(float)3.75 + 4*58);
|
||||
playerExp.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text playerExpLabel("Creator - ", monkirta, 15);
|
||||
playerExpLabel.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.325 + 4*58);
|
||||
playerExpLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text playerExpText("ggctuk", oxan, 12);
|
||||
playerExpText.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + playerExpLabel.getGlobalBounds().width, mainView.getSize().y/(float)3.3 + 4*58);
|
||||
playerExpText.setFillColor(sf::Color::White);
|
||||
playerExpText.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text playerExpLabel0("Source - ", monkirta, 15);
|
||||
playerExpLabel0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.05 + 4*58);
|
||||
playerExpLabel0.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text playerExpText0("https://freesound.org/s/80500/", oxan, 12);
|
||||
playerExpText0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + playerExpLabel0.getGlobalBounds().width, mainView.getSize().y/(float)3.025 + 4*58);
|
||||
playerExpText0.setFillColor(sf::Color::White);
|
||||
playerExpText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text enemyExp("Enemy Explosion", monkirta, 20);
|
||||
enemyExp.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.1275, mainView.getSize().y/(float)3.75 + 5*58);
|
||||
enemyExp.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text enemyExpLabel("Creator - ", monkirta, 15);
|
||||
enemyExpLabel.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.325 + 5*58);
|
||||
enemyExpLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text enemyExpText("Werra", oxan, 12);
|
||||
enemyExpText.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + enemyExpLabel.getGlobalBounds().width, mainView.getSize().y/(float)3.3 + 5*58);
|
||||
enemyExpText.setFillColor(sf::Color::White);
|
||||
enemyExpText.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text enemyExpLabel0("Source - ", monkirta, 15);
|
||||
enemyExpLabel0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.05 + 5*58);
|
||||
enemyExpLabel0.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text enemyExpText0("https://freesound.org/s/244394/", oxan, 12);
|
||||
enemyExpText0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + enemyExpLabel0.getGlobalBounds().width, mainView.getSize().y/(float)3.025 + 5*58);
|
||||
enemyExpText0.setFillColor(sf::Color::White);
|
||||
enemyExpText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text playerLost("Player Lost", monkirta, 20);
|
||||
playerLost.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.1275, mainView.getSize().y/(float)3.75 + 6*58);
|
||||
playerLost.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text playerLostLabel("Creator - ", monkirta, 15);
|
||||
playerLostLabel.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.325 + 6*58);
|
||||
playerLostLabel.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text playerLostText("zimbot", oxan, 12);
|
||||
playerLostText.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + playerLostLabel.getGlobalBounds().width, mainView.getSize().y/(float)3.3 + 6*58);
|
||||
playerLostText.setFillColor(sf::Color::White);
|
||||
playerLostText.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
sf::Text playerLostLabel0("Source - ", monkirta, 15);
|
||||
playerLostLabel0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195, mainView.getSize().y/(float)3.05 + 6*58);
|
||||
playerLostLabel0.setFillColor(sf::Color::White);
|
||||
|
||||
sf::Text playerLostText0("https://freesound.org/s/117323/", oxan, 12);
|
||||
playerLostText0.setPosition(mainView.getSize().x - mainView.getSize().x/(float)3.195 + playerLostLabel0.getGlobalBounds().width, mainView.getSize().y/(float)3.025 + 6*58);
|
||||
playerLostText0.setFillColor(sf::Color::White);
|
||||
playerLostText0.setStyle(sf::Text::Style::Underlined);
|
||||
|
||||
//Dev box
|
||||
sf::Text developerTitle("Developer: ", xolo, 25);
|
||||
developerTitle.setPosition(mainView.getSize().x/13, mainView.getSize().y/(float)5.2);
|
||||
|
|
@ -315,7 +505,50 @@ private:
|
|||
credits.push_back(&musicText0);
|
||||
credits.push_back(&musicLabel0);
|
||||
credits.push_back(&musicText1);
|
||||
credits.push_back(&images);
|
||||
credits.push_back(&imagesText);
|
||||
credits.push_back(&imagesLabel);
|
||||
credits.push_back(&imagesText0);
|
||||
credits.push_back(&gui);
|
||||
credits.push_back(&guiText);
|
||||
credits.push_back(&guiLabel);
|
||||
credits.push_back(&guiText0);
|
||||
credits.push_back(&resourcesTitle);
|
||||
credits.push_back(&bt);
|
||||
credits.push_back(&btLabel);
|
||||
credits.push_back(&btText);
|
||||
credits.push_back(&btLabel0);
|
||||
credits.push_back(&btText0);
|
||||
credits.push_back(&pew);
|
||||
credits.push_back(&pewLabel);
|
||||
credits.push_back(&pewText);
|
||||
credits.push_back(&pewLabel0);
|
||||
credits.push_back(&pewText0);
|
||||
credits.push_back(&life);
|
||||
credits.push_back(&lifeLabel);
|
||||
credits.push_back(&lifeText);
|
||||
credits.push_back(&lifeLabel0);
|
||||
credits.push_back(&lifeText0);
|
||||
credits.push_back(&powerUp);
|
||||
credits.push_back(&powerUpLabel);
|
||||
credits.push_back(&powerUpText);
|
||||
credits.push_back(&powerUpLabel0);
|
||||
credits.push_back(&powerUpText0);
|
||||
credits.push_back(&playerExp);
|
||||
credits.push_back(&playerExpLabel);
|
||||
credits.push_back(&playerExpText);
|
||||
credits.push_back(&playerExpLabel0);
|
||||
credits.push_back(&playerExpText0);
|
||||
credits.push_back(&enemyExp);
|
||||
credits.push_back(&enemyExpLabel);
|
||||
credits.push_back(&enemyExpText);
|
||||
credits.push_back(&enemyExpLabel0);
|
||||
credits.push_back(&enemyExpText0);
|
||||
credits.push_back(&playerLost);
|
||||
credits.push_back(&playerLostLabel);
|
||||
credits.push_back(&playerLostText);
|
||||
credits.push_back(&playerLostLabel0);
|
||||
credits.push_back(&playerLostText0);
|
||||
credits.push_back(&developer);
|
||||
credits.push_back(&devLabel);
|
||||
credits.push_back(&devText);
|
||||
|
|
@ -448,6 +681,54 @@ private:
|
|||
} else if (musicText1.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://soundcloud.com/riverethans", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (imagesText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "http://millionthvector.blogspot.com/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (guiText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://craftpix.net/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (btText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/people/NenadSimic/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (btText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/s/268108/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (pewText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/people/SeanSecret/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (pewText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/s/440661/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (lifeText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/people/SimonBay/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (lifeText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/s/439889/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (powerUpText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/people/Joao_Janz/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (powerUpText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/s/478338/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (playerExpText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/people/ggctuk/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (playerExpText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/s/80500/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (enemyExpText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/people/Werra/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (enemyExpText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/s/244394/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (playerLostText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/people/zimbot/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (playerLostText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
ShellExecute(nullptr, "open", "https://freesound.org/s/117323/", nullptr, nullptr, SW_SHOWNORMAL);
|
||||
} else if (backButton.getGlobalBounds().contains(mousePosF) && screen == CREDITS) {
|
||||
playBip();
|
||||
screen = MENU;
|
||||
|
|
@ -477,6 +758,22 @@ private:
|
|||
else if (devText2.getGlobalBounds().contains(mousePosF) && screen == CREDITS) devText2.setFillColor(sf::Color::Red);
|
||||
else if (musicText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) musicText0.setFillColor(sf::Color::Red);
|
||||
else if (musicText1.getGlobalBounds().contains(mousePosF) && screen == CREDITS) musicText1.setFillColor(sf::Color::Red);
|
||||
else if (imagesText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) imagesText0.setFillColor(sf::Color::Red);
|
||||
else if (guiText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) guiText0.setFillColor(sf::Color::Red);
|
||||
else if (btText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) btText.setFillColor(sf::Color::Red);
|
||||
else if (btText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) btText0.setFillColor(sf::Color::Red);
|
||||
else if (pewText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) pewText.setFillColor(sf::Color::Red);
|
||||
else if (pewText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) pewText0.setFillColor(sf::Color::Red);
|
||||
else if (lifeText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) lifeText.setFillColor(sf::Color::Red);
|
||||
else if (lifeText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) lifeText0.setFillColor(sf::Color::Red);
|
||||
else if (powerUpText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) powerUpText.setFillColor(sf::Color::Red);
|
||||
else if (powerUpText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) powerUpText0.setFillColor(sf::Color::Red);
|
||||
else if (playerExpText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) playerExpText.setFillColor(sf::Color::Red);
|
||||
else if (playerExpText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) playerExpText0.setFillColor(sf::Color::Red);
|
||||
else if (enemyExpText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) enemyExpText.setFillColor(sf::Color::Red);
|
||||
else if (enemyExpText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) enemyExpText0.setFillColor(sf::Color::Red);
|
||||
else if (playerLostText.getGlobalBounds().contains(mousePosF) && screen == CREDITS) playerLostText.setFillColor(sf::Color::Red);
|
||||
else if (playerLostText0.getGlobalBounds().contains(mousePosF) && screen == CREDITS) playerLostText0.setFillColor(sf::Color::Red);
|
||||
else if (backButton.getGlobalBounds().contains(mousePosF) && screen == CREDITS) backButton.setColor(sf::Color::Red);
|
||||
else if (soundButton.getGlobalBounds().contains(mousePosF) && soundOn && screen == MENU) soundButton.setColor(sf::Color::Red);
|
||||
else if (musicButton.getGlobalBounds().contains(mousePosF) && musicOn && screen == MENU) musicButton.setColor(sf::Color::Red);
|
||||
|
|
@ -495,6 +792,22 @@ private:
|
|||
if (!devText2.getGlobalBounds().contains(mousePosF)) devText2.setFillColor(sf::Color::White);
|
||||
if (!musicText0.getGlobalBounds().contains(mousePosF)) musicText0.setFillColor(sf::Color::White);
|
||||
if (!musicText1.getGlobalBounds().contains(mousePosF)) musicText1.setFillColor(sf::Color::White);
|
||||
if (!imagesText0.getGlobalBounds().contains(mousePosF)) imagesText0.setFillColor(sf::Color::White);
|
||||
if (!guiText0.getGlobalBounds().contains(mousePosF)) guiText0.setFillColor(sf::Color::White);
|
||||
if (!btText.getGlobalBounds().contains(mousePosF)) btText.setFillColor(sf::Color::White);
|
||||
if (!btText0.getGlobalBounds().contains(mousePosF)) btText0.setFillColor(sf::Color::White);
|
||||
if (!pewText.getGlobalBounds().contains(mousePosF)) pewText.setFillColor(sf::Color::White);
|
||||
if (!pewText0.getGlobalBounds().contains(mousePosF)) pewText0.setFillColor(sf::Color::White);
|
||||
if (!lifeText.getGlobalBounds().contains(mousePosF)) lifeText.setFillColor(sf::Color::White);
|
||||
if (!lifeText0.getGlobalBounds().contains(mousePosF)) lifeText0.setFillColor(sf::Color::White);
|
||||
if (!powerUpText.getGlobalBounds().contains(mousePosF)) powerUpText.setFillColor(sf::Color::White);
|
||||
if (!powerUpText0.getGlobalBounds().contains(mousePosF)) powerUpText0.setFillColor(sf::Color::White);
|
||||
if (!playerExpText.getGlobalBounds().contains(mousePosF)) playerExpText.setFillColor(sf::Color::White);
|
||||
if (!playerExpText0.getGlobalBounds().contains(mousePosF)) playerExpText0.setFillColor(sf::Color::White);
|
||||
if (!enemyExpText.getGlobalBounds().contains(mousePosF)) enemyExpText.setFillColor(sf::Color::White);
|
||||
if (!enemyExpText0.getGlobalBounds().contains(mousePosF)) enemyExpText0.setFillColor(sf::Color::White);
|
||||
if (!playerLostText.getGlobalBounds().contains(mousePosF)) playerLostText.setFillColor(sf::Color::White);
|
||||
if (!playerLostText0.getGlobalBounds().contains(mousePosF)) playerLostText0.setFillColor(sf::Color::White);
|
||||
if (!backButton.getGlobalBounds().contains(mousePosF)) backButton.setColor(defButtonColor);
|
||||
if (!soundButton.getGlobalBounds().contains(mousePosF) && soundOn) soundButton.setColor(sf::Color::White);
|
||||
if (!musicButton.getGlobalBounds().contains(mousePosF) && musicOn) musicButton.setColor(sf::Color::White);
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7
scores
7
scores
|
|
@ -1,5 +1,10 @@
|
|||
19/10/2020 107800
|
||||
19/10/2020 12100
|
||||
19/10/2020 8700
|
||||
21/10/2020 4900
|
||||
21/10/2020 2300
|
||||
21/10/2020 2100
|
||||
21/10/2020 1400
|
||||
19/10/2020 1300
|
||||
19/10/2020 100
|
||||
21/10/2020 800
|
||||
21/10/2020 200
|
||||
Loading…
Add table
Add a link
Reference in a new issue