love.js web game crash page refresh emscripten
Posted: Tue Feb 01, 2022 10:39 pm
hi guys,
Apart from a some html and c# within Unity and recently getting into lua i don't really have a programming background.
But i finagled my way to porting my love2d game to a browser game through a udemy course and Tanner's love.js
well i'm trying to figure out how to resolve this: game plays fine but when i refresh the page i get a
"Assertion failed: emscripten_set_main_loop: there can only be one main loop function at once:" error
and the game freezes.. ill provide a screenshot. (ran with python 2 localHTTP)
so i figured.. the main loop should just cancel and restart when the the page gets refreshed right?
something in the love.js file must be tweaked.. but i have no clue how or where exactly.
does anyone have any experience with this issue? or any idea what i should learn to be able to solve an issue like this?
kind regards, Michiel
Apart from a some html and c# within Unity and recently getting into lua i don't really have a programming background.
But i finagled my way to porting my love2d game to a browser game through a udemy course and Tanner's love.js
well i'm trying to figure out how to resolve this: game plays fine but when i refresh the page i get a
"Assertion failed: emscripten_set_main_loop: there can only be one main loop function at once:" error
and the game freezes.. ill provide a screenshot. (ran with python 2 localHTTP)
so i figured.. the main loop should just cancel and restart when the the page gets refreshed right?
something in the love.js file must be tweaked.. but i have no clue how or where exactly.
does anyone have any experience with this issue? or any idea what i should learn to be able to solve an issue like this?
kind regards, Michiel