fogleman / Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).
http://www.michaelfogleman.com/craft/
MIT License
10.39k stars 1.39k forks source link

Port to run Craft in web browser using Emscripten #175

Open satoshinm opened 7 years ago

satoshinm commented 7 years ago

Allows building with emscripten to target the web browser. A first step, functional but not comprehensively tested functionality. Retains the ability to build natively by default. Screenshot running in browser:

screen shot 2017-04-02 at 11 12 00 am

Live demo (requires modern browser): https://satoshinm.github.io/Craft/

satoshinm commented 7 years ago

There are at least two other forks already porting to emscripten, didn't know it at the time or compare how their porting differed but these are:

confiks commented 7 years ago

I just came across this pull request, and it seems that @satoshinm has also created a fork which includes instructions for the emscripten build, with some seemingly unrelated patches to Craft.

Awesome work @satoshinm!