Sounds are working...BUT...I have to make ones I own so hang on until I do that.

This commit is contained in:
Zed A. Shaw 2024-08-25 22:09:13 -04:00
parent 7309ec2f40
commit 268d8abf52
5 changed files with 75 additions and 11 deletions

17
gui.hpp
View file

@ -4,13 +4,30 @@
#include "game_engine.hpp"
#include <filesystem>
#include <string>
#include <SFML/Audio.hpp>
class GUI {
vector<string> lines;
sf::Sound you_died_sound;
sf::Sound build_works_sound;
sf::Sound build_failed_sound;
sf::Sound building_sound;
sf::SoundBuffer you_died_buffer;
sf::SoundBuffer build_works_buffer;
sf::SoundBuffer build_failed_buffer;
sf::SoundBuffer building_buffer;
public:
GUI();
void output(const string &msg);
int main_loop(GameEngine &game, std::function<bool()> runner);
void build_works();
void build_failed(const string &command);
void you_died();
void building();
};