MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / F_MainMenu

Function F_MainMenu

Project_Labirint_Game/olaf-game.cpp:46–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46void F_MainMenu() {
47 window.clear(sf::Color::White);
48 window.draw(MainMenu);
49 window.display();
50
51 //Start Game
52 if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Numpad1)) {
53 //sound_Rington.play();
54 F_Start();
55 }
56 //Help Desck
57 if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Numpad2)) {
58 //sound_Rington.play();
59 F_Help();
60 }
61 //Developers
62 if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Numpad3)) {
63 //sound_Rington.play();
64 F_Developers();
65 }
66 //Quit
67 if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Numpad4)) {
68 //sound_Rington.play();
69 F_Quit();
70 }
71}
72
73
74void F_Help() {

Callers 3

F_HelpFunction · 0.85
F_QuitFunction · 0.85
mainFunction · 0.85

Calls 5

F_StartFunction · 0.85
F_HelpFunction · 0.85
F_QuitFunction · 0.85
F_DevelopersFunction · 0.70
displayMethod · 0.45

Tested by

no test coverage detected