Need the hit.wav to be mono, but now we have a sound we can move around, just not sure how to place it based on the visuals.
This commit is contained in:
parent
9102bdc8ad
commit
4ed06b10b1
11 changed files with 144 additions and 41 deletions
4
gui.hpp
4
gui.hpp
|
@ -1,5 +1,4 @@
|
|||
#pragma once
|
||||
#include <SFML/Audio.hpp>
|
||||
#include <SFML/Graphics/Color.hpp>
|
||||
#include <SFML/Graphics/Font.hpp>
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
|
@ -13,6 +12,7 @@
|
|||
#include <string>
|
||||
#include "map.hpp"
|
||||
#include "dinkyecs.hpp"
|
||||
#include "sound.hpp"
|
||||
|
||||
using std::string;
|
||||
using ftxui::Canvas, ftxui::Component, ftxui::Screen;
|
||||
|
@ -37,8 +37,6 @@ enum class Value {
|
|||
|
||||
class GUI {
|
||||
Map $game_map;
|
||||
sf::SoundBuffer $hit_buf;
|
||||
sf::Sound $hit_sound;
|
||||
string $status_text = "NOT DEAD";
|
||||
Component $document;
|
||||
Component $map_view;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue