Mostly working torch sprites have taught me what I need for the animation system.

This commit is contained in:
Zed A. Shaw 2025-10-18 00:13:44 -04:00
parent a578c49a77
commit 59ba73baa0
5 changed files with 35 additions and 2 deletions

View file

@ -30,6 +30,10 @@ int main(int, char*[]) {
GameDB::init();
sf::RenderWindow window(sf::VideoMode({SCREEN_WIDTH, SCREEN_HEIGHT}), "Bossfight Testing Arena");
window.setVerticalSyncEnabled(VSYNC);
if(FRAME_LIMIT) window.setFramerateLimit(FRAME_LIMIT);
window.setPosition({0,0});
gui::routing::Router router;
sound::mute(true);
@ -41,7 +45,6 @@ int main(int, char*[]) {
auto main = boss::System::create_bossfight();
auto world = GameDB::current_world();
while(!main->in_state(boss::State::END)) {
main->mouse_pos = window.mapPixelToCoords(router.position);