Code Monkey home page Code Monkey logo

gdevelop.js's Introduction

ℹ️ This repository is out-dated, it's now integrated in GDevelop source code

Please take a look at the latest version here in GDevelop source code.

GDevelop.js

This is a port of some parts of GDevelop to Javascript using Emscripten.

GDevelop is a full featured, cross-platform, open-source game creator software requiring no programming skills. Download it on the official website and check its GitHub page.

How to build Build Status

git clone https://github.com/juj/emsdk.git
cd emsdk
./emsdk update
./emsdk install sdk-1.37.37-64bit
./emsdk activate sdk-1.37.37-64bit
source ./emsdk_env.sh

(on Windows run emsdk instead of ./emsdk, and emsdk_env.bat instead of source ./emsdk_env.sh. For up-to-date information, check again Emscripten installation instructions).

  • Make sure you have Node.js installed and grunt:
    npm install -g grunt-cli
    git clone https://github.com/4ian/GDevelop.git
    cd GDevelop && git clone https://github.com/4ian/GDevelop.js.git
  • Launch the build:
    cd GDevelop.js
    npm install
    npm run build

Output is created in /path/to/GD/Binaries/Output/libGD.js/.

  • You can then launch GDevelop 5 that will use your build of Gdevelop.js:
    cd ..
    cd newIDE/app
    npm install
    npm start

More information in GDevelop 5 readme.

Launch tests and examples

Launch tests with grunt:

npm test

Or launch example:

cd examples && node demo.js

The demo generate a json file that can be opened with GDevelop!

About the internal steps of compilation

The grunt build task:

  • create Binaries/embuild directory,
  • patch SFML Config.hpp file to make Emscripten recognized as a linux target,
  • launch CMake inside to compile GDevelop with Emscripten toolchain file,
  • update the glue.cpp and glue.js from Bindings.idl using Emscripten WebIDL Binder,
  • launch the compilation with make and wrap the generated libGD.js.raw into the final libGD.js file.

It also create a compressed libGD.js.gz file which is handy for distributing the library pre-compressed to web browsers.

Documentation

Refer to GDevelop documentation for detailed documentation of the original C++ classes. The file Bindings.idl describes all the classes available in GDevelop.js.

License

  • GDevelop.js is distributed under the MIT license.
  • GDevelop is under the MIT license (and GPL v3 license for the old IDE).

gdevelop.js's People

Contributors

4ian avatar lizard-13 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.