vcosta / derclou

Der Clou! - SDL Port
Other
23 stars 13 forks source link

Porting to the web #7

Closed midzer closed 2 years ago

midzer commented 3 years ago

Hi,

I am trying to port this game to .wasm via Emscripten. Build is running fine now, but when I open it in the browser it becomes unresponsive and nothing actually shows up. SDL initialization seems working as the dimensions of the screen are correct.

This error is showing up:

emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.

and another one before

Calling stub instead of sigaction()

I tried several things with this function and commented out the intro and stuff, but no luck.

vcosta commented 3 years ago

Sorry, but this seems something more suited for the Emscripten folks to help you with than me.

On Sun, Nov 22, 2020 at 12:22 PM midzer notifications@github.com wrote:

Hi,

I am trying to port this game to .wasm via Emscripten. Build is running fine now, but when I open it in the browser it becomes unresponsive and nothing actually shows up. SDL initialization seems working as the dimensions of the screen are correct.

This error is showing up:

emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.

and another one before

Calling stub instead of sigaction()

I tried several things with this function and commented out the intro and stuff, but no luck.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vcosta/derclou/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMQC2GTZ6Z77MCTBGI2D4LSRD67PANCNFSM4T6OEDPA .

-- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal

midzer commented 2 years ago

I've managed to get this done, see https://github.com/midzer/derclou/commit/4ff8a05da59beaad8da71737dbc347e49c67cc37