Git Product home page Git Product logo

happy-ferret / emscripten-scummvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juj/emscripten-scummvm

0.0 2.0 0.0 117.72 MB

Emscripten fork of the ScummVM engine.

Home Page: http://clb.demon.fi/html5scummvm/

License: GNU General Public License v2.0

Makefile 0.34% C++ 92.09% Assembly 1.10% C 5.05% Java 0.09% Shell 0.07% Logos 0.01% Batchfile 0.03% Objective-C 0.35% Objective-C++ 0.12% GDB 0.01% Perl 0.22% Perl 6 0.02% Python 0.27% Visual Basic 0.04% HTML 0.16% Roff 0.01% Inno Setup 0.01% NSIS 0.03% Component Pascal 0.01%

emscripten-scummvm's Introduction

Emscripten-ScummVM README
------------------------------------------------------------------------

This is a fork of the upstream ScummVM repository at https://github.com/scummvm/scummvm 
focused on building ScummVM as HTML5.

Build Instructions
------------------

1. Clone emscripten. Check out the branch incoming. The guide assumes emscripten is checked out to ~/emscripten.

2. Clone emscripten-scummvm. Check out the branch emscripten.

3. Download a ScummVM game demo, e.g. one of http://scummvm.org/demos/ and unzip it to the local filesystem.

4. Configure build with the game data.

export PATH=$PATH:~/emscripten
export CXX=~/emscripten/em++
export LDFLAGS="-O2 -s TOTAL_MEMORY=268435456 --preload-file ~/path/to/monkey1-amiga-demo-en/@/monkey/"

Change the path above to point to where you downloaded the game to. Note that the destination path is important and depends on the ScummVM game you are running. The TOTAL_MEMORY statement specifices how much of HEAP space to allocate in the generated emscripten application at startup.

5. Copy /usr/bin/sdl-config to emscripten root directory. (find the location of sdl and sdl-config on your system if it doesn't exist in that place)

6. Edit the sdl-config file you copied, and replace the line

prefix=/usr

with the line

prefix=~/emscripten/system

This will configure the build to use the emscripten version of SDL, and not the one installed to the system.

7. Configure the build by invoking in the emscripten-scummvm root directory:

   emconfigure ./configure --with-sdl-prefix=~/emscripten --disable-all-engines --enable-engine-static=scumm --backend=sdl --disable-bink --disable-mt32emu --disable-16bit --disable-scalers --disable-hq-scalers --disable-alsa --disable-vorbis --disable-tremor --disable-mad --disable-flac --disable-zlib --disable-opengl --disable-png --disable-theoradec --disable-faad --disable-fluidsynth --disable-nasm --disable-readline --disable-libunity --disable-sndio --disable-timidity
   
8. Run the build by invoking in the emscripten-scummvm root directory:

   emmake make

After the build finishes, two files 'scummvm.html' and 'scummvm.data' should have appeared. They are the two required files that need to be hosted by a web server for the game to run.

emscripten-scummvm's People

Contributors

fingolfin avatar bluegr avatar sev- avatar dreammaster avatar clone2727 avatar aquadran avatar strangerke avatar drmccoy avatar peres avatar wjp avatar cyxx avatar enderboi avatar somaen avatar jonathangray avatar digitall avatar fuzzie avatar joostp avatar johndoe123 avatar tramboi avatar criezy avatar templier avatar athrxx avatar jvprat avatar ajax16384 avatar waltervn avatar bgk avatar whoozle avatar tsoliman avatar hkzlab avatar bluddy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.