Hi!
In case you're interested, I've pushed online the html5 development branch. This is were I do all tests and changes, it's not for public release yet, but it's working. Once it's completed, my idea is to merge it into main branch and not have a separate "html5" branch anymore.
First you have to setup emscripten compiler:
https://emscripten.org/docs/getting_star...loads.html
Following instructions are for Windows. If you're using Linux, you'll have to adapt it.
Build the samples by executing samples/build_emcc batch file:
Executables are located in wasm directory inside samples:
To run samples, execute emrun followed by the name of the sample.html.
For example to run platformer sample:
A web browser will open with the sample running inside
Let me know if you manage to build an run without errors
In case you're interested, I've pushed online the html5 development branch. This is were I do all tests and changes, it's not for public release yet, but it's working. Once it's completed, my idea is to merge it into main branch and not have a separate "html5" branch anymore.
First you have to setup emscripten compiler:
https://emscripten.org/docs/getting_star...loads.html
Following instructions are for Windows. If you're using Linux, you'll have to adapt it.
- Open a emscripted-enabled terminal by running emcmdprompt.bat batch file located inside emcscripten install directory
- Navigate to Tilengine (html5 branch) root folder
- Build the library by making src/Makefile_emcc:
Code:
cd src
mingw32-make -f Makefile_emcc
Build the samples by executing samples/build_emcc batch file:
Code:
cd ../samples
build_emcc
Executables are located in wasm directory inside samples:
Code:
cd wasm
To run samples, execute emrun followed by the name of the sample.html.
For example to run platformer sample:
Code:
emrun platformer.html
A web browser will open with the sample running inside
Let me know if you manage to build an run without errors