Mostly working torch sprites have taught me what I need for the animation system.
This commit is contained in:
parent
a578c49a77
commit
59ba73baa0
5 changed files with 35 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue