You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a port of some parts of **GDevelop**to Javascript using **[Emscripten]**.
3
+
This is the port of GDevelop core classes to JavaScript. This allow [GDevelop Core libraries](https://github.com/4ian/GDevelop) to run in a browser or on Node.js.
4
4
5
-
GDevelop is a full featured, cross-platform, open-source game creator software requiring no programming skills. Download it on [the official website](https://gdevelop-app.com).
5
+
> 🎮 GDevelop is a full featured, cross-platform, open-source game development software requiring no programming skills. Download it on [the official website](https://gdevelop-app.com).
6
6
7
7
## How to build
8
8
9
-
- Make sure you have [CMake 3.5+](http://www.cmake.org/)
9
+
> 👋 Usually if you're working on GDevelop editor or extensions in JavaScript, you don't need rebuilding GDevelop.js. If you want to make changes in C++ extensions or classes, read this section.
10
10
11
-
-On Windows, install MinGW (only `mingw32-base-bin` is required).
11
+
-Make sure you have [CMake 3.5+](http://www.cmake.org/) and [Node.js](nodejs.org/) installed.
12
12
13
-
- Install [Emscripten](https://github.com/kripken/emscripten), as explained on the [Emscripten installation instructions](http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html):
14
-
15
-
```shell
16
-
git clone https://github.com/juj/emsdk.git
17
-
cd emsdk
18
-
./emsdk update
19
-
./emsdk install sdk-1.37.37-64bit
20
-
./emsdk activate sdk-1.37.37-64bit
21
-
source ./emsdk_env.sh
22
-
```
13
+
- On Windows, install [MinGW](https://osdn.net/projects/mingw/releases/) (only `mingw32-base-bin` package is required).
23
14
24
-
(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](http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html)).
15
+
- Install [Emscripten](https://github.com/kripken/emscripten), as explained on the [Emscripten installation instructions](http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html):
> For up-to-date information, check again [Emscripten installation instructions](http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html).
31
27
32
28
- Launch the build from GDevelop.js folder:
33
29
@@ -39,7 +35,7 @@ source ./emsdk_env.sh
39
35
40
36
Output is created in _/path/to/GD/Binaries/Output/libGD.js/_.
41
37
42
-
- You can then launch GDevelop 5 that will use your build of Gdevelop.js:
38
+
- You can then launch GDevelop 5 that will use your build of GDevelop.js:
43
39
44
40
```shell
45
41
cd ..
@@ -61,7 +57,6 @@ npm test
61
57
The grunt _build_ task:
62
58
63
59
- create `Binaries/embuild` directory,
64
-
- patch SFML `Config.hpp` file to make Emscripten recognized as a linux target,
65
60
- launch CMake inside to compile GDevelop with _Emscripten toolchain file_,
66
61
- update the glue.cpp and glue.js from Bindings.idl using _Emscripten WebIDL Binder_,
67
62
- launch the compilation with _make_ and wrap the generated `libGD.js.raw` into the final `libGD.js` file.
@@ -70,7 +65,5 @@ It also create a compressed `libGD.js.gz` file which is handy for distributing t
70
65
71
66
## Documentation
72
67
73
-
- The file [Bindings.idl](https://github.com/4ian/GDevelop.js/blob/master/Bindings/Bindings.idl) describes all the classes available in GDevelop.js.
68
+
- The file [Bindings.idl](https://github.com/4ian/GDevelop/blob/master/GDevelop.js/Bindings/Bindings.idl) describes all the classes available in GDevelop.js.
74
69
- Refer to [GDevelop documentation](http://4ian.github.io/GD-Documentation/GDCore%20Documentation/) for detailed documentation of the original C++ classes.
0 commit comments