Use pointers for the stuff so it can lazy load.

This commit is contained in:
Zed A. Shaw 2025-04-21 23:44:12 -04:00
parent f5f8cdba37
commit 10ecf50bc0
2 changed files with 9 additions and 20 deletions

View file

@ -51,10 +51,6 @@ class SFMLBackend {
sf::RenderWindow window;
std::shared_ptr<sf::Sprite> face_sprite = nullptr;
std::shared_ptr<sf::Texture> face_texture = nullptr;
std::shared_ptr<sf::Sprite> stop_button = nullptr;
std::shared_ptr<sf::Texture> stop_texture = nullptr;
std::shared_ptr<sf::Sprite> start_button = nullptr;
std::shared_ptr<sf::Texture> start_texture = nullptr;
std::chrono::time_point<std::chrono::system_clock> clock_start;
Button buttons = Button::STOP;
int hit_points = 50;