@@ -6,7 +6,7 @@
void DummyState::update(GameStateManager& gsm, std::chrono::milliseconds delta_time)
{
time_in_state_ += delta_time;
- quit_button_.set_on_click([&gsm] mutable{
+ quit_button_.set_on_click([&gsm] {
gsm.pop_state();
});
quit_button_.update();
@@ -14,7 +14,7 @@ public:
private:
std::chrono::milliseconds time_in_state_{0};
- Button quit_button_{"Test", 15, 15, 300, 80};
+ Button quit_button_{"Quit", 15, 15, 800, 80};
};
#endif // SNAKE_DUMMYSTATE_HXX
@@ -133,7 +133,7 @@ Button::Button(std::string title, int x, int y, int w, int h)
return AssetManager::instance().get_texture_asset("blue_button_down.png");
font_ = std::async(std::launch::deferred, [] {
- return AssetManager::instance().get_font_asset("kenvector_future.ttf");
+ return AssetManager::instance().get_font_asset("kenney_pixel.ttf");
}
@@ -0,0 +1,22 @@
+
+ Font package (free)
+ Created/distributed by Kenney (www.kenney.nl)
+ ------------------------------
+ License: (Creative Commons Zero, CC0)
+ http://creativecommons.org/publicdomain/zero/1.0/
+ This content is free to use in personal, educational and commercial projects.
+ Support us by crediting (Kenney or www.kenney.nl), this is not mandatory.
+ Donate: http://support.kenney.nl
+ Request: http://request.kenney.nl
+ Patreon: http://patreon.com/kenney/
+ Follow on Twitter for updates:
+ @KenneyNL