01-15-2023, 02:36 AM
(01-14-2023, 04:54 PM)megamarc Wrote: 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.
- 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
Hi, I managed to compile it without any errors, seems to work very well! Even the Mouse sample (the sample where you can click on the Marios) works!