Some jank test visual effects are working.

This commit is contained in:
Zed A. Shaw 2024-10-04 18:23:14 -04:00
parent 243d15c123
commit f9bf8f06ea
4 changed files with 66 additions and 18 deletions

View file

@ -30,7 +30,6 @@ enum class Value {
};
class GUI {
sf::Color color(Value val);
Map $game_map;
sf::SoundBuffer $hit_buf;
sf::Sound $hit_sound;
@ -44,6 +43,8 @@ class GUI {
Canvas $canvas;
sf::Font $font;
sf::Text $text;
bool $shake_it = false;
bool $burn_baby_burn = false;
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> $converter;
sf::RenderWindow $window;
Screen $screen;
@ -53,9 +54,13 @@ public:
// disable copying
GUI(GUI &gui) = delete;
sf::Color color(Value val);
sf::Color color(int val);
void create_renderer();
void render_scene();
void handle_events();
void shake();
void burn();
int main();
};