Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser version of Tilengine
#7
(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.
  1. Open a emscripted-enabled terminal by running emcmdprompt.bat batch file located inside emcscripten install directory
  2. Navigate to Tilengine (html5 branch) root folder
  3. 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!
Reply


Messages In This Thread
Browser version of Tilengine - by System64 - 12-22-2022, 10:01 AM
RE: Browser version of Tilengine - by megamarc - 12-31-2022, 08:28 PM
RE: Browser version of Tilengine - by System64 - 12-31-2022, 11:23 PM
RE: Browser version of Tilengine - by megamarc - 01-11-2023, 12:52 AM
RE: Browser version of Tilengine - by System64 - 01-11-2023, 01:46 AM
RE: Browser version of Tilengine - by megamarc - 01-14-2023, 04:54 PM
RE: Browser version of Tilengine - by System64 - 01-15-2023, 02:36 AM
RE: Browser version of Tilengine - by megamarc - 01-15-2023, 04:09 AM
RE: Browser version of Tilengine - by System64 - 01-15-2023, 06:09 AM
RE: Browser version of Tilengine - by megamarc - 01-16-2023, 03:59 AM
RE: Browser version of Tilengine - by System64 - 01-16-2023, 10:20 PM
RE: Browser version of Tilengine - by megamarc - 01-19-2023, 04:30 AM
RE: Browser version of Tilengine - by System64 - 11-13-2023, 05:27 AM
RE: Browser version of Tilengine - by megamarc - 12-03-2023, 06:26 PM
RE: Browser version of Tilengine - by System64 - 12-04-2023, 12:08 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)